Re: Url with optional arguments

2017-11-08 Thread cjacquemet
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

Re: Url with optional arguments

2017-11-08 Thread cjacquemet
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

Url with optional arguments

2017-11-08 Thread cjacquemet
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

Re: I am new in django

2017-10-31 Thread cjacquemet
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

Re: I am new in django

2017-10-30 Thread cjacquemet
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

Re: Django 11 ImproperlyConfigured: AUTH_USER_MODEL refers to model 'authex.UserProfile' that has not been installed

2017-10-30 Thread cjacquemet
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

Re: Django 11 ImproperlyConfigured: AUTH_USER_MODEL refers to model 'authex.UserProfile' that has not been installed

2017-10-30 Thread cjacquemet
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

Re: Django 11 ImproperlyConfigured: AUTH_USER_MODEL refers to model 'authex.UserProfile' that has not been installed

2017-10-30 Thread cjacquemet
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

Re: Following tutoria: View not defined

2017-10-29 Thread cjacquemet
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

Re: Following tutoria: View not defined

2017-10-29 Thread cjacquemet
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

Django 11 ImproperlyConfigured: AUTH_USER_MODEL refers to model 'authex.UserProfile' that has not been installed

2017-10-29 Thread cjacquemet
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