Django deploy Apache

2022-05-13 Thread Nicolas Passarini
Hello, i ve deployed a django app in apache. the problem is that i works for 5 minutes and then it stops responding. -- 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 emai

Re: Images

2022-05-13 Thread Nicolas Passarini
how do you refer to the object in the template? El martes, 10 de mayo de 2022 a la(s) 09:58:56 UTC-3, narsh...@gmail.com escribió: > You change the names of the pictures in the separate folder then copy them > in a static folder then change the picture file names in the template > folder then

Re: setting up urls of many apps

2021-02-17 Thread Nicolas nasr
Can you please show your urls.py file On Wednesday, February 17, 2021 at 8:31:50 AM UTC+2 kirien...@gmail.com wrote: > someone to help me to set up urls of two different apps in django project > please, i keep on getting errors > am new > -- You received this message because you are subscrib

Create a multitab home page of a blog

2019-07-15 Thread Nicolas Huergo
Hey! I'm pretty much new to Django, so I cannot figure this out: I have the home page and the way to post updates in my blog, but I want to sort the posts into categories. Like sports, fitness, politics. But I want to do it into two lists of multiple tabs, one horizontal and one vertical. And

Proxy User and AUTH_USER_MODEL: TypeError: MyUser cannot proxy the swapped model 'myapp.MyUser'.

2018-04-14 Thread Nicolas Pantel
> File "", line 678, in exec_module > File "", line 205, in _call_with_frames_removed > File "/home/npantel/proxy_user/proxy_user/models.py", line 4, in > class MyUser(User): > File "/usr/local/lib/python3.6/dist-packages/django/db/models/base

Re: Django and Angular2/4 example project

2017-10-17 Thread Pierre-Nicolas Tollitte
etween the two frameworks. Moreover, they work well with there proper testing/deployment/... tools. Hope this helps Pierre-Nicolas Le lundi 16 octobre 2017 12:00:28 UTC+2, Roger Gammans a écrit : > > Hi, > > I'd certainly be interested in helping with such a project; as I cur

running django 1.9 problem

2016-07-12 Thread Nicolas Favede
hi i am a bit used to python i have a mac coming with 2.7.6 version and install 3.4 that i can use if i call i installed with difficulties django 1.9 it came there /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4 don't ask me why now i cannot import or work with PLEASE SOME HELP TH

install of django 1.9

2016-07-12 Thread Nicolas Favede
hi everybody i install with difficulties butdjango 1.9 on my imac i am used to python run on 2.7.6 coming with terminal but i also installed 3,4 version that i call and use when i want django came there library/frameworks/python frameworks/version3.4/lib/python3.4/django don't ask me wh

Re: variable in django template

2013-10-23 Thread Nicolas Pantel
Take a look at the "{@ with @}" template tag in the documentation. Use {@ with myVariable=someValue @} ... {@ endwith @}. NicoP Le 23 oct. 2013 07:01, "Harjot Mann" a écrit : > > I want to initialize a varibale in django template from zero, which I > want to comapre with the some job_no whihc is

Group by using DJango ORM

2013-09-19 Thread Nicolas Mendoza
Actually what's the best way for do a group by using django ORM? I know workarounds like combinate "values" with "Anotate", etc. but I wil like know your favorite workaround without rawSQL and not manager based , only Django ORM ;-) Example.objects.values('type').annotate(dcount=Count('type')) .

Re: Receive parameter via post

2013-09-19 Thread Nicolas Mendoza
Here an example: https://gist.github.com/6625035 2013/9/19 Hélio Miranda : > Good. > I have my client application server, and was trying to send an id parameter > via a post like this: > $scope.deleteIMG = function(ID){ > $http({ > method: 'POST',, > url: "http://localhost:8080/onpitch/delImagePla

How can I upload async files with django-storages

2013-07-23 Thread Nicolas Bases
Hi all, I'm doing a web site where the users can upload some images. These images are uploaded through django-storages [0] to Amazon S3. But it's taking too long to uploaded these files. There is a way where I can upload these images async? Thank you in advance! Nicolas. [0] htt

Re: Django + Raspberry PI

