Hi! I've been trying to deploy a Django project using Webfaction when I found this problem: custom apps do not register properly on django's admin site. The funny thing is that:
My settings.py:
) My urls.py
admin.py under lomas application: (just left a single model for testing)
Any idea guys? :( Thanks a lot for your help asked 26 Jul '11, 06:53 Miguel G Biedma |
To register a model into the Admin you have to create admin.py module like described in https://docs.djangoproject.com/en/dev/ref/contrib/admin/#modeladmin-objects answered 26 Jul '11, 07:32 armonge I already did that (last piece of code in my post), thanks anyway ;)
(26 Jul '11, 10:46)
Miguel G Biedma
|
You need to add your application's parent directory to the Python search path. For example, if 'lomas' is located at Instructions for setting your search path are available here: Restart your Apache after making changes to your search path. Hope that helps! answered 26 Jul '11, 11:39 seanf |