I found what happened : i make test with a "-" in the subpage_slug ...
Without it, all is working. :D
Le mercredi 8 novembre 2017 14:36:02 UTC+1, Yue Du a écrit :
>
> https://docs.djangoproject.com/en/1.11/topics/http/urls/#example
>
> On Wed, Nov 8, 2017 at 9:01 PM, >
> wrote:
> > Hi everyon
Thanks for your answer. =)
Yes, i tried :
import views
urlpatterns = [
url(r'^(?P[\w-]+)/$', views.DocPageDetail.as_view()),
url(r'^(?P[\w-]+)/(?P\w+)/$',
views.DocPageDetail.as_view())
]
But second url pattern (with two arguments) is never found... :'(
Le mercredi 8 novembre 2017
Hi everyone,
I would like to make a documentation app with urls like this (not
flatpages) :
[server]/docs// ==> go to product main help page
[server]/docs/// ==> go to product sub help
page.
How can i write this in app urls.py ?
Thanks !
--
You received this message because you are subscr
Ici (en français) :
https://openclassrooms.com/courses/developpez-votre-site-web-avec-le-framework-django
;)
Le mardi 31 octobre 2017 12:37:25 UTC+1, BARHAHIGA JANVIER a écrit :
>
>
>
> svp j'aimerai ceer un site web gratuit sur jango. qui peut m'aider à le
> faire rapidement?
>
> sorry i wan
Hi !
I liked it : https://tutorial.djangogirls.org/en/
Le lundi 30 octobre 2017 15:45:49 UTC+1, Rafael Mauricio Builes Marin a
écrit :
>
> Hi everybody, I would like to know what is the best way for learn to use
> Django and how mach knowledge of django I need.
> Thank you
>
> El contenido de
Ok, i finally found where the problem was : the admin class (UserAdmin) of
my custom user class was in models.py and must be in admin.py.
I found the solution here :
https://stackoverflow.com/questions/45783147/django-lookuperror-app-accounts-doesnt-have-a-user-model
--
You received this messa
An additional information : the settings.py was generated with Django 1.9.7
Le lundi 30 octobre 2017 08:35:44 UTC+1, cjacq...@gmail.com a écrit :
>
>
> Yes, there is my INSTALLED_APPS (it was ok with Django 1.10) :
>
> INSTALLED_APPS = [
> #django
> 'django.contrib.admin',
> 'django.co
Yes, there is my INSTALLED_APPS (it was ok with Django 1.10) :
INSTALLED_APPS = [
#django
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contr
Did you try http://127.0.0.1:8000/hello/ ?
Le dimanche 29 octobre 2017 21:39:12 UTC+1, Andre Basel a écrit :
>
> I am totally new to Django, and working through the following tutorial
> https://djangobook.com/views-urlconfs/
>
> Ihavecreatddf the following view in views.py
>
> from django.http im
Hi ! You have to import your view.
Like this :
from .views import hello
Le dimanche 29 octobre 2017 21:39:12 UTC+1, Andre Basel a écrit :
>
> I am totally new to Django, and working through the following tutorial
> https://djangobook.com/views-urlconfs/
>
> Ihavecreatddf the following view in
Hi everyone,
I'm trying to update Django from 1.10.8 to 1.11.6 but it raise me an error.
I just update Django with pip. I use Python 2.7.11 and Mac OS X and
everything was working on Django 1.10.8.
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/django/utils/autore
11 matches
Mail list logo