These are chat archives for django/django
git reset HEAD~1
class SupervisorSite(AdminSite): def has_permission(self, request): groups = [group.lower() for code, group in request.user.groups.values_list()] return request.user.is_active and request.user.is_staff and ( "supervisor" in groups or "administrator" in groups )
Hi, I have a python question that I hope isn't inappropriate in this channel as it isn't necessarily django specific...
I am trying to create a wheel from a directory called "plugins" that contains some python files and some html files.
My setup.py looks like this:
from setuptools import setup setup(name='a_wheel', version='1.0', py_modules=['plugins'], )
and there is a folder in the same directory as setup.py called "plugins"
When I run this command to make a wheel, the wheel is pretty much empty...:
python setup.py bdist_wheel sdist
Any ideas why my wheel is empty?
py_modulesneeded to use
class MyModel(models.Model): user = models.ForeignKey(to=settings.AUTH_USER_MODEL) upload = models.FileField(upload_to=some_specific_dir)
class ChoiceInline(admin.StackedInline): model = MyModel extra = 3