Re: Django URLS help app not defined

2014-05-07 Thread Tom Evans
On Tue, May 6, 2014 at 9:40 PM, G Z wrote: > Thanks so much one last thing >> > > Page not found (404)Request Method:GETRequest URL: > http://pythondev.enki.co:8001/customers > > Using the URLconf defined in provisioning.urls, Django tried these URL > patterns, in this order: >

Re: Django URLS help app not defined

2014-05-06 Thread Rafael E. Ferrero
Check this out: http://linkode.org/j5tuDIjRiGrzufkXDrCMh7 if you visit http://www.fsorgosuardi.com.ar/eventos you go to activos views if you visit http://www.fsorgosuardi.com.ar/eventos/ampliar/something-hereyou go to activos views with parameters if you visit

Re: Django URLS help app not defined

2014-05-06 Thread G Z
yea the admin works perfectly fine no issues. On Monday, May 5, 2014 11:09:51 PM UTC-6, G Z wrote: > > project name = provisioning > app name = vmware > > In my projects urls.py I have the following. I assume I set the new url > link customers to myapp.urls because im watching a youtube video

Re: Django URLS help app not defined

2014-05-06 Thread G Z
ok I figured it out all i had to do was change my app urls.py and take out customers so now its like this from django.conf.urls import patterns, include, url from django.views.generic.list import ListView from vmware.models import Customer urlpatterns = patterns('', url(r'^',

Re: Django URLS help app not defined

2014-05-06 Thread G Z
The admin page works fine only the other two don't Project Structure Project Root Directory: provisioning/ this is where manage.py lives Project Settings Directory provisioning/provisioning/settings.py App Directory provisioning/vmware template directory /provisioning/vmware/templates/

Re: Django URLS help app not defined

2014-05-06 Thread Rafael E. Ferrero
if you try http://pythondev.enki.co:8001/admin works just fine ? -- Rafael E. Ferrero 2014-05-06 17:40 GMT-03:00 G Z : > Thanks so much one last thing >> > > Page not found (404)Request Method:GETRequest URL: >

Re: Django URLS help app not defined

2014-05-06 Thread G Z
> > Thanks so much one last thing > Page not found (404)Request Method:GETRequest URL: http://pythondev.enki.co:8001/customers Using the URLconf defined in provisioning.urls, Django tried these URL patterns, in this order: 1. ^admin/ 2. ^customers/ The current URL, customers, didn't

Re: Django URLS help app not defined

2014-05-06 Thread G Z
> > Whats wrong with this > from django.conf.urls import patterns, include, url from django.view.generic import ListView from vmware.models import Customer urlpatterns = patterns(' ', url(r'^customers/', ListView.as_view(

Re: Django URLS help app not defined

2014-05-06 Thread C. Kirby
At first glance you are missing a paren: queryset=Customer.objects.all().order_by"-id")[:100] should be: queryset=Customer.objects.all().order_by("-id")[:100] Are you using an IDE? It should have picked that up kirby On Tuesday, May 6, 2014 1:38:34 PM UTC-5, G Z wrote: > > Whats wrong

Re: Django URLS help app not defined

2014-05-06 Thread C. Kirby
I strongly recommend the tutorial provided by django, and I would do the tutorial as it is to start, not with your own models. Really understand the concepts as they are written, then apply those concepts to your project. Kirby On Tuesday, May 6, 2014 1:16:46 PM UTC-5, G Z wrote: > > in fact

Re: Django URLS help app not defined

2014-05-06 Thread C. Kirby
Sorry, it's been a while since I looked at the tutorial, to make the tutorial more straightforward it uses a simplified project layout. I looked at your urls again, and the error is that you forgot quotes. url(r'^customers/', include(vmware.urls)), should be url(r'^customers/',

Re: Django URLS help app not defined

2014-05-06 Thread G Z
> > in fact here is the tutorial series I was following > https://www.youtube.com/watch?v=KqN4u28T-JQ=PLQVvvaa0QuDcTDEowl-b5nQlaDaD82r_s -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Django URLS help app not defined

2014-05-06 Thread G Z
I'm following the django tutorial the project is provisioning I created the folder provisioning folder, then ran startproject provisioning which has manage.py then it creates the subfolder provisioning which has the init.py file and settings etc. then from the root directory of my project

Re: Django URLS help app not defined

2014-05-06 Thread C. Kirby
G Z, That is a somewhat odd project structure. Also, the ls you posted: directory structure provisioning is the project vmware is the app. drwxr-xr-x 4 root root 4096 May 5 20:12 . drwxr-xr-x 3 root root 4096 May 5 19:09 .. -rw-r--r-- 1 root root 255 May 5 19:09 manage.py drwxr-xr-x 2 root

Re: Django URLS help app not defined

2014-05-06 Thread G Z
> > I'm running 1.6.4 > > Project Structure Project name: provisioning App Name: vmware > /djangoprojects/provisioning/provisioning/urls.py > > > from django.conf.urls import patterns, include, url > > from django.contrib import admin > admin.autodiscover() > from . import vmware > >

Re: Django URLS help app not defined

2014-05-06 Thread C. Kirby
Please post your project structure - that will help to clear up the import On Tuesday, May 6, 2014 11:28:28 AM UTC-5, G Z wrote: > > so in my project.urls file i put >> > > from . import vmware > > do i have to add anything to my apps.urls because i got the following > error after adding the

Re: Django URLS help app not defined

2014-05-06 Thread G Z
> > so in my project.urls file i put > from . import vmware do i have to add anything to my apps.urls because i got the following error after adding the folllowing from django.contrib import admin admin.autodiscover() from . import vmware urlpatterns = patterns('', # Examples: #

Re: Django URLS help app not defined

2014-05-06 Thread Davide Scatto
it seems in yr project urls.py you don't import vmware. from django.conf.urls import patterns, include, url from django.contrib import admin from . import vmware urlpatterns = patterns Il giorno martedì 6 maggio 2014 07:09:51 UTC+2, G Z ha scritto: > > project name = provisioning

Re: Django URLS help app not defined

2014-05-06 Thread G Z
> > and yes vmware is defined in installed apps. > -- 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...@googlegroups.com. To post to this

Re: Django URLS help app not defined

2014-05-06 Thread G Z
I'm not trying to set up the admin stie. I have already done that the admin site works im trying to set up the /customers site. Which I have defined below. I have it set in the projects urls.py to link to vmware.urls then i have the urls.py in the app vmware pointing to my templates to display

Re: Django URLS help app not defined

2014-05-06 Thread Rafael E. Ferrero
I think that you fail on trying to setup the admin site for your proyect. check this out https://docs.djangoproject.com/en/1.6/ref/contrib/admin/ -- *RAFAEL FERRERO* *Chief Officer Technology* San Francisco Cba. | Argentina +54 9 356251 4856 www.perseux.com 2014-05-06 2:09 GMT-03:00 G Z

Django URLS help app not defined

2014-05-06 Thread G Z
project name = provisioning app name = vmware In my projects urls.py I have the following. I assume I set the new url link customers to myapp.urls because im watching a youtube video and thats what he did. from django.conf.urls import patterns, include, url from django.contrib import