Linux password authentication for django

2010-12-29 Thread Bill
Hi there, I want to know is there any authentication module base on Linux passwd/ shadow file for django? Many thanks, Bill -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To

Re: django and eclipse

2010-12-29 Thread girish shabadimath
to change port: django-admin.py runsserver On Thu, Dec 30, 2010 at 6:24 AM, Emmanuel Mayssat wrote: > For the sqlite.db file issue, I changed the settings.py with: > > import os > PROJECT_DIR = os.path.dirname(__file__) > ... > DATABASE_ENGINE = 'sqlite3' > DATABASE_NAME =

Re: database migration

2010-12-29 Thread Michael P. Soulier
On 29/12/10 Emmanuel Mayssat said: > I was looking at a possibility of using manage.py dumpscript and > manage.py runscript > from django-extensions. But it is not straight forward either. dumpdata/loaddata is quite simple, I recently used it myself. Torsten suggested that there's a problem

Re: database migration

2010-12-29 Thread Michael P. Soulier
On 29/12/10 Torsten Bronger said: > I don't recommend that. If the database exceeds a certain size (and > "certain" is MBs, not GBs), this simply fails. Is there a bug report for this issue? I find that very disappointing. Mike -- Michael P. Soulier "Any

New Django Job Board

2010-12-29 Thread Django Hire
Django Hire (http://www.djangohire.com) was launched today as an additional alternative to some of the fine options out there. Employers, help us out by adding your jobs. You can post free using code FREEPROMO. Developers can visit the website or follow us on twitter @djanghire for listings.

Re: django and eclipse

2010-12-29 Thread Emmanuel Mayssat
For the sqlite.db file issue, I changed the settings.py with: import os PROJECT_DIR = os.path.dirname(__file__) ... DATABASE_ENGINE = 'sqlite3' DATABASE_NAME = os.path.join(PROJECT_DIR, 'sqlite.db') that now works as expected. -- Emmanuel Mayssat On Wed, Dec 29, 2010 at 4:38 PM, Emmanuel

django and eclipse

2010-12-29 Thread Emmanuel Mayssat
I installed the pydev plugin in eclipse. I configured it. Imported my django project and it almost works. Is any one of you using django/eclipse? Well, all goes well until I start the django development server. 1/ how can I change the default port, it is running on ? 2/ My sqlite db files is

Question about custom form widgets and validation

2010-12-29 Thread Brandon Taylor
Hi everyone, I'm working on a custom form widget to input length values in feet, inches and a fraction of an inch. So far, everything is working as expected, except for validation. It takes a value input as: 1' 10 1/2" and converts it into inches: 22.5, for storage in a database. My widget

Using session list in a template.

2010-12-29 Thread jacekn
Hello, I've got following problem that i would ask you to solve: I want to do collapse/expand part of the web page (show details of the lectures_list elements/don't show them). I wanted to do this by creating a session object 'expand_items' that would keep information which details should be

how to view the uploaded files

2010-12-29 Thread rahul jain
How to view the uploaded files on admin ? Thanks. --RJ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: ModelForm validation

2010-12-29 Thread Ted
Easiest solution I can see is to create two form classes: StudentForm and NonStudentForm. On student form you can then edit form.instance or form.cleaned_data depending on what your needs are to add the additional fields before the object is created/updated. Another approach would be to try

to execute executable.py from view.py

2010-12-29 Thread gintare
I would like by using #in views.py def myfnc(): subprocess.Popen( '/polls/executable.py', executable='/usr/lib/ python') execute executable.py from views.py function. I am getting error that terminal is already taken. This is true - django manage.py runserver keeps django webpages ON.

Re: Subdomain/Accounts

2010-12-29 Thread Tim Sawyer
That's a cunning plan, nice one Andy! I'd use that if I did it again - a virtual host instance per subdomain uses lots of memory on a VPS... Tim. On 29/12/10 18:19, Andy Shaw wrote: Tim's solution would obviously work, but it sounds to me like you would need to manually configure a

Re: automatic addition of several ForeignKeys to model

2010-12-29 Thread gintare
Thanks. The thing which i wanted must be done in forms. It is not for models and database. I mean there must be function in views.py which checks if some item already exists in database and add information about this item (item.pk) to another synonim item. On 27 Gruo, 21:15, Emmanuel Mayssat

custom function for Admin, submit_line.html, views.py