2013-03-01 Thread Nicolas Emiliani
up and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://grou

Django + Raspberry PI

2013-03-01 Thread Nicolas Emiliani
Hey guys! Has anyone tried to run django + sqlite on a raspberry pi ? Any performance issues ? I'm about to start an app that provides a restful api and has to run on RPI, it's going to manage an automation service, so load is going to be pretty low. Cheers. -- Nicolas Emiliani

Best way to create an advanced search bar for the admin app.

2012-11-20 Thread Nicolas Emiliani
to present that and somehow, I do not know how yet, override the search method at the admin site. Does it sound good? Has anyone done this? Is there another approach? Any comments will be highly appreciated. Thanks! -- Nicolas Emiliani Lo unico instantaneo en la vida es el cafe, y es bien feo

Re: Extend Django UserProfile

2012-11-01 Thread Nicolas Emiliani
web visit > https://groups.google.com/d/msg/django-users/-/J0DJKVoy-wcJ. > > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://g

Re: Extend Django UserProfile

2012-11-01 Thread Nicolas Emiliani
ps://groups.google.com/d/msg/django-users/-/x4UAl7Mc-w8J. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/g

Re: django-ajax giving 403

2012-10-30 Thread Nicolas Emiliani
ups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Nicolas Emiliani Lo unico instantaneo en la vida es el cafe, y es bien feo.

Re: a way to display a model formset in a ModelAdmin ?

2012-10-25 Thread Nicolas Emiliani
to display. I'm starting to think that maybe using a many-to-many field with a custom widget might do the job. > On Thu, Oct 25, 2012 at 3:51 AM, Nicolas Emiliani wrote: > >> Hi, >> >> As the subject states, is there a way to display a model formset in a >> Mod

Re: Only one profile type of multiple user profiles types gets created.

2012-10-24 Thread Nicolas Emiliani
nly one profile class with an profile type attribute. Nasty but it works. > > Thanks! > > -- > Nicolas Emiliani > > Lo unico instantaneo en la vida es el cafe, y es bien feo. > -- Nicolas Emiliani Lo unico instantaneo en la vida es el cafe, y es bien feo. -- You received

a way to display a model formset in a ModelAdmin ?

2012-10-24 Thread Nicolas Emiliani
): class VerificationAdminForm(forms.ModelForm): class VerificationAdmin(admin.ModelAdmin): form = VerificationAdminForm model = Verification fieldsets = [ ... ] Any ideas would be greatly appreciated. Thanks in advance. -- Nicolas Emiliani Lo unico

Re: Raising a ValidationError in a custom field's to_python method?

2012-10-22 Thread Nicolas Dandrimont
On lun., oct. 22 2012, Nicolas Dandrimont wrote: > #--8<{ fields.py }>8--# > import netaddr > > from django.core.exceptions import ValidationError > from django.db import models > > [...] > def to_python(self, value): > if

Raising a ValidationError in a custom field's to_python method?

2012-10-22 Thread Nicolas Dandrimont
lude(pk=self.pk) if same_ip: raise ValidationError(u"Adresse IP en cours d'utilisation") def __unicode__(self): expire = u"" if self.expiration <= timezone.now(): expire = u", expire" return u

Only one profile type of multiple user profiles types gets created.

2012-10-22 Thread Nicolas Emiliani
it to create an AuditorProfile not even by setting the agency field on the form. Any ideas what is going on? I'm clueless Thanks! -- Nicolas Emiliani Lo unico instantaneo en la vida es el cafe, y es bien feo. -- You received this message because you are subscribed to the Google Groups

Re: Adding a new row to the database in user form

2012-10-15 Thread Nicolas Emiliani
nsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Nicolas Emiliani Lo unico instantaneo en la vida es el cafe, y es bien feo. -- You received this message because you are subscribed to the Google Groups &

django-guardian + field permissions ?

2012-10-07 Thread Nicolas Emiliani
ific group being able to change his own objects permissions. It would be somewhat of field permission over object permissions. Any way to accomplish this ? Thanks in advance. -- Nicolas Emiliani Lo unico instantaneo en la vida es el cafe, y es bien feo. -- You received this message becau

