3๐
Iโve encountered the same problem! Thank you for your answer, but it seems that your answer is so simplified that I initially could not understand it. Allow me to elaborate so that others may be able to resolve similar issues.
Suppose you have a directory structure like this:
myproj
โโโ myproj
โโโ settings.py
โโโ manage.py
โโโ urls.py
โโโ grappelli
โ โโโ ...
โโโ myapp
โ โโโ __init__.py
โ โโโ __init__.pyc
After you execute the following:
python manage.py customdashboard
The dashboard.py
is generated in the myproj
(the first one) directory, the directory structure will look something like this:
myproj
โโโ myproj
โโโ dashboard.py
โโโ settings.py
โโโ manage.py
โโโ urls.py
โโโ grappelli
โ โโโ ...
โโโ myapp
โ โโโ __init__.py
โ โโโ __init__.pyc
You should put the dashboard.py
file in the myproj/myproj
directory. Then you login to the adminsite and you will find it works. This is not clearly described in the Dashboard Setup
๐คJeremyBai
- [Django]-Django FileField not saving to upload_to location
- [Django]-Server lagging โ Django + mongodb + cronjob
- [Django]-Django i18n_patterns without trailing slash
- [Django]-Get all values from Django QuerySet plus additional fields from a related model
- [Django]-Many to many relationship in django database model
Source:stackexchange.com