Re: Dealing with redundant JS inclusions at template levels

2013-09-30 Thread Darren Spruell
On Mon, Sep 30, 2013 at 6:11 AM, Rafael E. Ferrero wrote: > I Dont know your design, usually i include the js library on base template > and my apps templates extend from that... or just put another base template > for every app... > > If you have some example code or

Re: Интегрция django и 1c

2013-09-30 Thread Иван Земцов
Sorry, I asked the question in the wrong group. On 30 September 2013 17:41, Rafael E. Ferrero wrote: > No Che!, no lo usé nunca... ni siquiera tenía idea de su existencia, > igualmente veo muchas urls con la extensión PHP que no me hacen ninguna > gracia :P > > Saludos

Re: Multiple versions of Django

2013-09-30 Thread Jasvir Singh
On Mon, 30 Sep 2013, Jasvir Singh wrote: > Is it possible to install multiple versions of Django on single ubuntu server. > If yes, please tell me how to do this. @all, thanks for their help but my requirement is to use multiple versions of django on single server. I have to use it apache web

Re: Testing: @override_settings(AUTH_USER_MODEL='auth.User') no working.

2013-09-30 Thread Serge G. Spaolonzi
Thanks, it worked. Changing @override_settings(AUTH_USER_MODEL='auth.User') for @override_settings(AUTH_USER_MODEL='auth.CustomUser') made the trick. On Sun, Sep 29, 2013 at 9:09 PM, Russell Keith-Magee wrote: > > On Mon, Sep 30, 2013 at 7:27 AM, Serge G. Spaolonzi

Re: Django-cart. How to run method add_to_cart?

2013-09-30 Thread Ricardo
Hi, I have this same problem. I'm looking for answer everywhere. enemybass could implement? If someone can help me with this [] s Em quarta-feira, 26 de setembro de 2012 05h33min24s UTC-3, enemybass escreveu: > > https://github.com/bmentges/django-cart > > *I'm* a total *newbie* to *Django.

Re: Textarea and initial value

2013-09-30 Thread Marcin Szamotulski
Thanks, I thought I checked this. Marcin On 30 September 2013 18:22, Daniel Roseman wrote: > On Monday, 30 September 2013 18:18:00 UTC+1, Zoltan Szalai wrote: > >> try not to use the same value ('about') for the name attribute of the >> textarea and your submit button.

Re: Vancouver Python Day

2013-09-30 Thread Mike Doroshenko II
That sounds cool, I would consider going if I lived in Vancouver. On 09/30/2013 03:25 PM, Andy McKay wrote: The Vancouver Python User Group and the Vancouver Django Meetup Group are pleased to announce: Vancouver Python Day Saturday, November 16, 2013 SFU Harbour Centre Part of Vancouver

Vancouver Python Day

2013-09-30 Thread Andy McKay
The Vancouver Python User Group and the Vancouver Django Meetup Group are pleased to announce: Vancouver Python Day Saturday, November 16, 2013 SFU Harbour Centre Part of Vancouver Developer Week 2013, Vancouver Python Day is a one-day mini conference celebrating the Python Developer Community

Re: Using unique_together with foreign key fields which may be None

2013-09-30 Thread Karen Tracey
On Mon, Sep 30, 2013 at 4:55 PM, Berndt Jung wrote: > Because the lookup_value of a null field is None, the validation check is > aborted entirely. This seems wrong to me, and I'm wondering if I'm doing > something wrong here. Redefining the models is not something I can do at

Re: Using unique_together with foreign key fields which may be None

2013-09-30 Thread Berndt Jung
Well, I may have answered my own question. It looks like per the SQL standard NULL values are unique. Here from the postgres docs: In general, a unique constraint is violated when there are two or more rows in the table where the values of all of the columns included in the constraint are

Using unique_together with foreign key fields which may be None

2013-09-30 Thread Berndt Jung
Hi, I'm having trouble using the unique together constraint with a a field which may be None. Given this model: class Rule(models.Model): internal = models.BooleanField(default=False) port_range_from = models.PositiveIntegerField(null=True, blank=True) port_range_to =

Re: How to Query account/profile information for multiple account and allowing user edit or update acount

2013-09-30 Thread Daniel Roseman
On Monday, 30 September 2013 19:33:31 UTC+1, Okorie Emmanuel wrote: > I have two problems > > 1. How can i populate the account >information of each user, this >what i have done but only info on >user models populates, the info on extended >field does not show on my template >

Re: How to Query account/profile information for multiple account and allowing user edit or update acount

2013-09-30 Thread Frank Bieniek
Please try, django-userena, or django-registration, both deal with userdetails. Thx Frank Am 30.09.13 20:33, schrieb Okorie Emmanuel: I have two problems 1. How can i populate the account information of each user, this what i have done but only info on user models populates, the