Re: django-guardian 404 on save.

2012-10-06 Thread Nicolas Emiliani
On Sat, Oct 6, 2012 at 4:41 PM, Nicolas Emiliani wrote: > Hi, > > I'm implementing django-guardian within the admin site and I'm having the > following issue. > If I create a model instance through the admin panel and then try to > modify it > (even using the

display thousand separator.

2012-09-30 Thread Nicolas Emiliani
= True So now I can input for example: 5.000.000 but after saving it it shows 500 Any solutions besides doing some javascript tampering? Thanks! -- Nicolas Emiliani Lo unico instantaneo en la vida es el cafe, y es bien feo. -- You received this message because you are subscribed to t

Re: Can I simply disable the CSRF? crazy

2012-09-24 Thread Nicolas Patry
ze() automatically adds the crsf_token which should be contained in your form. This makes a lot easier to validate your form via AJAX. Cheers, Nicolas Patry On Monday, September 24, 2012 4:00:02 PM UTC+2, jondykeman wrote: > > +1 For doing it right from the beginning. > > I was tem

Django, how to automatically sort the database's entries when I add an entry?

2012-09-15 Thread Nicolas Dubien
Hi, I'm using a quite huge database with twenty thousand entries or more. At the beginning, I used to sort it each time (.sort_by("my_field_name")) I need the page but I saw that it took me lot of time to generate the page. I'm looking for a solution, that allows me to show the data without sor

Re: Automatically create an InlineForm object inside an admin page

2012-08-30 Thread Nicolas Emiliani
ngo-users/-/YvGlPmf_HtEJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl

Re: Django IMAGESTORE app help to - create a photo album

2012-08-29 Thread Nicolas Emiliani
To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Nicolas Emiliani Lo unico

Re: Column widths in TabularInline

2012-08-28 Thread Nicolas Emiliani
age 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 from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group

Re: expand fieldset by choice

2012-08-27 Thread Nicolas Emiliani
On Mon, Aug 27, 2012 at 10:51 AM, Axel Rau wrote: > > Am 27.08.2012 um 15:04 schrieb Nicolas Emiliani: > > > > > Through JS, you need to implement a script that binds to the change event > > and then changes the collapse css call for the specific div. You may wan

Re: expand fieldset by choice

2012-08-27 Thread Nicolas Emiliani
ta: > db_table = u'mailbox' > verbose_name = _('Mailbox') > verbose_name_plural = _('Mailboxes') > ordering = ['localpart'] > unique_together = ('localpart', 'localdomainfk') >

Re: Column widths in TabularInline

2012-08-27 Thread Nicolas Emiliani
web, there is a __LOT__ of info on this. Vikas > > -- > 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 from this group, send email

Re: widget construction issue

2012-08-27 Thread Nicolas Emiliani
On Mon, Aug 27, 2012 at 3:54 AM, Melvyn Sopacua wrote: > On 27-8-2012 1:21, Nicolas Emiliani wrote: > > > The thing is that the GridWidget.__init__ method does not get executed > > each time I access the form that contains it, so if the queryset changes > the >

widget construction issue

2012-08-26 Thread Nicolas Emiliani
e queryset changes the widget gets 'obsolete'. Is this some cache issue ? is there any way to force the widget construction each time i access the form containing it ? -- Nicolas Emiliani Lo unico instantaneo en la vida es el cafe, y es bien feo. -- You received this message because y

Re: expand fieldset by choice

2012-08-26 Thread Nicolas Emiliani
le Groups > "Django users" group. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/dja

Re: ModelMultipleChoiceField with MultiWidget ?

2012-08-26 Thread Nicolas Emiliani
d widget inheriting > directly from MultiWidget? > I think you would need to override the methods: __init__, render, > decompress > Yes also, > > But I'm no expert ;-( > > Well, you are closer than I am :) Thanks for the help. > > On Sun, Aug 26, 2012 at 7:42 PM, Nic

ModelMultipleChoiceField with MultiWidget ?

2012-08-26 Thread Nicolas Emiliani
what has been driving me nuts! u'attrs': [ u'2'], As you can see it only passes the id of the attribute, not the id and the value. What I need is something like u'attrs': [ (u'2','500')], Any ideas on how to fix this ? Thanks! -- Nicolas Em

Re: ManyToManyField errors.

2012-08-21 Thread Nicolas Emiliani
tle','code','is_active') > model = Adversite.image_many.through > > Please help me. > > Well, this is just a guess, but you are setting the model in the form as the through attribute of an M2M relationship and that might the problem, have you tried explic

Re: ManyToMany through parameter bug workaround.

2012-08-18 Thread Nicolas Emiliani
Hope it saves some headaches. > -- > Nicolas Emiliani > > Lo unico instantaneo en la vida es el cafe, y es bien feo. > -- Nicolas Emiliani Lo unico instantaneo en la vida es el cafe, y es bien feo. -- You received this message because you are subscribed to the Google Groups "Djang

ManyToMany through parameter bug workaround.

2012-08-18 Thread Nicolas Emiliani
foo = ForeingKey(Foo) value = DateField Here I can store the value for the relationship when saving the Model in the DB. If anyone has a better solution, suggestion, comment or thinks this is going to make me rot in hell please let me know. Thanks. -- Nicolas Emiliani Lo unico instantane

Re: Editing a form values

2012-08-16 Thread Nicolas Ardison
,n_name) self.fields[' name '].initial = ' n_name '; ##END OF CODE El jueves, 16 de agosto de 2012 15:37:10 UTC-3, Nicolas Ardison escribió: > > Hello guys, i can not find how to the following things. > I have a form that it's not related with any model, and i wa

