My question was answered on Stackoverflow:
The correct line in the function should be
response = client.get('/wos_2017_2/')
*because of my project urls.py that I did not provide initially:*
urlpatterns = [
url(r'^wos_2017_2/', include('wos_2017_2.urls')),
url(r'^admin/', admin.site.urls),
]
---
Ran 1 test in 0.006s
Using the url
http://localhost:8000/wos_2017_2/
in a browser works as expected.
Johann
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiv
Please tell me if this is true. I'm deciding on Django, asp.net, or Java.
If I use asp.net or java and I want to make a change to the controller, I
have to recompile the class or project, right?
If I use Django, if I change the controller or model logic, do I have to
compile everything? If I
'^polls/', include('mysite.polls.urls')),
> )
Thanks!
Regards
Johann
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@google
.resolve(path)
File "/var/lib/python-support/python2.6/django/core/urlresolvers.py",
line 179, in resolve
for pattern in self.urlconf_module.urlpatterns:
AttributeError: 'module' object has no attribute 'urlpatterns'
Regards.
Johann
--~--~-~--~~
I'm having a similar issue. Here's a summary of my model.
class Encyclopedie(models.Model):
titre = models.CharField(maxlength=100, unique=True)
index = models.ForeignKey("Page", related_name="index_set",
blank=True, null=True)
class Page(models.Model):
encyclopedie = mod
6 matches
Mail list logo