Re: Apache and wsgi => Where to put my djangoproject files? Please Help!

2012-05-14 Thread doniyor
can you pls give me your email? if possible, your skype also, if you can, i would love to discuss it in skype.. sofar it is working now, but there are still some questions and hesitations... thanks :) Am Dienstag, 15. Mai 2012 07:35:44 UTC+2 schrieb lawgon: > > On Mon, 2012-05-14 at 06:13

Re: consistent (un)capitalization in form labels

2012-05-14 Thread ?manu*
I know I can use the label argument in every field. However this is very annoying... also this is very complicated for ModelForms where labels come from Model attributes, and the verbose_name of these attributes is not useful since it gets capitalized. On 13 Mag, 20:44, Ejah

Re: consistent (un)capitalization in form labels

2012-05-14 Thread ?manu*
Nice. I think this will be my solution! On 13 Mag, 20:42, Ejah wrote: > I would solve this with css. > label { >     text-transform: lowercase;} > > Done. > Hth. > > On 13 mei, 12:02, "?manu*" wrote: > > > > > > > > > Hi all, > > > my graphic

Re: Apache and wsgi => Where to put my djangoproject files? Please Help!

2012-05-14 Thread kenneth gonsalves
On Mon, 2012-05-14 at 06:13 -0700, doniyor wrote: > hey lawgon, one more question. i did the steps. but still not > working. > could you please take a look into my whole project on server if i give > you > the access thru PuTty? no problem - send me the username, password and url offlist. --

Re: Use Django to implement my GUI!

2012-05-14 Thread Alec Taylor
No reason to do anything crazy like that. Forget SOCKETS, use HTTP or HTTPS. Clientside/mobileside/webside build in HTML+CSS+JS. #win On Tue, May 15, 2012 at 9:18 AM, Eugène Ngontang wrote: > Hi Jani! > > I haven't seen the last statements of your post, whre you say I'm

Re: Help - Which IDE is best to use.

2012-05-14 Thread Ezequiel Bertti
10x pycharm... the best one... the only one made to work with python and django... On Tue, May 15, 2012 at 12:28 AM, Rivsen wrote: > Maybe you can try Sublime Text 2. It's a good IDE or Editor. > > 2012/5/15 Harold.Miao > > maybe eclipse+pydev

Re: Help - Which IDE is best to use.

2012-05-14 Thread Rivsen
Maybe you can try Sublime Text 2. It's a good IDE or Editor. 2012/5/15 Harold.Miao > maybe eclipse+pydev is good IDE > > > 2012/5/15 doniyor > >> @Aaron: you are more than right, >> >> >> >> Am Montag, 14. Mai 2012 19:44:35 UTC+2 schrieb

Re: Help - Which IDE is best to use.

2012-05-14 Thread Harold.Miao
maybe eclipse+pydev is good IDE 2012/5/15 doniyor > @Aaron: you are more than right, > > > > Am Montag, 14. Mai 2012 19:44:35 UTC+2 schrieb Aaron C. de Bruyn: > >> Try here: >> >> https://code.djangoproject.**com/wiki/DjangoResources#** >>

Re: Admin user privilege elevation (how to prevent it)

2012-05-14 Thread Russell Keith-Magee
On Tue, May 15, 2012 at 8:59 AM, Stephen McDonald wrote: > Stephen from Mezzanine here - thanks for the thorough response Russ. > > The cleansing process we go through is very rigorous - we're leaning > on the shoulders of tools that have solved this problem (in our case >

Re: Admin user privilege elevation (how to prevent it)

2012-05-14 Thread Stephen McDonald
Stephen from Mezzanine here - thanks for the thorough response Russ. The cleansing process we go through is very rigorous - we're leaning on the shoulders of tools that have solved this problem (in our case the bleach library). It uses a white-list of tags and attributes, so all those tricky edge

Re: RedirectView with query_string = True and urlencoded unicode string