Editing a form values

2012-08-16 Thread Nicolas Ardison
uot;name"); lastname = forms.CharField(label=" lastname"); def Loadname(self,n_name) self.name.value = n_name; # I can not figure out how to do this. ##END OF CODE Thanks in advice for your help people! Nicolas Ardison -- You received this message because you are subscribed to the Goog

Re: Dynamic form field type.

2012-08-06 Thread Nicolas Emiliani
On Sun, Aug 5, 2012 at 9:08 PM, Melvyn Sopacua wrote: > Hi, > > On 6-8-2012 0:09, Nicolas Emiliani wrote: > > > I have three Models, > > > > Home, HomeAttributeType and HomeAttributeValue. HomeAttributeValue has > > an FK to HomeAttributeType and one to Home. &

Dynamic form field type.

2012-08-05 Thread Nicolas Emiliani
an relate each HomeAttributeType to what they should render to. Since I have a variable number of HomeAttributeTypes, I need to set a variable number of hidden fields in the form. I was reading about FormSets but I can't find the way to add one to the ModelForm that the HomeAdmin is using.

Re: dynamic fildsets on ModelAdmin

2012-08-05 Thread Nicolas Emiliani
On Sun, Aug 5, 2012 at 5:40 PM, Melvyn Sopacua wrote: > On 5-8-2012 20:16, Nicolas Emiliani wrote: > > Hi, I've been struggling with dynamic forms and until now I'm loosing the > > battle :S > > > So, now I want the HomeAdmin to render all this stuff into the f

dynamic fildsets on ModelAdmin

2012-08-05 Thread Nicolas Emiliani
eAdminForm gets called after the constructor for HomeAdmin, so all the added fields are not there yet when HomeAdmin.__init__ is called. Is what I'm trying do ok ?, Is there any way to fix this ? Thanks dudes, -- Nicolas Emiliani Lo unico instantaneo en la vida es el cafe, y es bien f

Re: access the state of a Model object prior to it's modification ?

2012-07-31 Thread Nicolas Emiliani
o unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Nicolas Emiliani Lo unico instantaneo en la vida es el cafe, y es bien feo. -- You receiv

Re: Dynamic forms

2012-07-30 Thread Nicolas Emiliani
ail to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Nicolas Emiliani Lo unico instantaneo en la vida es

Re: access the state of a Model object prior to it's modification ?

2012-07-30 Thread Nicolas Emiliani
oups.google.com/d/msg/django-users/-/NM39pkUyvG4J. > > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/gro

Re: Overriding save to create and save related entity

