Re: Problems with turning on the Admin
UPDATE: this problem was caused by latent .pyc files on my localhost machine. Deletion of those removed this issue.
Thanks for the help.
Keith
On Saturday, November 9, 2013, Vincenzo Prignano wrote:
On Saturday, November 9, 2013, Vincenzo Prignano wrote:
Sorry but I still can't see the problem here. You are by the way using an old Django version and an old Python version. That's the only thing I can think about right now.
On Saturday, November 9, 2013 at 6:53 PM, Keith Edmiston wrote:
Bumping this up once more just in case someone may have any thoughts...still a problem that has me stumped. Thanks, in advance, for ideas.Keith--
On Friday, November 8, 2013, Keith Edmiston wrote:bus/certs/urls.py:from django.conf.urls import patterns, url, include
from django.conf import settings
from bus.certs.views import index
from django.contrib import admin
admin.autodiscover()urlpatterns = patterns('',
(r'^apps/bus/certs/$', index),
(r'^apps/bus/certs/index$', index),
(r'^apps/bus/certs/listing/', include('bus.certs.listing.urls')),
(r'^apps/bus/certs/application/', include('bus.certs.application.urls')),
(r'^apps/bus/certs/admin/', include(admin.site.urls)),
)
bus/certs/listing/urls.py:from django.conf.urls import patterns, url, includebus/certs/application/urls.py:
from django.conf import settings
from listing.views import listing
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('bus.certs.listing.views',
(r'^$', listing, {}, 'listing'),
)
from django.conf.urls import patterns, url, include
from django.conf import settings
from application.views import application_view, application_submit, application_update
# Uncomment the next two lines to enable the admin:
#from django.contrib import admin
#admin.autodiscover()
urlpatterns = patterns('bus.certs.application.views',
(r'^(?P<app_id>\d+)/$', application_view, {}, 'application_view'),
(r'^update/(?P<app_id>\d+)/$', application_update, {}, 'application_update'),
(r'^submit/$', application_submit, {}, 'application_submit'),
#(r'^admin/', include(admin.site.urls)),
)On Fri, Nov 8, 2013 at 12:20 PM, Vincenzo Prignano <vincenzo.prignano@gmail.com> wrote:Can you post the line in urls.py that is calling the view function?
On Friday, November 8, 2013 6:48:28 PM UTC+1, Keith Edmiston wrote:|_ application--bus/certsSorry...I was trying to be careful of not putting so much info in the email that it became too much.My project structure is (in part):
|_ __init__|_ models.py --> empty, using common/models.py & bus_models/models.py|_ urls.py|_ views.py|_ bus_models (svn: externals)
|_ __init__|_ models.py --> Person|_ bus_shared_common (svn: externals)|_ static (css, js, etc.)
|_ __init__|_ templates
|_ common
|_ __init__|_ models.py --> Program, Status, Application, Notes, Action, Correspondence|_ listing|_ __init__|_ models.py --> empty, using common/models.py & bus_models/models.py
|_ urls.py --> only one regex so far..."listing", which calls "listing" in views.py|_ views.py --> "listing" functionSo, in answer to your question Vincenzo, bus.certs.listing does not make a call to any model just yet. Thanks for suggesting I look though.
KeithOn Fri, Nov 8, 2013 at 10:39 AM, Vincenzo Prignano <vincenzo...@gmail.com> wrote:
'bus.certs.listing' is this entry in your installed apps referring to the "Listing" models perhaps? We can't really help you with much more info btw.
On Friday, November 8, 2013 4:55:04 PM UTC+1, Keith Edmiston wrote:
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/kP88FP75liE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP_gv7Kw0ZO95QyOgP6ucoYrbYoWbzQ-Krj0Pzn35e71AyXzUw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/624E3C8506094DF5AAD85DA8CAD1A028%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Keith Edmiston
(512)970-7222
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAP_gv7JNY3wGKTVODYLkge1pey9V0eH-KrpBDq%3DUFSQHc_kb0w%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home