2012-05-14 Thread Andrew Bruce
You have passed 'anything' as a keyword argument that will get passed into your view. Unfortunately, you can't access it in your inline constructor call. Try subclassing RedirectView in views.py of your app. class SubRedirectView(RedirectView): query_string = True def

Re: configure FileZilla upload destination!!

2012-05-14 Thread Nikolas Stevenson-Molnar
You'll get used to the Linux folder structure ;) As for your problem, it sounds like your FTP user doesn't have filesystem permissions to the folder you're trying to upload to. I would change either owner or group for the folder. _Nik On 5/14/2012 6:19 PM, doniyor wrote: > hi there, finally i

configure FileZilla upload destination!!

2012-05-14 Thread doniyor
hi there, finally i got my djangoproject running on apache server after 3 days of thinking and googling.. i should say, linux folder hierarchie is sometimes not really intuitive to grasp.. my last problem though: i created a folder outside of the docroot and now all files are there. so good

sweat-equity

2012-05-14 Thread Mike Dewhirst
This is off-topic except for people starting un(der)-funded Django projects. I have written some guidelines for stakeholders and developers plus an equity-in-lieu-of-salary agreement. The guidelines come from my own experience in projects. Apologies to Scrum and eXtreme purists but I need to

Re: Admin user privilege elevation (how to prevent it)