2012-07-25 Thread Nicolas Emiliani
ps.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Nicolas Emiliani Lo unico instantaneo en la vida es el cafe, y es bien feo. -- You received

Re: Image Cropping in template form

2012-07-23 Thread Nicolas Noé
then the mandatory JavaScript code (jcrop, image_cropping.js & co) is not loaded executed here. At least that's what a quick comparison between the rendering of the Admin and the my frontend code shows. Thanks in advance, Nicolas Le mercredi 4 avril 2012 23:16:34 UTC+2, Patrick

can_add TabularInline ?

2012-07-21 Thread Nicolas Emiliani
Hi, so.. I have a TabularInline admin view that displays '+ Add another' and I would like to remove it, like can_delete = False but for the add option. sadly can_add doesn't exist, so how do I achieve this ? Thanks! -- Nicolas Emiliani Lo unico instantaneo en la vida es el cafe

How to create a app inside a app

2012-07-20 Thread Nicolas Ardison
Hello, i was reading the Django documentation, and i have the following trouble that i'm not sure if django can solve it. I have a application called "userArea" and i want to extend that app with more app isolated from the "main" apps. [DjangoProject] [APP1] [subAPP1] [subAPP2] [APP2] Co

Extending a app with other app

2012-07-20 Thread Nicolas Ardison
ook crear how ? Anyone knows some open source project that implement this to see the code? or some doc/tutorial/blog entry to read? Thanks guys =) Nicolas Ardison -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion

Re: unable to override widget

2012-07-17 Thread Nicolas Emiliani
On Sunday, July 15, 2012 6:16:42 PM UTC-3, Nicolas Emiliani wrote: > > Crap, hit the send key, there it goes. Sorry. > > > Hi! >> >> I'm trying to override the AdminFileWidget with no success. The idea is >> to get a thumbnail >> next to the uploaded

Re: Why am I getting an error when send e-mail from hosting?

2012-07-16 Thread Nicolas Emiliani
because you are subscribed to the Google Groups > "Django users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-users/-/pI8qXk50AaEJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this gro

Re: access the state of a Model object prior to it's modification ?

2012-07-16 Thread Nicolas Emiliani
.) > > Yes, you are right, but you are clearing the date, the thing is that I don't want to clear it. That's why I thought of having an attribute in the model that does not render in the form, that would allow me to keep the previous state unchanged and use that in my logic. >

Re: access the state of a Model object prior to it's modification ?

2012-07-15 Thread Nicolas Emiliani
I know if he is republishing or he modified some other field that has nothing to do with that attribute ? I would be republishing only if it's previous state was not published. But how can I acces that previous state ? Sounds waky :P > On Sun, Jul 15, 2012 at 1:49 AM, Nicolas Emiliani

Re: unable to override widget

2012-07-15 Thread Nicolas Emiliani
3 fieldsets = [ (None, { 'fields' : [ ('image','description','name','height','width'), ] } ), ] But the widget still shows itself as the AdminFileWidget, A

unable to override widget

2012-07-15 Thread Nicolas Emiliani
Hi! I'm trying to override the AdminFileWidget with no success. The idea is to get a thumbnail next to the uploaded files in a tabular view of the admin site. I did the following : class AdminImageWidget(AdminFileWidget): def render(self, name, value, attrs=None): -- Nicolas Emilian

Re: Query Distance from User

2012-07-15 Thread Nicolas Emiliani
e (lat,long) that belongs to the user position yo can then ask for a radius in blocks, meters o whatever. So, now you can get the surface of a circle and with some basic math you go through your db checking if any artist are inside the limit of that circle. > Thanks so much! > > JJ &g

Re: Query Distance from User

2012-07-15 Thread Nicolas Emiliani
ost to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- Nicolas Emiliani Lo unico

access the state of a Model object prior to it's modification ?

2012-07-14 Thread Nicolas Emiliani
e save button on the admin form ? or should I use a second model attribute and hide it on the form to keep the previous state ? is there a "Django" way to do this ? It's my first post, be gentle :P Thanks ! -- Nicolas Emiliani Lo unico instantaneo en la vida es el cafe, y es bien

Master/Slave database and get_or_create

