django registration and weird date validation data

2012-03-18 Thread nicolas HERSOG
Hi everyone, I added django registration to my app and i'm facing a problem with date validation. In my settings.py I have this : DATE_INPUT_FORMATS = ('%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B % d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y') USE_L10N

Re: django registration

2012-03-05 Thread nicolas HERSOG
I looked at my code in order to notice diffs. You should add return new_user() after your new_profile.save() On Mon, Mar 5, 2012 at 11:54 AM, Stanwin Siow wrote: > Greetings, > > How do i save a user's profile into the database once i entered the > details in my custom registration form? > > Al

Re: internationalization makemessage don't work

2012-02-28 Thread nicolas HERSOG
all strings marked for translation. > > > > > > So "The script runs over your project source tree or your application > source > > tree"... > > > > > > On Mon, Feb 27, 2012 at 11:03 PM, nicolas HERSOG > wrote: > >> > >> I'

Re: internationalization makemessage don't work

2012-02-27 Thread nicolas HERSOG
from the root directory of your Django app, > so: > > $ cd /your/app/path/ > $ mkdir locale > $ django-admin.py makemessages -l en > > > > On Mon, Feb 27, 2012 at 10:54 PM, nicolas HERSOG wrote: > >> Yes, I have my app in INSTALLED_APPS and I also have added

Re: internationalization makemessage don't work

2012-02-27 Thread nicolas HERSOG
bar', 'django.contrib.admin', 'captcha', ) Did I miss something in MIDDLEWARE_CLASSES for exemple ? Ty all :) Nicolas On Mon, Feb 27, 2012 at 10:45 PM, Ian Clelland wrote: > On Mon, Feb 27, 2012 at 1:36 PM, nicolas HERSOG wrote: > >> Fun fac

Re: internationalization makemessage don't work

2012-02-27 Thread nicolas HERSOG
my project :| ... Nicolas On Mon, Feb 27, 2012 at 10:14 PM, Diego Schulz wrote: > On Mon, Feb 27, 2012 at 5:45 AM, nicolas HERSOG > wrote: > > Hi everyone, > > Very thanks for yours answers! > > > > I added to the top of all my html files {% load i18n %} and typed in

Re: internationalization makemessage don't work

2012-02-27 Thread nicolas HERSOG
none of this command work :/ Any more tips or advices ? Very thanks for your help :) Nicolas On Mon, Feb 27, 2012 at 8:24 AM, Ian Clelland wrote: > > > On Sunday, February 26, 2012, nicolas HERSOG wrote: > >> Hi folks ! >> >> I'm trying for hours to internat

internationalization makemessage don't work

2012-02-26 Thread nicolas HERSOG
Hi folks ! I'm trying for hours to internationalize my django website. I added to my settings.py this few lines : TIME_ZONE = 'Europe/Paris' LANGUAGE_CODE = 'fr-FR' I added to all templates i want to translate the tag trans for the sentence I want to internationalize exemple : {% trans "artic

Re: Which IDE should I use for Django?

2011-12-19 Thread nicolas HERSOG
:59 PM, Ezequiel Bertti wrote: >> >>> pycharm +1 >>> >>> >>> 2011/12/19 Lexa Po >>> >>>> SublimeText2 >>>> +1 >>>> >>>> 19 декабря 2011 г. 15:47 пользователь nicolas HERSOG < >>>

Re: Which IDE should I use for Django?

2011-12-19 Thread nicolas HERSOG
I'm using Aptana On Mon, Dec 19, 2011 at 1:37 PM, Anoop Thomas Mathew wrote: > Hi, > > PyCharm is awesome!!! But is paid ($70) and not OpenSource. > Best among the free is Aptana Studio. > > Thanks, > Anoop Thomas Mathew > > atm > ___ > Life is short, Live it hard. > > > > > > On 19 December 201

Re: delete a field( many to many)

2011-11-09 Thread nicolas HERSOG
English please 2011/11/9 jose osuna perez > Hola, bueno les explico mi problema, tengo 1 tabla que tiene el > siguiente modelo: > > class Proyectos(models.Model): >titulo=models.CharField(max_length=100) >creacion=models.DateField(default=datetime.datetime.now) >estado=models.CharFie

Re: ImportError: No module named profiles

2011-11-09 Thread nicolas HERSOG
Can you show us your script and how you launch it ? On Wed, Nov 9, 2011 at 9:27 PM, Alfredo Alessandrini wrote: > Hi, > > I'm running a script to make a query with django. > > I need to run it in crontab. > > When I run it I get this error: > > ImportError: No module named profiles > > I'm using