2012-05-14 Thread Josh Cartmell
That is as I feared, thanks for the help Russ. On May 14, 4:58 pm, Russell Keith-Magee wrote: > On Tue, May 15, 2012 at 5:09 AM, Josh Cartmell wrote: > > Thanks for the responses and insight everyone (special thanks to > > Russel to clarifying what

Re: How to get the Exception Type

2012-05-14 Thread Nikolas Stevenson-Molnar
You could also log the whole stack trace using the traceback module: http://docs.python.org/library/traceback.html _Nik On 5/14/2012 4:54 PM, Luis Gonzalez wrote: > Hi as you can see here at http://docs.python.org/tutorial/errors.html > in 8.3 handling exceptions theres a piece of code that

Re: Admin user privilege elevation (how to prevent it)

2012-05-14 Thread Russell Keith-Magee
On Tue, May 15, 2012 at 5:09 AM, Josh Cartmell wrote: > Thanks for the responses and insight everyone (special thanks to > Russel to clarifying what type of attack this is).  I will point this > discussion out to the Mezzanine users group and hopefully it will > generate

Re: How to get the Exception Type

2012-05-14 Thread Luis Gonzalez
Hi as you can see here at http://docs.python.org/tutorial/errors.html in 8.3 handling exceptions theres a piece of code that works as you want. for example try this: try: int("a") except Exception as e: #The key is using "as" and the variable name you like for retrieving the exception because

Re: Tree hierarchy with prefetch_related()?

2012-05-14 Thread Russell Keith-Magee
On Tue, May 15, 2012 at 1:20 AM, Carsten Fuchs wrote: > Dear Django group, > > I've never worked with hierarchic database models before, and would be very > grateful for your advice: > > In my application I need a hierarchy of objects, e.g. > > > class

How to get the Exception Type

2012-05-14 Thread LJ
I am trying to add exception handling to my application. I have been reading the documentation on Django Exceptions: https://docs.djangoproject.com/en/dev/ref/exceptions/ I also found the list of Exceptions (both Django and Python). But for testing purposes, I need a way to handle all exceptions

Re: Use Django to implement my GUI!

2012-05-14 Thread Eugène Ngontang
Hi Jani! I haven't seen the last statements of your post, whre you say I'm not really clear and that i'm building a non-http GUI using Django. OK let's stay on the rendering issue only, and specify things simply. This is a simple description of the architecture I want to set up : - A Client

Re: RedirectView with query_string = True and urlencoded unicode string

2012-05-14 Thread Sławek Ehlert
As the error states: You don't have a format argument in your '/tmovil/planes/%(anything)s' string. Cheers Dnia 14.05.2012 23:19, Germán napisał(a): Hi. Please excuse my ignorance in this affairs. For an specific URI

Re: Re: RedirectView with query_string = True and urlencoded unicode string

2012-05-14 Thread Germán
Hi. Please excuse my ignorance in this affairs. For an specific

Re: Admin user privilege elevation (how to prevent it)

2012-05-14 Thread Josh Cartmell
Thanks for the responses and insight everyone (special thanks to Russel to clarifying what type of attack this is). I will point this discussion out to the Mezzanine users group and hopefully it will generate some more thought into the matter. @Nikolas, you summed up what I was thinking well. I

Re: Good method to require EULA acceptance

2012-05-14 Thread Murph Murphy
BGMaster, did you ever get this working? I'm encountering the same problem, and can't seem to get the middleware redirects to work properly (doesn't properly submit/constantly redirects). On Wednesday, May 2, 2012 3:34:16 PM UTC-6, BGMaster wrote: > > Hi, > > I'm trying to implement acceptance

SATCHMO: Access custom product fields

2012-05-14 Thread kooliah
I have a custom product model -- from django.db import models from django.utils.translation import ugettext_lazy as _ from product.models import Product class

Re: reusable django event/calendar app

2012-05-14 Thread Kizzo Kilgore
Hello, django-swingtime is really good (http://code.google.com/p/django-swingtime/). It has day, month, and yearly views, and has nice classes to base your events/times off of (Event, EventType, and Occurrence models). On Mon, May 14, 2012 at 9:26 AM, KentH wrote: > Hi, > >

Re: Help - Which IDE is best to use.

2012-05-14 Thread doniyor
@Aaron: you are more than right, Am Montag, 14. Mai 2012 19:44:35 UTC+2 schrieb Aaron C. de Bruyn: > > Try here: > > > https://code.djangoproject.com/wiki/DjangoResources#IntegratedDevelopmentEnvironments > > > But keep in mind, a good carpenter can work with a $5 hammer or a $50 > hammer.

Re: Help - Which IDE is best to use.

2012-05-14 Thread Aaron C. de Bruyn
Try here: https://code.djangoproject.com/wiki/DjangoResources#IntegratedDevelopmentEnvironments But keep in mind, a good carpenter can work with a $5 hammer or a $50 hammer. The tools don't make the developer. (Although they can make the job of a good developer easier.) -A On Mon, May 14,

Re: Help - Which IDE is best to use.

2012-05-14 Thread Sandro Dutra
Again... Please search before create one more of this messages about "What's IDE is best?". The best IDE is the IDE you fell confortable using. There 666 topics about this here, search... 2012/5/14 Eneldo Serrata > Aptana or Eclipse with PyDev Plugin > http://pydev.org/

Re: Django class based views - not keen - anyone else??

2012-05-14 Thread meshy
While you're waiting for the class-based views documentation to come through, you could use the CBV reference I (and some friends) have put together: http://ccbv.co.uk/ It flattens the class hierarchy (all the views, mixins etc) to show you all the methods and attributes that each CBV has

reusable django event/calendar app

2012-05-14 Thread KentH
Hi, Is there an event/calendar/schedule app that people currently use? All of the ones I've come across (django-schedule, django-cal-event, etc) appear to have been last modified in '07, '08, or so. I was hoping to find something compatible with current release of Django. Thanks. Kent --

Re: Help - Which IDE is best to use.

2012-05-14 Thread Eneldo Serrata
Aptana or Eclipse with PyDev Plugin http://pydev.org/ El 14/05/2012, a las 11:56, Sanjay M escribió: > I am new to Django, and I was confused in choosing a IDE between Eclipse and > aptana studio 3 to edit source code. Kindly suggest me a good one. > > Thank you in advance, > Regards, >

Tree hierarchy with prefetch_related()?

2012-05-14 Thread Carsten Fuchs
Dear Django group, I've never worked with hierarchic database models before, and would be very grateful for your advice: In my application I need a hierarchy of objects, e.g. class Account(models.Model): parent = models.ForeignKey('self', null=True, blank=True) name =

Re: Help - Which IDE is best to use.

2012-05-14 Thread Sanjay M
Thanks for all the replies, But what is the difference between aptana standalone version eclipse plugin version? On Monday, May 14, 2012 9:26:22 PM UTC+5:30, Sanjay M wrote: > > I am new to Django, and I was confused in choosing a IDE between Eclipse > and aptana studio 3 to edit source code.

Re: Help - Which IDE is best to use.

2012-05-14 Thread Eugenio Minardi
Aptana works fine as soon as the workspace is light. We switched to PyCharm if you use it for work you'll get back the money you spent by saving time. Eugenio Il giorno 14/mag/2012 18:09, "doniyor" ha scritto: > aptana is the best, free and light. > > Am Montag, 14.

Re: help with foreignkeys

2012-05-14 Thread psychok7
thanks thats exactly wht i needed ;) On Monday, May 14, 2012 6:58:47 AM UTC+1, Nikolas Stevenson-Molnar wrote: > > When you have a FK to park in your comment model, you automatically get a > reference to a list of comments from the park model. E.g: > > class Park(models.Model): > #Park fields

Re: PLEAASSEE HEEELPP!!!!!!!!!!!

2012-05-14 Thread Babatunde Akinyanmi
**ignore previous message sent in error** On 5/14/12, Babatunde Akinyanmi wrote: > You'll likely get more help from apache server's group (if they have > one), from stackoverflow or just google it > > On 5/14/12, doniyor wrote: >> hi there,

Re: PLEAASSEE HEEELPP!!!!!!!!!!!

2012-05-14 Thread Babatunde Akinyanmi
You'll likely get more help from apache server's group (if they have one), from stackoverflow or just google it On 5/14/12, doniyor wrote: > hi there, please help me, i am just right on the coast of success, but > cannot find the clue somehow.. this is my thread: >

Re: Help - Which IDE is best to use.

2012-05-14 Thread doniyor
aptana is the best, free and light. Am Montag, 14. Mai 2012 17:56:22 UTC+2 schrieb Sanjay M: > > I am new to Django, and I was confused in choosing a IDE between Eclipse > and aptana studio 3 to edit source code. Kindly suggest me a good one. > > Thank you in advance, > Regards, > Sanjay M > >

Re: syncdb not creating columns in postgresql database

2012-05-14 Thread doniyor
delete your app from INSTALLED_APPS and syncdb, AND list it again in INSTALLED_APPS and syncdb again.. if it doesnot work, do this: delete your db, then syncdb, then list your app in INSTALLED_APPS and syncdb again. Am Montag, 14. Mai 2012 17:54:35 UTC+2 schrieb Mac: > > Every time I

Re: Help - Which IDE is best to use.

2012-05-14 Thread Ali Mesdaq
If you can pay for the full version Komodo has been working awesome for me not only for Django but for almost any kind of development work. Thanks, Ali Mesdaq Security Researcher Work: +1(408) 321-7779 | Fax: +1 (408) 321-9818 Email: ali.mes...@fireeye.com Next Generation Threat Protection

Re: Help - Which IDE is best to use.

2012-05-14 Thread BadStorm
I worked for month with aptana 3 on mac, but now i found pycharm (http://www.jetbrains.com/pycharm/), fast, configurable and powerful. Only one problem: it's not free!!! :) Il 14/05/12 17:56, Sanjay M ha scritto: I am new to Django, and I was confused in choosing a IDE between Eclipse and

Help - Which IDE is best to use.

2012-05-14 Thread Sanjay M
I am new to Django, and I was confused in choosing a IDE between Eclipse and aptana studio 3 to edit source code. Kindly suggest me a good one. Thank you in advance, Regards, Sanjay M -- You received this message because you are subscribed to the Google Groups "Django users" group. To view

Re: UpdateView Creates a new object

2012-05-14 Thread Xavier Ordoquy
No problem. Redirecting after a POST is a good habit. This will avoid duplicated data if the user reloads the page because if you don't redirect, you'll get a second POST. Regards, Xavier Ordoquy, Linovia. Le 14 mai 2012 à 17:42, Michael Ackerman a écrit : > Thank you very much, that worked.

PLEAASSEE HEEELPP!!!!!!!!!!!

2012-05-14 Thread doniyor
hi there, please help me, i am just right on the coast of success, but cannot find the clue somehow.. this is my thread: https://groups.google.com/forum/?hl=de#!topic/django-users/0UYopuCkvXo my only question is: What is Docroot and what should live there? my page is showing the files thru

syncdb not creating columns in postgresql database

2012-05-14 Thread Michael Ackerman
Every time I edit a model and run syncdb, I get a database error telling me that the column doesn't exist. *#Error Message:* Environment: Request Method: GET Request URL: http://127.0.0.1:8000/tickets/2/ Django Version: 1.4 Python Version: 2.7.3 Installed Applications: ('django.contrib.auth',

Re: UpdateView Creates a new object

2012-05-14 Thread Michael Ackerman
Thank you very much, that worked. Also, do I have to redirect after POST (success_url)? for example posting a status on facebook or twitter? On Sun, May 13, 2012 at 6:06 PM, Xavier Ordoquy wrote: > Hi, > > You should just use action="" since it will post to the url the page

Re: Django News App

2012-05-14 Thread Alec Taylor
Mezzanine might be a bit of fun to work with Also note that Django was developed for a news room, so you should be fine with it as is (if you learn how to use it... maybe go through the docs) On Tue, May 15, 2012 at 12:28 AM, armagan wrote: > Hi, > I am trying to

Re: database routers from html code

2012-05-14 Thread Antonimus
Thanks, I was hoping there is an easy way :) -- 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 News App

2012-05-14 Thread armagan
Hi, I am trying to practice a news app. I've tried to set up Django-cms app, it's running but it's a bit complex for a news application. And now I started to set up zinnia blog app. Do you suggest another one? -- You received this message because you are subscribed to the Google Groups "Django

Re: Possible bug in the Django documentation

2012-05-14 Thread Joseph Mornin
Ah. I didn't notice that I was using the dev documentation. Thanks! On 5/14/12 10:04 AM, Alasdair Nicol wrote: Hi Joseph, On 14/05/12 14:26, Joseph Mornin wrote: Hi, I noticed a possible bug in the Django documentation. The authentication docs

Help.......!!

2012-05-14 Thread Ali Shaikh
Hi Django.. I Am implementing Django front end setup and Am using SQLite as Database for my project...Am new to djnago family . Help me to implement 1.Determine all network interface connected to system 2.Determine all ENABLED interfaces 3.start monitoring all enabled interface. Thank

Re: How do you write a django model that can crunch numbers and automatically populate another field with results?

2012-05-14 Thread Chris Lawlor
Also, you can use aggregate queries to get the tfidf max and min: from django.db.models import Max, Min Party.objects.all().aggregate(Max(tfidf')) {'tfidf__max': 0.5 } See https://docs.djangoproject.com/en/dev/topics/db/aggregation/#cheat-sheet On Wednesday, 9 May 2012 01:00:18 UTC-4, Andy

Re: Deferred fields problem.

2012-05-14 Thread Jani Tiainen
I'm still on 1.3.1 but planning to upgrade to 1.4 quite soon. On Mon, May 14, 2012 at 3:50 PM, akaariai wrote: > On May 14, 3:29 pm, Jani Tiainen wrote: > > 14.5.2012 14:50, akaariai kirjoitti: > > > > > > > > > > > > > > > > > > > > > > > > > On May 14,

Re: Possible bug in the Django documentation

2012-05-14 Thread Alasdair Nicol
Hi Joseph, On 14/05/12 14:26, Joseph Mornin wrote: Hi, I noticed a possible bug in the Django documentation. The authentication docs (at https://docs.djangoproject.com/en/dev/topics/auth/) include this sample code for registration/login.html: http://dpaste.com/747993/ Running this code gives

Possible bug in the Django documentation

2012-05-14 Thread Joseph Mornin
Hi, I noticed a possible bug in the Django documentation. The authentication docs (at https://docs.djangoproject.com/en/dev/topics/auth/) include this sample code for registration/login.html: http://dpaste.com/747993/ Running this code gives me this error: ### TemplateSyntaxError at /login

Re: How to serve staticfiles with full URL for local development?

2012-05-14 Thread Reinout van Rees
On 11-05-12 08:48, e.generalov wrote: ps: but why these restrictions are needed in the tool, which should assist in the development? I think you're using it in a strange way, as I (nor anyone I know that uses django-staticfiles) has any problem in development. You said in a reply to one of

Re: Django con Apache

2012-05-14 Thread Segundo Acosta Delgado
Ok, lo pruebo rápido!!! El lunes, 14 de mayo de 2012 08:13:55 UTC-5, kmox83 escribió: > > Hi, > > you can find a nice tutorial here > http://projects.unbit.it/uwsgi/wiki/Example > > Eugenio > > On Mon, May 14, 2012 at 3:09 PM, Segundo Acosta Delgado > wrote: > >> Holas

Re: Apache and wsgi => Where to put my djangoproject files? Please Help!

2012-05-14 Thread doniyor
one more thing, there are wsgi.py and example.wsgi files. are they equivalent or they are different files? and where should they live ? Am Montag, 14. Mai 2012 15:13:03 UTC+2 schrieb doniyor: > > hey lawgon, one more question. i did the steps. but still not working. > could you please take a

Re: Pass data from html to views.

2012-05-14 Thread voss
Hi Am, this sounds like a good idea, and I think it may work in my case (with dajax). Thank you! I have a question, though. I know that with dajax, the data is passed to the ajax views in ajax.py, and the result is then sent back to the same html page. But how exactly does your method work? (I

Re: Django con Apache

2012-05-14 Thread Eugenio Minardi
Hi, you can find a nice tutorial here http://projects.unbit.it/uwsgi/wiki/Example Eugenio On Mon, May 14, 2012 at 3:09 PM, Segundo Acosta Delgado wrote: > Holas developers!! , tengo un centOs 6.2 y quiero hacer correr Django con > apache, django corre sin problemas pero al

Re: Apache and wsgi => Where to put my djangoproject files? Please Help!

2012-05-14 Thread doniyor
hey lawgon, one more question. i did the steps. but still not working. could you please take a look into my whole project on server if i give you the access thru PuTty? now, there is nothing under docroot folder. just empty. and if i open browser, it is trying to show again the content of

Django con Apache

2012-05-14 Thread Segundo Acosta Delgado
Holas developers!! , tengo un centOs 6.2 y quiero hacer correr Django con apache, django corre sin problemas pero al intentar usarlo con fastcgi para apache no leventa la página, alguna solución ?? -- You received this message because you are subscribed to the Google Groups "Django users"

Software Developer Python/Django in Berlin/Germany

2012-05-14 Thread hhhei
For our customer, a Berlin company in the fast growing market of video delivery service, we are currently looking for an experienced python/ django developer. The job contains the development of a software for cutting-edge video delivery technology with latest development technologies. You should

Re: Pass data from html to views.

2012-05-14 Thread voss
Thanks, Nik. The list is actually a result of dnd and dojo.cookie. For some reason, creating hidden input nodes does not work in this case. On Friday, May 11, 2012 5:31:49 PM UTC-5, Nikolas Stevenson-Molnar wrote: > > How about creating hidden input nodes inside a form for each li node you >

Re: Apache and wsgi => Where to put my djangoproject files? Please Help!

2012-05-14 Thread doniyor
oh okay, many thanks.. Am Montag, 14. Mai 2012 13:37:48 UTC+2 schrieb lawgon: > > On Mon, 2012-05-14 at 01:22 -0700, doniyor wrote: > > by the way, i am just on terminal, accessing the remote server via > > PuTTy. > > so i should push the whole project to some repository and pull it into >

group-objects-with-same-field-value

2012-05-14 Thread Panos Laganakos
Posted a question here: http://stackoverflow.com/questions/10583697/group-objects-with-same-field-value -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Re: Deferred fields problem.

2012-05-14 Thread akaariai
On May 14, 3:29 pm, Jani Tiainen wrote: > 14.5.2012 14:50, akaariai kirjoitti: > > > > > > > > > > > > > On May 14, 2:37 pm, Jani Tiainen  wrote: > >> Hi, > > >> I have in my database quite a bunch of a models where I do have quite > >> large fields and I'm

Re: form resubmit on refresh problem

2012-05-14 Thread jondykeman
Thanks so much. I looked into the documentation and that is exactly what I will use. I have two followup questions: 1) I have a main page that is a table of accounts where the user selects the account they want to edit. Currently the table is in a form and I just have the values of the

Re: Deferred fields problem.

2012-05-14 Thread Jani Tiainen
14.5.2012 14:50, akaariai kirjoitti: On May 14, 2:37 pm, Jani Tiainen wrote: Hi, I have in my database quite a bunch of a models where I do have quite large fields and I'm using .only('pk', 'identifier') to fetch only those two fields - mainly to make serverside natural

Project/App announcement - django-cuser

2012-05-14 Thread Alireza Savand
Hi I don't i can use mailing-list to announce a project, i just try ;D Okay, i just released an app named *django-cuser, *it's fork of django-echelon but without audit stuff I did not doing anything cool in it, just pypi pkg added, and remove unnecessary stuff. PyPi:

Re: database routers from html code

2012-05-14 Thread akaariai
On May 14, 11:43 am, Antonimus wrote: > Hi, I'm new to django and web framework. What I'm trying to do is to > select what database to connect from html template select. In the > login form, besides user and password, it's a select field with > database alias to connect: >    

Re: Deferred fields problem.

2012-05-14 Thread akaariai
On May 14, 2:37 pm, Jani Tiainen wrote: > Hi, > > I have in my database quite a bunch of a models where I do have quite > large fields and I'm using .only('pk', 'identifier') to fetch only those > two fields - mainly to make serverside natural sort for a data. Database > is

Re: postgresql connection is not closed

2012-05-14 Thread akaariai
On May 14, 9:05 am, shariq wrote: > Hi, > I am running django-1.2 with postgresql. > I am facing the problem. > Django is not closing the connection and the connection is > retained by db-server until DBA goes and kill the connection manually. Are you using multiple

Re: Apache and wsgi => Where to put my djangoproject files? Please Help!

2012-05-14 Thread kenneth gonsalves
On Mon, 2012-05-14 at 01:22 -0700, doniyor wrote: > by the way, i am just on terminal, accessing the remote server via > PuTTy. > so i should push the whole project to some repository and pull it into > a > project folder on server from repository, right? right - but do not put the sensitive

Deferred fields problem.

2012-05-14 Thread Jani Tiainen
Hi, I have in my database quite a bunch of a models where I do have quite large fields and I'm using .only('pk', 'identifier') to fetch only those two fields - mainly to make serverside natural sort for a data. Database is legacy one and it's being used with other external programs as well

Change value automatically of a widget in the Admin Interface

2012-05-14 Thread Marco Olimpi
Hi everyone, I have this problem: this is my models.py ... class Model1(models.Model): description = models.CharField(max_length=150) class Model2(models.Model): name = models.CharField(max_length=150) model1 = models.ForeignKey(Model1) class Model3(models.Model): model1 =

Re: Best Practices: How to best implement Rating-Stars in Django Templates

2012-05-14 Thread DragonFly
thanks, i will see it -- 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...@googlegroups.com. For more

Re: form resubmit on refresh problem

2012-05-14 Thread Daniel Roseman
On Monday, 14 May 2012 02:39:53 UTC+1, jondykeman wrote: > > Hello, > > I have a form submission problem I can't seem to figure out a way around. > > Normally, once a form was submitted I would HttpResponseRedirect() to the > main page. > > However, there is something I can't seem to make work

Re: Best Practices: How to best implement Rating-Stars in Django Templates

2012-05-14 Thread Kai Diefenbach
On 2009-10-31 14:40:05 +, David said: I would like to have reusable ratings (typical layout with 5 stars). FWIW, https://github.com/diefenbach/django-reviews Kai -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Best Practices: How to best implement Rating-Stars in Django Templates

2012-05-14 Thread Trần Quang Thắng
hi Ethan, can you reup [5] http://pastebin.ca/1650596 [6] http://pastebin.ca/1650609 [7] http://pastebin.ca/1650616 , thanks you :) -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web

Re: Best Practices: How to best implement Rating-Stars in Django Templates

2012-05-14 Thread Trần Quang Thắng
Hi Ethan, can u reup your code demo rating star ? Thanks you :) -- You received this message 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/-/JcRqI9Ne9JcJ. To post to this group, send

database routers from html code

2012-05-14 Thread Antonimus
Hi, I'm new to django and web framework. What I'm trying to do is to select what database to connect from html template select. In the login form, besides user and password, it's a select field with database alias to connect: {% for db in db %} {{ db.DbCode }} | {{

postgresql connection is not closed

2012-05-14 Thread shariq
Hi, I am running django-1.2 with postgresql. I am facing the problem. Django is not closing the connection and the connection is retained by db-server until DBA goes and kill the connection manually. -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Apache and wsgi => Where to put my djangoproject files? Please Help!

2012-05-14 Thread doniyor
by the way, i am just on terminal, accessing the remote server via PuTTy. so i should push the whole project to some repository and pull it into a project folder on server from repository, right? Am Montag, 14. Mai 2012 09:51:23 UTC+2 schrieb doniyor: > > hi there, i need your help again, >

Re: Apache and wsgi => Where to put my djangoproject files? Please Help!

2012-05-14 Thread doniyor
so the docroot should remain as it was, right? what is actually docroot? is it the folder which the www needs to open the webpage? Am Montag, 14. Mai 2012 09:51:23 UTC+2 schrieb doniyor: > > hi there, i need your help again, > > i configured my httpd.conf file, i told him where is my

Re: Apache and wsgi => Where to put my djangoproject files? Please Help!

2012-05-14 Thread kenneth gonsalves
On Mon, 2012-05-14 at 00:51 -0700, doniyor wrote: > i configured my httpd.conf file, i told him where is my django.wsgi > file. > the directory is this: /usr/local/django/mysite/myproject. What i > dont > understand is: during configuration, do i have to 'startproject'? or > will i > just

Apache and wsgi => Where to put my djangoproject files? Please Help!

2012-05-14 Thread doniyor
hi there, i need your help again, i configured my httpd.conf file, i told him where is my django.wsgi file. the directory is this: /usr/local/django/mysite/myproject. What i dont understand is: during configuration, do i have to 'startproject'? or will i just copy my djangoproject in this

Re: Creating an user/password management app

2012-05-14 Thread Peter Steinmetz
Am Sonntag, 13. Mai 2012 23:17:15 UTC schrieb Russell Keith-Magee: > However, the big catch -- Django's concept of a "User" isn't > especially easy to customise. This means that won't be trivial > (possible, but not trivial, and certainly not documented) to use your > legacy table as a