Ok, figured it. I have an admin folder as well as admin.py so they're
conflicting.
Removing it solved the issue and Retailer now appears in the admin
interface.
Thanks for the debugging steps!
Cheers,
Tom
On Wednesday, 13 August 2014 14:38:51 UTC+1, Thomas Brightwell wrote:
>
> Yes, have a
Yes, have an __init__.py file. And yes, works fine importing.
bash-3.2$ ./manage.py shell
Python 2.7.5 (default, Mar 9 2014, 22:15:05)
In [1]: import webapp.admin
In [2]:
webapp directory listing:
bash-3.2$ ls
__init__.py admin admin.pyc item migrations models.pyc templates tests view
Do you have a webapp/__init__.py file? Can you import webapp.admin in
./manage.py shell?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...
Collin,
Thanks for the help. I updated my admin.py with this (also been trying
other variations of the register):
from django.contrib import admin
from .models import Retailer
@admin.register(Retailer)
class RetailerAdmin(admin.ModelAdmin):
pass
print 'foo'
raise Exception()
Restarted my
Wow. Is the admin.py file actually getting run? (try a print statement or
try throwing an exception)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-user
Chedi,
I commented out the other lines leaving this:
urlpatterns = patterns('',
# ##
# DJANGO ADMIN
# ##
url(r'^admin/django_admin/', include(admin.site.urls)),
# ##
# STYLE TEST
# ##
url(r'^style/',
I see that you have other routes beginning with ^admin/, this can some time
cause the non inclusion of certain urls depending on the order in which
they appear in the urls.py file. Can you comment the other ones and just
keep
url(r'^admin/django_admin/', include(admin.site.urls))
to eliminate
Collin,
I'm running django v1.7c1
On Wednesday, 13 August 2014 02:50:14 UTC+1, Collin Anderson wrote:
>
> Do you have admin.autodiscover() in your urls.py? (assuming you're not
> using version 1.7)
>
--
You received this message because you are subscribed to the Google Groups
"Django users" g
Chedi,
Thanks for the quick response.
http://localhost:8000/admin/django_admin/webapp/retailer
Page not found (404)
Request Method: GET
Request URL: http://localhost:8000/admin/django_admin/webapp/retailer
Using the URLconf defined in webappconf.urls, Django tried these URL
patterns, in this or
Do you have admin.autodiscover() in your urls.py? (assuming you're not
using version 1.7)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr.
Hi,
You can start by entering the model url manually after logging to the admin
interface, in your case it would be
http://[host name]:[port]/admin/django_admin/webapp/retailer
don't forget to set your DEBUG to True in the settings.py and if you are
restart your server if you are running gunic
I am trying to manage the data in a model through the default django admin
site. I have several apps, which have all been included in INSTALLED_APPS,
and I am registering the model with the default django admin. I have
included the django admin app in urls.py and have verified that I am the
sup
12 matches
Mail list logo