Re: redirect problems

2011-10-24 Thread nicolas HERSOG
icle, name='article'), AND, you'r right, i didn't use the name i defined (here 'article') in my redirection. Thx you Tom :) On Mon, Oct 24, 2011 at 5:52 PM, Tom Evans wrote: > On Mon, Oct 24, 2011 at 12:34 PM, nicolas HERSOG > wrote: > > Hi every

Re: redirect problems

2011-10-24 Thread nicolas HERSOG
uot;-dateComment") date = datetime.datetime.now() c = Context({ 'article' : article, 'commentaires' : commentaires, 'now' : date, }) form = CommentForms() c['form'] = form return render_to_response('myAppFront/article.html', c, contex

redirect problems

2011-10-23 Thread nicolas HERSOG
Hi everyone, I'm stuck with the redirection in django. This is my url.py (r'^article/(?P\d+)/$', 'myapp.myappFront.views.article'), (r'^article/(?P\d+)/addComment/$', 'myapp.myappFront.views.addComment'), I developed a little view in order to add comment to my article, this is my view.p

Re: a django question about "python manage.py syncdb"

2011-10-14 Thread nicolas HERSOG
You can also type python manage.py sqlall and copy paste sql instructions in your bd On Fri, Oct 14, 2011 at 11:23 AM, Chen Xu wrote: > Hi, > I am new to Django. > I have installed Django and go t everything set up correctly, just started > some easy tutorials. > > So when I do > Django-admin.p

Re: django-registration + csrf token

2011-09-11 Thread nicolas HERSOG
t; > Make sure you have 'django.middleware.csrf.CsrfViewMiddleware', in the > MIDDLEWARE_CLASSES tuple in the settings.py file. > > > > Cheers, Brett > > > > On 9 Sep 2011, at 16:47, nicolas HERSOG wrote: > > > >> Hi All ! > >> > >> Do any of y

django-registration + csrf token

2011-09-09 Thread nicolas HERSOG
Hi All ! Do any of you use this app https://bitbucket.org/ubernostrum/django-registration/overview with the csrf middleware ? Instead of re-write myself the registar, check via email, lost password, login and co i tried to use this app, but it don't work and i have this message : Forbidden (403)

Re: Use object (User and custom object) in a form

2011-08-16 Thread nicolas HERSOG
Oh I see, I've just modified my code with new import but i still have problem to submit my form. I don t have any errors but i can't pass the form.is_valid(). It's my first form so i don t know how to do it. Can you (again) help me ? Here it's my forms.py : from django import forms from django.c

Re: Use object (User and custom object) in a form

2011-08-12 Thread nicolas HERSOG
Humm, maybe you should right, here is my views.py : from django.template import Context, loader, RequestContext from myApp.models import Article, Commentaire from django.http import HttpResponse from django.contrib import auth from django.contrib.auth import authenticate, login, logout from django

Re: Use object (User and custom object) in a form

2011-08-12 Thread nicolas HERSOG
Hi everyone, I tried few thigs more but it s still don't work. this is my new template : {% csrf_token %} And my view : def vod(request, id): article = Article.objects.get(id=id) commentaires = Commentaire.objects.filter(article=article.id ).order_by("-dateComment") c = Context({ 'article'

Re: Template syntex error

2011-07-29 Thread nicolas HERSOG
How did u solve it ? On Fri, Jul 29, 2011 at 11:17 AM, jaspreet kaur wrote: > My problem is solved > > -- > 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.com. > To unsubscribe fro

Re: Problem With Templatetags

2011-07-28 Thread nicolas HERSOG
bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > On Jul 28, 9:03 am, nicolas HERSOG wrote: > > In my tag folder i have __init__.py __init__.pyc myTag.py et myTag.pyc > which > > is empty > > Err... is this actually 'myTag.py' or 'temp_tags.py

Re: Problem With Templatetags

2011-07-28 Thread nicolas HERSOG
In my tag folder i have __init__.py __init__.pyc myTag.py et myTag.pyc which is empty On Thu, Jul 28, 2011 at 9:02 AM, nicolas HERSOG wrote: > Did you create an empty file __init__.pyc in your tag folder ? > > > On Thu, Jul 28, 2011 at 8:51 AM, Showket Bhat > wrote: >

Re: Problem With Templatetags