2010-12-29 Thread gintare
1) Where is the *.py file and what is his name, in which there are written functions related to 'Save and add another', 'Save and continue editting' buttons of Admin site. I do not understnad to which file i have to add custom functions for admin. 2) How to add a button to Admin (i.e.

Re: merge 2 views?

2010-12-29 Thread Thom van Ledden
Thanks a lot for pointin me in the right direction! made a context_processor.py for my navigation, and added it to my settings.py from basic.blog.models import Category from common.models import fillNavigationFinishedProjects from common.models import fillNavigationUnfinishedProjects def

Re: Subdomain/Accounts

2010-12-29 Thread Andy Shaw
Tim's solution would obviously work, but it sounds to me like you would need to manually configure a subdomain (including a copy of settings.py) for each user. Widoyo's solution (or rather, Ross Poulton's linked solution) would also work but requires quite a lot of boilerplate code in your

Re: Subdomain/Accounts

2010-12-29 Thread Tim Sawyer
I did this with one settings.py per subdomain, using the sites framework. So each settings.py had a different SITE_ID. Here's how to limit admin to a given user's records: http://drumcoder.co.uk/blog/2010/oct/02/user-specific-data-admin/ This helps with droplists in admin:

Re: merge 2 views?

2010-12-29 Thread Michael
Look into context processors, that sounds like what you need. http://docs.djangoproject.com/en/dev/ref/templates/api/#subclassing-context-requestcontext -- Michael On Wed, 2010-12-29 at 08:51 -0800, Thom van Ledden wrote: > Hi django developers, > > Ive got a seperate

Re: Date Error in Admin Form

2010-12-29 Thread ckar...@googlemail.com
Thanks, but USE_I18N = True USE_L10N = True in settings.py resolved my problem :-) On 29 Dez., 18:03, Marcos Moyano wrote: > Take a look at the docs on how to set up valid input formats > > http://docs.djangoproject.com/en/dev/ref/settings/?from=olddocs#date-... > >

Re: Date Error in Admin Form

2010-12-29 Thread Marcos Moyano
Take a look at the docs on how to set up valid input formats http://docs.djangoproject.com/en/dev/ref/settings/?from=olddocs#date-format Rgds, Marcos On Wed, Dec 29, 2010 at 1:39 PM, ckar...@googlemail.com < ckar...@googlemail.com> wrote: > Hi everybody, > > I'm getting a strange error with a

merge 2 views?

2010-12-29 Thread Thom van Ledden
Hi django developers, Ive got a seperate navigation.html file which need to be rendered on each page, but the page need some vars for that. how can i get those vars to be defined just only once? my idea: the main_page should add the vars for the navigation, and the views of the content pages

Date Error in Admin Form

2010-12-29 Thread ckar...@googlemail.com
Hi everybody, I'm getting a strange error with a datefield in the django admin. My Settings: · TIME_ZONE = 'Europe/Berlin' · LANGUAGE_CODE = 'de-DE' · USE_I18N = True The according models.py entry: zeithorizont = models.DateField(blank=True, null=True) Screenshot (german):

Re: how can i define a decimal_separator and a thousand_separator

2010-12-29 Thread Sergio Berlotto Jr
Use the DECIMAL_SEPARATOR, THOUSAND_SEPARATOR and NUMBER_GROUPING settings. See: http://docs.djangoproject.com/en/1.2/ref/settings/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post

django project like ycombinator

2010-12-29 Thread xjdrew
hi, all I plan to develop a news aggregate websites (main in education field), where people can post and discuss news free. The style of hacker news is extremely similar with my plan. I try to find some similar django project, but I failed. Maybe you guys have some fantastic advice here. I'm

string format date in query

2010-12-29 Thread Nick
I am using a little raw SQL to pull out a count of events by month. I am able to retrieve the correct information but am getting the month value in numerical form rather than an actual name. So instead of January I get a 1. Here is query: dates = markers.extra(select={'month':

Re: ModelForm validation

2010-12-29 Thread Axel Bock
hi derek, thanks for your hints - was I really that unclear? hm. anyway, could you please give an example about how to "override/check the value for that field after the form POST"? I don't seem to be able to do that, and believe me, I have read the docs. I think cleaned_data is only available

Re: how can i define a decimal_separator and a thousand_separator

2010-12-29 Thread refreegrata
I still have the doubt.Does anyone know? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: ModelForm validation

2010-12-29 Thread derek
Axel Not sure I have followed all your requirements, but perhaps you can try: * set a default value for the required field * mask the required field on the form being shown to the user (make it hidden) * override/check the value for that field after the form POST and data "clean" (see:

Looking for a business directory app

2010-12-29 Thread uwtguy
I have a website that survived several platform changes, and it is now a number of independent platforms slapped together (Joomla, vBulletin board etc.). I want to gradually rebuild it into a single system using Django. Right now I am looking for a business directory Django application to replace

Re: Generate template files, lazy-loading

2010-12-29 Thread Guax3
I wasn't aware of the whole django's cache framework. Again, i'm a noob... Thank you very much for pointing me in the right direction, I'll try your recomendations :) On 28 dez, 03:41, Mayuresh Phadke wrote: > You could cache the output, some thing like: > > def

Re: Massive insertion of records

2010-12-29 Thread Derek
Thanks Craig - that explains it very clearly indeed ("textbook answer"!) On 27 December 2010 16:50, W. Craig Trader wrote: > Derek ... > > Quoting from http://docs.djangoproject.com/en/1.2/topics/db/transactions/: > >> Django’s default behavior is to run with an open

Using gunicorn for deployment, code reloading problem

2010-12-29 Thread Metin Amiroff
Hello everyone! I'm trying to use gunicorn for Django application deployment and running into issue with code reloading. It looks like using than 2 workers (on my dual core cpu/dev machine) modifications in app code get noticed, but in incredibly unstable way: I see different version of code on

Re: Splitting the models.py file

2010-12-29 Thread Łukasz Rekucki
On 29 December 2010 10:37, Emmanuel Mayssat wrote: > I attempted to split the model file into a 'module' (subdir with __init__.py). > But for some reason syncdb doesn't see my app anymore. Every python file is a "module". A directory with __init__ is a "package". Now you can

Splitting the models.py file

2010-12-29 Thread Emmanuel Mayssat
I attempted to split the model file into a 'module' (subdir with __init__.py). But for some reason syncdb doesn't see my app anymore. Did anyone of you manage to split the models.py file into several smaller ones? -- E -- You received this message because you are subscribed to the Google Groups

Re: database migration

2010-12-29 Thread Emmanuel Mayssat
Michael, that's encouraging ;-) I was looking at a possibility of using manage.py dumpscript and manage.py runscript from django-extensions. But it is not straight forward either. Wasn't django supposed to be database agnostic? Now, I understand what they really meant. Pick you database carefully