You need to quote the argument being passed to include():
include('vmware.urls')
There might be other things going on, but I'm on my phone and it's hard to
follow.
-James
On Tuesday, May 6, 2014, G Z wrote:
> I'm running 1.6.4
>
> yes vmware is in my installed apps i used from . import vmware
I'm running 1.6.4
yes vmware is in my installed apps i used from . import vmware
if I dont try to link my appurls to project urls and just use admin site
all my stuff works correctly its just when i try to add vmare
project.urls
from django.conf.urls import patterns, include, url
from django.
What version of django do you have runing?, do you define an admin for
vmware?
--
Rafael E. Ferrero
2014-05-06 2:50 GMT-03:00 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
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 admin
ad
Just as Jason said, basically what we need to do is put the current
site path in the system path.
The Pinax approach is using python site package in the manage.py and
put the current site path with site.addsitedir.
There is another community application Sphene Community Tool which
just simply us
This is probably due to the module pinax being on the pyhton-path.
This way you don't have to import it.
You can edit the path from python like so:
import sys
sys.path.insert(0, "/path/to/package")
If you install a package using setup.py or setuptools or some other
automatic mechanism, it is usu
That seems not the case, eg.
http://code.google.com/p/django-hotclub/source/browse/trunk/pinax/urls.py
I don't see anything like
from pinax import *
But it is doing:
(r'^about/', include('about.urls')),
instead of :
(r'^about/', include('pinax.about.urls')),
Best,
V
On Aug 21, 1:20 pm, Jonatha
Look at the import statements on the different urls.py files.
This:
from myproject.myapp import myview
urlpatterns = patterns('',
(r'^somepattern/', myview))
Does the same thing as this:
urlpatterns = patterns('',
(r'^somepattern/', myproject.myapp.myview))
On Aug 21, 8:5
I saw some django projects have the site urls.py
urlpatterns = patterns('',
(r'^app/', include('apps.urls')),
)
instead of the regular one:
urlpatterns = patterns('',
(r'^app/', include('mysite.apps.urls')),
)
What need to be setup to achieve this? I trid to look into the site
settings
9 matches
Mail list logo