2011-07-28 Thread nicolas HERSOG
Did you create an empty file __init__.pyc in your tag folder ? On Thu, Jul 28, 2011 at 8:51 AM, Showket Bhat wrote: > Thanks For ur Assistance.. But That Dosen't Helped me... Need Some > Other Solution.. > > -- > You received this message because you are subscribed to the Google Groups > "Django

Re: Problem With Templatetags

2011-07-27 Thread nicolas HERSOG
mistype, it's @register.simple_tag and not @register.simle_tag of course ... sorry On Thu, Jul 28, 2011 at 8:39 AM, nicolas HERSOG wrote: > Hi, I m new in django too but i ll try to help you. > > In your tem_tag.py can you add : @register.simle_tag just before you def > you ta

Re: Problem With Templatetags

2011-07-27 Thread nicolas HERSOG
Hi, I m new in django too but i ll try to help you. In your tem_tag.py can you add : @register.simle_tag just before you def you tag, just like this : @register.simle_tag def my_tag(): return blablabla On Thu, Jul 28, 2011 at 8:17 AM, Showket Bhat wrote: > Hi All, > > I am using templatet

Re: Database doubt

2011-07-26 Thread nicolas HERSOG
Hi, I'm a beginner like you, and my database model is not over yet. When i add new field in my models.py i make a python manage.py sqlall retrieve the sql and make manually the alter table. Hope this help On Tue, Jul 26, 2011 at 1:50 PM, vaibhav agarwal wrote: > Hey, > > I am coding in django

Re: Django hosting

2011-07-25 Thread nicolas HERSOG
I ve never deploy my "crazy and test django web apps" yet but you should look this way : https://docs.djangoproject.com/en/1.3/howto/deployment/ On Mon, Jul 25, 2011 at 4:12 PM, Jacob Scherffenberg wrote: > Hello me and a friend have created a small django web application for > a company, and a

Re: Possible interest in a webcast/presentation about Django site with 40mil+ rows of data??

2011-07-25 Thread nicolas HERSOG
I won t be able to follow the live session but I can't wait to watch your record on YT. Thx! On Mon, Jul 25, 2011 at 2:42 PM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Second call for register your attendance on this webcast, if you haven't > already don

Re: reqquest.user is not defined

2011-07-21 Thread nicolas HERSOG
Few things, can you retrieve all the user data in your pages ? If not you should look to httpRequestContext https://docs.djangoproject.com/en/1.3/topics/http/shortcuts/ and use render_to_response On Thu, Jul 21, 2011 at 9:15 AM, vikalp sahni wrote: > If There is no user request.user holds. Ano

Re: custom method in models.py

2011-07-15 Thread nicolas HERSOG
Oh crap i m feel ashame... Thanx for your help ! On Fri, Jul 15, 2011 at 8:46 PM, Shawn Milochik wrote: > On 07/15/2011 02:14 PM, Suprnaturall wrote: > >> def get_short_name(): >>return name[0,20] >> > > Try this: > def get_short_name(self): > >return self.name[0:20] > > >

Re: group by and retrieve to template date from foreinKey

2011-07-15 Thread nicolas HERSOG
es, try to change this with a sql view which is safer (but i heard it's hard to use sql view in the django ORM) Thank for your help Bruno :) On Fri, Jul 15, 2011 at 3:57 PM, bruno desthuilliers < bruno.desthuilli...@gmail.com> wrote: > On Jul 15, 2:53 pm, nicolas HERSOG wrote: >

Re: group by and retrieve to template date from foreinKey

2011-07-15 Thread nicolas HERSOG
Of course, and thanks for your help :) This is the rows of my first table Video : id | name | category_id | date 1 | vids1 | 1 | dd-jj- 2 | vids2 | 1 | dd-jj- 3 | vids3 | 1 | dd-jj- 4 | vids4 | 2 | dd-jj- 5 | vids5 | 2 | dd-jj- 6 | vids6 | 3 | dd-jj- and here the rows of t

Re: Problem with user.username

2011-07-12 Thread nicolas HERSOG
Thx ! I'll read this and try to implement the "right way" :) thx Tom On Tue, Jul 12, 2011 at 3:07 PM, Tom Evans wrote: > On Tue, Jul 12, 2011 at 1:41 PM, nicolas HERSOG > wrote: > > Hi ! > > > > It's very strange, i just found a

Re: Problem with user.username

2011-07-12 Thread nicolas HERSOG
Hi ! It's very strange, i just found a way to solve my probleme but i don't have 'django.core.context_processors.request' in my TEMPLATE_CONTEXT_PROCESSORS. For solve my problem i added in my views.py : from django.shortcuts import render_to_response this is my previous index views who didn t wo