Re: Impossible d'utiliser language_code 'fr-fr' avec django 3.0.4
Essaye juste fr ça devrait être nettement mieux Laurent Gattegno <http://seora.fr/> Tel 06 86 50 22 92 Le ven. 27 mars 2020 à 03:47, Simon Charette a écrit : > La documentation de Django est disponible en Français. > > Ce message d'erreur est traduit dans cette section: > https://docs.djangoproject.com/fr/3.0/ref/checks/#translation > > Tu as deux choix: > 1. Ajoute 'fr-fr' à ton setting LANGUAGES tel qu'indiqué > 2. Définit ton setting LANGUAGE_CODE = 'fr' plutôt que 'fr-fr' > > Simon > > Le jeudi 26 mars 2020 21:47:11 UTC-4, Anselme SERI a écrit : >> >> Je suis un nouveau dans le développement python et je teste actuellement >> Django. >> Il m'est impossible d'utiliser le language_code 'fr-fr' dans django 3.0.4. >> Le message d'erreur qui s'affiche dans le terminal est le suivant : >> >> "ERRORS: >> ?: (translation.E004) You have provided a value for the LANGUAGE_CODE >> setting that is not in the LANGUAGES setting." >> >> J'ai fouiner sur internet à la recherche de solution sans succès. >> >> Comment puis-je travailler avec une interface en français. Quelqu'un >> pourrait m'aider? >> > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/37a930ed-f975-41c4-b567-ab710bc0a266%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/37a930ed-f975-41c4-b567-ab710bc0a266%40googlegroups.com?utm_medium=email_source=footer> > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHa%2B34mPnD-QAVCQhkun3o2dE%2BM-_sAx%3Dt42kwqCTr%2BA958Ajw%40mail.gmail.com.
Re: cant import views
I think the problem is inside the views.py file. It looks like python doesnt find views.index and the problem may be the index Laurent Gattegno Le mer. 18 mars 2020 à 12:58, דביר חומרי a écrit : > > > בתאריך יום שלישי, 17 במרץ 2020 בשעה 20:03:10 UTC+2, מאת דביר חומרי: >> >> i was following the toturial and i could'nt find why this error is accure. >> polls/urls.py' >> >> from django.urls import path >> >> from . import views >> >> urlpatterns = [ >> path('', views.index, name='index'), >> ] >> >> >> and got this error: >> >> Traceback (most recent call last): >> File "c:\Users\..polls\urls.py", line 20, in >> from . import views >> ImportError: cannot import name 'views' >> >> > >> p.s. views.py is in the same directory as urls.py >> > > > the directory: > > __init__.py > admin.py > apps.py > migrations/ > __init__.py > models.py > tests.py > urls.py > > views.py > >> >> ¶ <https://docs.djangoproject.com/en/3.0/intro/tutorial01/#id2>\ >> >> -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/efad75fa-39e1-4579-8859-a0c6f74a5791%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/efad75fa-39e1-4579-8859-a0c6f74a5791%40googlegroups.com?utm_medium=email_source=footer> > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHa%2B34%3DqPercBxCySksPGUkMO%3DZD-4BEs0DjQc2xFf41gUMyOA%40mail.gmail.com.