2012-04-13 Thread Nicolas Valcárcel
criteria for this to understand it better please? -- Nicolas Valcárcel Gerente IT / CTO Celular: (511) 976 330 707 -- 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. T

django registration and weird date validation data

2012-03-18 Thread nicolas HERSOG
perso/myApp/alpha/myApp/../myApp/myAppFront/regbackend.py" in user_created 10. data.save() Do i have to conf the date input format of django registration ? In order to test my date_input_format conf, i created an empty form with one dateField, i submited it and print the cleaned_data valu

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
Hi everyone, Thanks to you i found the problem. My template folder was conf via my settings.py outsite my project folder. So when i typed python manage.py makemessage -l django didn't parse my settings py in order to find the templates. Now everything is ok Thx to you :) Nicolas On Tue, F

Re: internationalization makemessage don't work

2012-02-27 Thread nicolas HERSOG
nd all the strings i wanted to translate are between {%trans "myStringToTranslate" %} Is the fact that my /template folder is not in the same path than m apps may be a problem ? On Mon, Feb 27, 2012 at 10:58 PM, Denis Darii wrote: > Hi Nicolas. > Try to run makemessages script

Re: internationalization makemessage don't work

2012-02-27 Thread nicolas HERSOG
s' ) INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'registration', 'mySUPERAPP', 'debug_tool

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
mething wrong, or miss something ? Thank you :) Nicolas -- 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 from this group, send email to django-users+unsubscr...@

Re: Custom constraints on User fields

2012-02-13 Thread Nicolas Bazire
On Feb 13, 9:27 pm, Shawn Milochik wrote: > On 02/13/2012 03:25 PM, Nicolas Bazire wrote: > > > On Feb 13, 9:16 pm, Shawn Milochik  wrote: > >> You can override and customize the forms, then manually add the unique > >> indexes to your database. > > > O

Re: Custom constraints on User fields

2012-02-13 Thread Nicolas Bazire
On Feb 13, 9:16 pm, Shawn Milochik wrote: > You can override and customize the forms, then manually add the unique > indexes to your database. Overriding the forms is only part of the problem. For instance, forms are not used with Model.objects.create(). I want to enforce such constraints and not

Custom constraints on User fields

2012-02-13 Thread Nicolas Bazire
" mandatory and unique, how can I code that? I was able to implement such "custom constraints" using pre_save signal or a Proxy model, but I'm not really sure that either of those implementations are a good choice. Nicolas -- You received this message because you are subscribed

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: change Django administration name

2011-11-09 Thread Nicolas
Ok, thanks, it works. I tried different paths but not the one without "admin" at the end, while the doc is clear about that... Anyway! Thank you. Best On Nov 8, 5:56 pm, Tom Evans wrote: > On Tue, Nov 8, 2011 at 4:46 PM, Nicolas wrote: > > Dear all, > > I'm alm

change Django administration name

2011-11-08 Thread Nicolas
gs file is not correctly configured but I don't see why. Any help will be appreciated. Best -nicolas- -- 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

Re: Django app, part 1, error with the database

2011-11-01 Thread Nicolas
Hi, Thanks for your messages. The problem was indeed some missing commas after 'ENGINE': ' ' and 'NAME': ' ' Best -Nicolas- On Nov 1, 6:32 pm, Sandro Dutra wrote: >  'NAME': 'C:/Users/songbird/Desktop/bdd/' # Or path to database

Django app, part 1, error with the database

2011-11-01 Thread Nicolas
e 15 'NAME': 'C:/Users/songbird/Desktop/bdd/' # Or path to database file if using sqlite3. ^ SyntaxError: invalid syntax I'm on windows 7. So, my question is simple: what am I doing wrong? Thanks a lot in advance. Best -Nicolas- -- You received this messag

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
omg, I'm so ashamed... I use {% csrf_token %} and it works, Thx :) Nicolas On Sun, Sep 11, 2011 at 2:52 PM, DrBloodmoney wrote: > On Fri, Sep 9, 2011 at 12:02 PM, Brett Hutley wrote: > > You need to add it to the registration_form.html as well. > > &g

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

  1   2   3   >