Date based generic view

2006-11-13 Thread Jean-Luc
Hi Django folks i have this model class Operations(models.Model): id = models.IntegerField(primary_key=True) date_operation = models.DateField() mode_paiement = models.TextField() no_cheque = models.IntegerField() description = models.TextField() m

[newbie] runserver and static files

2006-11-13 Thread Jean-Luc
hi Django folks newbie question, style sheet not found my base.html ... My urls.py urlpatterns = patterns('', # Admin (r'^admin/', include('django.contrib.admin.urls')), ) # par date urlpatterns += patterns('django.views.generic.date_based', (r'^budget/(?P\d{4})/(?P\d{2})

Re: Date based generic view

2006-11-13 Thread Jean-Luc
Thank you for your help unfornunately no date_releve is always latest than date_operation or none I don't understand what appends jlT --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: runserver and static files

2006-11-13 Thread Jean-Luc
Jay Parlar a écrit : > On 11/13/06, Jean-Luc <[EMAIL PROTECTED]> wrote: > > > > hi Django folks > > > > newbie question, style sheet not found > > > > my base.html > > > > > >> type="text/css" media=&quo

Re: custom sql, method definition and views.py

2006-11-13 Thread Jean-Luc
soundseeker a écrit : > Hello, > if there is a method definition in the models.py like this: > > class TMergeDoc(models.Model): > > def by_categories(self): > from django.db import connection > ... > return objects > > what is the correspondi

Re: runserver and static files

2006-11-13 Thread Jean-Luc
igor Guerrero a écrit : > Django dont serve media files, that is the job of the production server but > if yo are using the development server: you can try this: > > http://www.djangoproject.com/documentation/static_files/ > > On 11/13/06, Jean-Luc <[EMAIL PROTECTED]>

Re: runserver and static files

2006-11-14 Thread Jean-Luc
Nicolas Steinmetz a écrit : > Jean-Luc wrote: > > > igor Guerrero a écrit : > > > >> Django dont serve media files, that is the job of the production server > >> but if yo are using the development server: you can try this: > >> > >> h

Django / Python and daylight saving time

2006-11-14 Thread Jean-Luc
It seems Django don't know daylight saving time my settings.py : ... # Local time zone for this installation. All choices can be found here: # http://www.postgresql.org/docs/current/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE TIME_ZONE = 'Europe/Paris' ... E:\applis\budget>time L

Re: Date based generic view

2006-11-14 Thread Jean-Luc
Jean-Luc a écrit : > Thank you for your help > > unfornunately no > date_releve is always latest than date_operation or none > > I don't understand what appends > > jlT Hi all I check the code in root/django/trunk/django/views/generic/date_based.py 124 #

Re: Django / Python and daylight saving time

2006-11-14 Thread Jean-Luc
[EMAIL PROTECTED] a écrit : > I dont know why it would use anything other than the system time... Is > the timezone set correctly on your machine? time is a DOS command and it renders the good time, same time i can show under Windows but Django runserver renders summer time, or GMT ? Thanks a

Re: paginating django.views.generic.date_based.archive_index based archives

2006-11-19 Thread Jean-Luc
see http://www.rossp.org/blog/2006/jun/23/building-blog-django-4/ courage ! jlT --~--~-~--~~~---~--~~ 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@googlegroups.

Re: runserver and static files

2006-11-19 Thread Jean-Luc
As I explain before, my problem was the use of 'media' as directory for static files media/css/*.css media/images/*.png media/js/*.js when I replace media by site-media, all work with this URL #fichiers statiques (images, css, ...) urlpatterns += patterns('', (r'^site_media/(?P.*)$', 'djan

Re: Impossible d'utiliser language_code 'fr-fr' avec django 3.0.4

2020-03-26 Thread Jean Luc Gaman
Hello, Anselme malheureusement l’interface Django est en anglais que souhaite tu faire ? Si tu veux juste découvrir Django tu devrais suivre le tutoriel officiel de Django pour démarrer, https://docs.djangoproject.com/en/3.0/intro/tutorial01/