How to Query account/profile information for multiple account and allowing user edit or update acount

2013-09-30 Thread Okorie Emmanuel
I have two problems 1. How can i populate the account information of each user, this what i have done but only info on user models populates, the info on extended field does not show on my template # models.py class Student(Models.model): user = foreignkey(user)

Re: Textarea and initial value

2013-09-30 Thread Daniel Roseman
On Monday, 30 September 2013 18:18:00 UTC+1, Zoltan Szalai wrote: > try not to use the same value ('about') for the name attribute of the > textarea and your submit button. > not sure it helps the situation though. > > I'd say that is the exact cause of the problem, actually. -- DR. -- You

Re: Multiple versions of Django

2013-09-30 Thread carlos
Hi, uwsgi is too good option http://uwsgi-docs.readthedocs.org/en/latest/ and nginx with virtualenv On Mon, Sep 30, 2013 at 11:45 AM, Peter Herndon wrote: > I would suggest using separate virtual environments, each with gunicorn ( > http://gunicorn.org/) installed into the

Re: Multiple versions of Django

2013-09-30 Thread Peter Herndon
I would suggest using separate virtual environments, each with gunicorn (http://gunicorn.org/) installed into the venv. Run gunicorn listening on a different port per venv, start all your venvs under supervisord (http://supervisor.org/), and proxy them behind nginx (http://wiki.nginx.org/). On

Re: no value in database

2013-09-30 Thread Satinderpal Singh
On Mon, Sep 30, 2013 at 10:07 PM, Harjot Mann wrote: > Here is the code to my view, > http://tny.cz/57446220 > After filing form when I click on submit button , I am getting this > error "SsupenceEditJob matching query does not exist" and not getting I think it must be

Re: Textarea and initial value

2013-09-30 Thread Zoltan Szalai
try not to use the same value ('about') for the name attribute of the textarea and your submit button. not sure it helps the situation though. On 2013.09.30. 19:13, Marcin Szamotulski wrote: ps. If I render the form with enctype='multipart/form-data'> {{ form.as_ul() }} I get the

Re: Textarea and initial value

2013-09-30 Thread Marcin Szamotulski
ps. If I render the form with {{ form.as_ul() }} I get the same behaviour. Marcin On 30 September 2013 17:11, Marcin Szamotulski wrote: > Sure here it is how the form is render: > > > value='' /> > > Submit > > > Format: > >

Re: Textarea and initial value

2013-09-30 Thread Marcin Szamotulski
Sure here it is how the form is render: Submit Format: Text reStructuredText MarkDown Profile image: I use jinja2 template language and it is rendered with {% csrf_token %} {{ render_field(aboutform.about,

no value in database

2013-09-30 Thread Harjot Mann
Here is the code to my view, http://tny.cz/57446220 After filing form when I click on submit button , I am getting this error "SsupenceEditJob matching query does not exist" and not getting any values in database. Help me please. -- Harjot Kaur Mann Blog: http://harjotmann.wordpress.com/ Daily

Re: Multiple versions of Django

2013-09-30 Thread Bill Freeman
Virtual environments can, indeed, be used under Apache. I presume other front ends can also handle this. For Apache, the separate VE's need to be in separate deamon process groups, so that their sys.path settings can differ. The primary thing that virtualenv does for you is tweak sys.path,

Re: xadmin override base_site.html

2013-09-30 Thread Christian Schulz
Ahh got it , different versions in my installation. Christian Am Montag, 30. September 2013 16:54:43 UTC+2 schrieb Christian Schulz: > > Hi, > > has someboday a clue why I get this error. > Without the modifications xadmin works fine, but if I copy for > modifications in my

Re: Multiple versions of Django

2013-09-30 Thread Gerald Klein
Sorry please disregard I didn't read far enough into your message On Mon, Sep 30, 2013 at 10:25 AM, Jasvir Singh wrote: > Is it possible to install multiple versions of Django on single ubuntu > server. > If yes, please tell me how to do this. > I have already made a

Re: Multiple versions of Django

2013-09-30 Thread Gerald Klein
Yes, use something like VirtualEnv, it allows you to separate website environments and requirements and it has nice additionals to help you publish On Mon, Sep 30, 2013 at 10:25 AM, Jasvir Singh wrote: > Is it possible to install multiple versions of Django on single

Multiple versions of Django

2013-09-30 Thread Jasvir Singh
Is it possible to install multiple versions of Django on single ubuntu server. If yes, please tell me how to do this. I have already made a try for this using virtual environment, but found that it is only for development. -- Jasvir Singh Grewal Blog:http://jasvirsinghgrewal91.wordpress.com/

Django South - SyntaxError: invalid syntax (, line 1)

2013-09-30 Thread Ivan Goncalves
Hi I'm having trouble with the South. In the model below: class Carrier (models.Model): name = models.CharField (max_length = 40, blank = False, null = False, verbose_name = 'Name') user = models.ForeignKey (User, blank = True, null = True) def save (self, force_insert

Re: Textarea and initial value

2013-09-30 Thread Daniel Roseman
On Monday, 30 September 2013 15:41:47 UTC+1, Marcin Szamotulski wrote: > > I don't do anything odd: I simply modify it by typing in side textarea. > The page has a very simple JavaScript which does not do anything with > the textarea (though I double-checked that turning it off does not >

xadmin override base_site.html

2013-09-30 Thread Christian Schulz
Hi, has someboday a clue why I get this error. Without the modifications xadmin works fine, but if I copy for modifications in my ../templates/xadmin/base_site.html I got the error below. If I cut this *if step* the template is loaded but without surprise in fragile form. Has anybody an

Re: Textarea and initial value

2013-09-30 Thread Marcin Szamotulski
On 06:38 Mon 30 Sep , Daniel Roseman wrote: > On Sunday, 29 September 2013 22:58:38 UTC+1, Marcin Szamotulski wrote: > > > Dear Django users, > > > > The short question is: How to use Textarea widget with initial value? > > The long version: I have a form with a simple Textarea widget > >

Re: Creating multiple objects at once

2013-09-30 Thread Hector Armando Vela Santos
well, you can always write the raw SQL querie... https://docs.djangoproject.com/en/1.4/topics/db/sql/ On Sunday, September 29, 2013 10:16:47 PM UTC-5, Lachlan Musicman wrote: > > Hola, > > I have a inventory system with Parts and Part types. Part Types are > Archetypes, parts are instances of

Re: Интегрция django и 1c

2013-09-30 Thread Rafael E. Ferrero
No Che!, no lo usé nunca... ni siquiera tenía idea de su existencia, igualmente veo muchas urls con la extensión PHP que no me hacen ninguna gracia :P Saludos !! 2013/9/30 Иван Земцов > Всем привет! > Кто нибудь обладает более подробной информацией по протоколу обмена чем >

Re: Textarea and initial value

2013-09-30 Thread Daniel Roseman
On Sunday, 29 September 2013 22:58:38 UTC+1, Marcin Szamotulski wrote: > Dear Django users, > > The short question is: How to use Textarea widget with initial value? > The long version: I have a form with a simple Textarea widget > > class Form(forms.Form): > > f =

Re: Dealing with redundant JS inclusions at template levels

2013-09-30 Thread Dariel Dato-on
You can consider using Django Sekizai to manage your Javascript and CSS imports: https://django-sekizai.readthedocs.org/en/latest/ Hope that helps! Best, Dariel Dato-on On Monday, September 30, 2013 1:12:54 AM UTC-5, dspruell wrote: > > Spent a bit of time debugging some faulty JavaScript

Интегрция django и 1c

2013-09-30 Thread Иван Земцов
Всем привет! Кто нибудь обладает более подробной информацией по протоколу обмена чем тут ? http://v8.1c.ru/edi/edi_stnd/131/ Может у кого-то есть какая-нибудь реализация данного протокола? -- С уважением, Иван -- You received this message because you are subscribed to the Google Groups

Re: Not able to create an simple application using DB (syncdb error)

2013-09-30 Thread Bill Freeman
Have you said which version of Django you are using? (If so, it slipped past me.) Is this all code that you wrote yourself, or did you copy some or all it from somewhere? If copied, under what version of Django was it being used? Have you gone through and understood the tutorial for the version

Re: Dealing with redundant JS inclusions at template levels

2013-09-30 Thread Rafael E. Ferrero
I Dont know your design, usually i include the js library on base template and my apps templates extend from that... or just put another base template for every app... If you have some example code or tell us why you do that then we be more helpfull See ya 2013/9/30 Darren Spruell

Dealing with redundant JS inclusions at template levels

2013-09-30 Thread Darren Spruell
Spent a bit of time debugging some faulty JavaScript library functionality before I realized that I had included the library at multiple levels in the project - first site-wide in the base template, and then within a app. I think I ran into this:

Re: Executing validation on entry to class-based views

2013-09-30 Thread Darren Spruell
Hm, yes! Thanks, had forgotten about dispatch(). On Thu, Sep 26, 2013 at 1:24 AM, Daniel Roseman wrote: > On Thursday, 26 September 2013 07:29:38 UTC+1, dspruell wrote: >> >> Greetings, >> >> I have an app with a CBV for the main functionality that I'd like to >> do some