Re: Admin theme started reverting to default

2011-03-24 Thread Artem
All from project and from django source? Try to remove all the pyc files from python packages, clear cache if used, copy django into project folder, restart server. If you really didn't change anything in sources it must be cache problem at some level On 25 мар, 06:28, gondor wrote: > I went thro

Re: Admin theme started reverting to default

2011-03-24 Thread gondor
I went through and deleted all the pyc files and still seeing default admin. On Mar 24, 10:11 am, Artem wrote: > I had something similar with several test projects running on my > machine. > The problem was - auto-generated .pyc files in django sources.. one > project user precompiled\precached f

Re: Django & Two Factor Authentication (2FA)

2011-03-24 Thread pokecho
Hi Łukasz, Thanks for the great advice and for pointing me to these resources. I truly appreciate it. Patrick. On Mar 24, 4:03 pm, Łukasz Rekucki wrote: > On 24 March 2011 14:50, pokecho wrote: > > > Hi Sam, > > > So how do I configure contrib.auth to authenticate against three input > > value

Re: contenttypes installed but not ???

2011-03-24 Thread Jon Walsh
The error is caused by importing an additional settings module (into settings.py). I can't figure out why though... since they are mostly just variables with string values... -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Looking for django interns

2011-03-24 Thread Ferrum26
Hey Group, My groups site: www.couchconnect.com recently went public. I'm a django newb myself and still learning. I'm looking for django enthusiasts who would be interested in working on a publicly launched social networking site done completely with django. We can offer intern credit, or other

Re: Turning off USE_L10N more than doubled my site performance!

2011-03-24 Thread Karen Tracey
On Thu, Mar 24, 2011 at 10:46 AM, Carsten Fuchs wrote: > I'd be very happy to learn what you make of this data (afaics, the problem > could perfectly well be in my app code, not in Django). First, do you really mean USE_I18N everywhere where you have USE_L10N? The top cumtime item: ncalls

Re: Templates are parsed on every request?

2011-03-24 Thread Karen Tracey
On Thu, Mar 24, 2011 at 5:09 PM, Fett wrote: > I just had to implement some custom template tags, and figured out > that template files are parsed each time a request is received (more > precisely, I noticed this behavior while in debug mode, but didn't > expect to have it with debug = False). >

Templates are parsed on every request?

2011-03-24 Thread Fett
Hi, I just had to implement some custom template tags, and figured out that template files are parsed each time a request is received (more precisely, I noticed this behavior while in debug mode, but didn't expect to have it with debug = False). I may have missed something, but I thought the only

Re: Group by date: Annotate & Aggregate Query

2011-03-24 Thread Casey Greene
Aggregation for dates is a feature that has a trac ticket: http://code.djangoproject.com/ticket/10302 One option would be to implement this (it's also listed for google SoC 2011 so maybe someone else will do it http://code.djangoproject.com/wiki/SummerOfCode2011#Improveannotationandaggregation

Re: No id after save() in 1.3?

2011-03-24 Thread akaariai
On Mar 24, 10:35 pm, EAMiller wrote: > er-ca=# alter SEQUENCE er_utility_id_seq OWNED BY er_utility, id; > ERROR:  syntax error at or near "," > LINE 1: alter SEQUENCE er_utility_id_seq OWNED BY er_utility, id; Sorry, my bad. er_utility, id should have been er_utility.id                      

Re: No id after save() in 1.3?

2011-03-24 Thread EAMiller
On Mar 24, 1:35 pm, EAMiller wrote: > > er-ca=# alter SEQUENCE er_utility_id_seq OWNED BY er_utility, id; > ERROR:  syntax error at or near "," > LINE 1: alter SEQUENCE er_utility_id_seq OWNED BY er_utility, id; > wait, it's er_utility.id ... and that does work! thanks! although it's not clea

Re: Failed to build documentation (solved)

2011-03-24 Thread Łukasz Rekucki
On 24 March 2011 20:15, Lic. José M. Rodriguez Bacallao wrote: > so, no one? > > On Thu, Mar 24, 2011 at 11:42 AM, Lic. José M. Rodriguez Bacallao > wrote: >> hey, I am using ubuntu 10.10, do I really need to update Sphinx to >> build documentation? >> Yes, you do. -- Łukasz Rekucki -- You r

Re: No id after save() in 1.3?

2011-03-24 Thread EAMiller
On Mar 24, 1:23 pm, akaariai wrote: > > Now, to fix this, first find out which sequence is used by > er_utility's id column (\d er_utility will help here). Then issue: > > ALTER SEQUENCE seq_name OWNED BY er_utility, id; > > Now everything should work as expected. I get er-ca=# alter SEQUENCE

Re: how to select tables in inspectdb?

2011-03-24 Thread Jacob Kaplan-Moss
On Thu, Mar 24, 2011 at 3:07 PM, Savio Sabino wrote: > How I select what tables (in a db with 900 tables) has the model > generated for inpectdb? Sorry, but you can't: you'll need to run inspectdb and then edit the generated code by hand to edit out the models you don't want. Jacob -- You rece

Re: No id after save() in 1.3?

2011-03-24 Thread akaariai
On Mar 24, 10:00 pm, EAMiller wrote: > er-ca=# select pg_get_serial_sequence('er_utility', 'id'); >  pg_get_serial_sequence > > > (1 row) Ok, I think I know what is going on in here. For some reason (most likely this is a hand made schema) the sequence which is used as th

Re: decorators and generic views

2011-03-24 Thread Łukasz Rekucki
On 24 March 2011 15:32, Ian Stokes-Rees wrote: > I think with the move to class-based Generic Views it is necessary to update > this documentation: > > Limiting access to generic views > > To limit access to a generic view, write a thin wrapper around the view, and > point your URLconf to your wra

Re: No id after save() in 1.3?

2011-03-24 Thread EAMiller
On Mar 24, 1:00 pm, EAMiller wrote: > On Mar 24, 12:33 pm, akaariai wrote: > > What does select pg_get_serial_sequence('er_utility', 'id') return? > > er-ca=# select pg_get_serial_sequence('er_utility', 'id'); >  pg_get_serial_sequence > > > (1 row) However, our id co

how to select tables in inspectdb?

2011-03-24 Thread Savio Sabino
Hi. How I select what tables (in a db with 900 tables) has the model generated for inpectdb? -- 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

Re: Django & Two Factor Authentication (2FA)

2011-03-24 Thread Łukasz Rekucki
On 24 March 2011 14:50, pokecho wrote: > Hi Sam, > > > So how do I configure contrib.auth to authenticate against three input > values "username"(static), password(static/encrypted) and PIN/ > token(dynamic/encrypted)? That is the question. As Sam already said, you need to write a custom authenti

Re: No id after save() in 1.3?

2011-03-24 Thread EAMiller
On Mar 24, 12:33 pm, akaariai wrote: > On Mar 24, 9:07 pm, EAMiller wrote: > > > er-ca=# select * from er_utility where id > 6; > >  id | modified_by_id | created_by_id |          modified_on > > |          created_on           | name  | abbr | contact_id > > ++-

Re: Repetition in urls.py

2011-03-24 Thread Ryan Osborn
Thanks guys, works great On Mar 24, 7:54 pm, akaariai wrote: > On Mar 24, 9:40 pm, Ryan Osborn wrote: > > > > > > > > > > > Hi, > > > I am using django 1.3 and have the following in my urls.py for a > > blogging application: > > > urlpatterns = patterns('', > >     url(r'$', > > ArchiveIndexView

Re: Repetition in urls.py

2011-03-24 Thread akaariai
On Mar 24, 9:40 pm, Ryan Osborn wrote: > Hi, > > I am using django 1.3 and have the following in my urls.py for a > blogging application: > > urlpatterns = patterns('', >     url(r'$', > ArchiveIndexView.as_view(model=Entry,date_field='created',paginate_by=10), > name='blog_archive_index'), >  

Re: Check all foreign keys before delete.

2011-03-24 Thread pbzRPA
Great thanks, will definitely have a look. -- 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.c

Re: Repetition in urls.py

2011-03-24 Thread Ian Clelland
On Thu, Mar 24, 2011 at 12:40 PM, Ryan Osborn wrote: > I was just wondering if there was a simple way to condense this as > with django 1.2 I could add all this in to a dictionary like: > > info_dict = {'model': Entry, 'date_field': 'created', 'paginate_by': > 10} Can you not set your info_dict

Repetition in urls.py

2011-03-24 Thread Ryan Osborn
Hi, I am using django 1.3 and have the following in my urls.py for a blogging application: urlpatterns = patterns('', url(r'$', ArchiveIndexView.as_view(model=Entry,date_field='created',paginate_by=10), name='blog_archive_index'), url(r'today/$', TodayArchiveView.as_view(model=Entry,date_

Re: No id after save() in 1.3?

2011-03-24 Thread akaariai
On Mar 24, 9:07 pm, EAMiller wrote: > er-ca=# select * from er_utility where id > 6; >  id | modified_by_id | created_by_id |          modified_on > |          created_on           | name  | abbr | contact_id > ++---+--- > +--

Re: Generic Foreign Keys in fixtures

2011-03-24 Thread Shawn Milochik
On Thu, Mar 24, 2011 at 3:29 PM, Simone Dalla wrote: >> Natural keys were introduced in 1.2. How would you do this in 1.1? > > 1.2 > -- You mean 1.3, right? ;o) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Generic Foreign Keys in fixtures

2011-03-24 Thread Simone Dalla
2011/3/24 Shawn Milochik > On Thu, Mar 24, 2011 at 2:29 PM, Simone Dalla wrote: > > > > maybe option --natural > > > http://docs.djangoproject.com/en/1.3/ref/django-admin/#dumpdata-appname-appname-appname-model > > > > > Natural keys were introduced in 1.2. How would you do this in 1.1? > 1.2

Re: No id after save() in 1.3?

2011-03-24 Thread Shawn Milochik
I can confirm that, for me, I get the ID back just fine when using Django 1.3. My django.get_version() just returns '1.3' (without the SVN commit ID). I tested this on a project I'm developing in Django 1.3, so I haven't tried these models with 1.1. Shawn -- You received this message because yo

Re: Failed to build documentation (solved)

2011-03-24 Thread Lic . José M . Rodriguez Bacallao
so, no one? On Thu, Mar 24, 2011 at 11:42 AM, Lic. José M. Rodriguez Bacallao wrote: > hey, I am using ubuntu 10.10, do I really need to update Sphinx to > build documentation? > > On Thu, Mar 10, 2011 at 3:51 AM, Thomas Guettler wrote: >> Hi, >> >> the problem is solved, this is just for other

Re: Check all foreign keys before delete.

2011-03-24 Thread Shawn Milochik
You're welcome. I recommend (to any Django user) that you check out Marty Alchin's "Pro Django." Don't hesitate for a second because it was written in the ancient times of Django 1.1 -- for Django to be changed enough that this book becomes irrelevant it would take many years and drastic changes

No id after save() in 1.3?

2011-03-24 Thread EAMiller
Trying to migrate from 1.1 to 1.3. My app is broken at the moment because I'm not getting id's out of saved objects. I'm using Postgresql/psycopg2. I'm able to demonstrate in an ipython shell: In [1]: import django In [2]: django.get_version() Out[2]: u'1.1.4 SVN-15632' In [3]: u = User.objects

Re: Check all foreign keys before delete.

2011-03-24 Thread pbzRPA
Hit the nail on the head :) Thank you very much for the quick response. Problem 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 from this group, send emai

Re: Check all foreign keys before delete.

2011-03-24 Thread Shawn Milochik
Once you have your 'stage' instance, try this: stage._meta.get_all_related_objects() You can get related models dynamically and check to see if there are actually related instances for each of them. Play with _meta in the shell and you'll find interesting and useful things. Despite the underscor

Check all foreign keys before delete.

2011-03-24 Thread pbzRPA
Hi, I am constantly running in a brick wall when it comes to deleting records in Django. If you have one or two foreign keys it is easy to check if they are in use, but once an application starts getting big you can not remember which models are making use of a foreign key and if a specific foreig

Re: Generic Foreign Keys in fixtures

2011-03-24 Thread Shawn Milochik
On Thu, Mar 24, 2011 at 2:29 PM, Simone Dalla wrote: > > maybe option --natural > http://docs.djangoproject.com/en/1.3/ref/django-admin/#dumpdata-appname-appname-appname-model > Natural keys were introduced in 1.2. How would you do this in 1.1? Or maybe there's a cleaner answer when the problem

Re: Generic Foreign Keys in fixtures

2011-03-24 Thread Simone Dalla
2011/3/24 LurkingFrog > Currently, I am writing unit tests for an application that uses > generic foreign keys. Since the contenttypes are regenerated every > test, I was wondering the most effective way to reconcile the existing > test data with the new contenttypes PKs. > > My current thinking

Group by date: Annotate & Aggregate Query

2011-03-24 Thread James Taylor
Hi, We're trying to do some reports of various things, and one of the common issues we have is to do statistics on a per day or per-month basis - A google search for various terms finds quite a few stackoverflow people trying to do the same thing and not a lot of people are getting any s

Generic Foreign Keys in fixtures

2011-03-24 Thread LurkingFrog
Currently, I am writing unit tests for an application that uses generic foreign keys. Since the contenttypes are regenerated every test, I was wondering the most effective way to reconcile the existing test data with the new contenttypes PKs. My current thinking is to make an explicit fixture the

Re: Override table name(s) in application deployment

2011-03-24 Thread Jacob Kaplan-Moss
On Thu, Mar 24, 2011 at 12:30 PM, Flo Ledermann wrote: > I was quite surprised that I couldn't find a way to override table > names for an application's models on a per-deployment basis (i.e. in > settings.py or some other project/site specific file instead of > modifying the models.py file of the

Re: High-level template and template tag organization

2011-03-24 Thread Artem
something like? {% if request.user.is_staff %} {% include 'smth.html' %} {% else %} {% include 'smth2.html' %} {% endif %} On 24 мар, 00:23, Mazery Smith wrote: > Hello, > I have a results.html page and mylibrary.html page on my site that > both display search information in a results box (bro

Override table name(s) in application deployment

2011-03-24 Thread Flo Ledermann
Hi all, I was quite surprised that I couldn't find a way to override table names for an application's models on a per-deployment basis (i.e. in settings.py or some other project/site specific file instead of modifying the models.py file of the app itself) Although I admit all of these are rare, I

Re: Admin theme started reverting to default

2011-03-24 Thread Artem
I had something similar with several test projects running on my machine. The problem was - auto-generated .pyc files in django sources.. one project user precompiled\precached files from another.. I guess I mistakenly ran dev-servers with root account, so python could put .pyc files into that fold

Re: Rewriting Java UI for Django?

2011-03-24 Thread David Kovar
Patrick, Thank you for the insight. Thankfully, I'm trying to port rather than wrap so while I've got a learning curve ahead of me, it isn't a horrible one. -David On Mar 24, 2011, at 11:40 AM, Patrick McDonnell wrote: > David - I'm not sure I follow exactly what you're asking. > > If you're

contenttypes installed but not ???

2011-03-24 Thread Jon Walsh
If anyone could make sense of the below traceback, I'd greatly appreciate it! Noting that contenttypes is installed (as seen below) but Django says it isn't (as seen below). thanks in advance! Jon === Environment: Request Method: GET Request URL: http://127.

Re: Rewriting Java UI for Django?

2011-03-24 Thread Patrick McDonnell
David - I'm not sure I follow exactly what you're asking. If you're trying to basically port a Java/Swing application to Django: Django is a web application framework. Python with the Django libraries are used on the back end, and HTML is used on the front end (technically it is possible to use s

Re: How to install psycopg2 using Pip?

2011-03-24 Thread Shawn Milochik
On Thu, Mar 24, 2011 at 12:03 PM, Andre Lopes wrote: > I have solved. > > I just edited "setup.cfg" on the psycopg2 and added: > > pg_config=C:\Program Files\PostgreSQL\8.4\bin\pg_config.exe Yeah, that's the easiest method, but you specifically wanted to know how to install it with pip. That way

Re: High availability deployments

2011-03-24 Thread Cal Leeming [Simplicity Media Ltd]
You need to handle this within your code logic. The problem is, when a 500 Error is given back, you don't know what actually happened on the server side. For all you know, it could have been half way through its task. You need to add logic within the client side and server side code, to handle an

Re: How to install psycopg2 using Pip?

2011-03-24 Thread Andre Lopes
I have solved. I just edited "setup.cfg" on the psycopg2 and added: pg_config=C:\Program Files\PostgreSQL\8.4\bin\pg_config.exe Thanks for the help. Best Regards, On Mar 24, 3:49 pm, Shawn Milochik wrote: > This actually has nothing to do with Python -- I'm talking about your > PATH, not yo

Re: How to install psycopg2 using Pip?

2011-03-24 Thread Andre Lopes
Thanks for the reply. How can I do that? I'm new to Python, I'm not aware of what is Python path. Best Regards, On Mar 24, 3:10 pm, Shawn Milochik wrote: > Ensure that pg_config is on your PATH and it should work. -- You received this message because you are subscribed to the Google Groups

Re: How to install psycopg2 using Pip?

2011-03-24 Thread Shawn Milochik
This actually has nothing to do with Python -- I'm talking about your PATH, not your PYTHONPATH. Short version: Type 'which pg_config' at the command line. If it is found, then it's on your PATH. Otherwise, it's not, which appears to be the case. If you want to just do a temporary fix, you can fo

Re: Custom admin interface

2011-03-24 Thread Jacob Kaplan-Moss
Hi Tsolmon -- You can find documentation on Django's admin interface at http://docs.djangoproject.com/en/1.3/ref/contrib/admin/. It should tell you enough to get started. Jacob -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Re: How to install psycopg2 using Pip?

2011-03-24 Thread Jacob Kaplan-Moss
Hi Andre -- This indicates that you don't have the development packages for PostgreSQL. psycopg2 is written mostly in C, and needs to be compiled and linked against PostgreSQL. It does this by running a command called pg_config, which is part of the PostgreSQL dev package. You haven't indicated w

Re: Failed to build documentation (solved)

2011-03-24 Thread Lic . José M . Rodriguez Bacallao
hey, I am using ubuntu 10.10, do I really need to update Sphinx to build documentation? On Thu, Mar 10, 2011 at 3:51 AM, Thomas Guettler wrote: > Hi, > > the problem is solved, this is just for other people who have the same error. > > When you try to build the documentation and get the following

Re: ANN: Django 1.3 released

2011-03-24 Thread Aryeh Leib Taurog
On Mar 23, 8:15 am, James Bennett wrote: > Django 1.3 has been officially released. I have created a windows compiled html "help" file of the django 1.3 documentation. It is available at http://www.aryehleib.com/CHM.html I've also made available there chm files for earlier django releases and fo

Re: How to install psycopg2 using Pip?

2011-03-24 Thread Shawn Milochik
Ensure that pg_config is on your PATH and it should work. -- 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: Auto refresh of page for one user on other user's update

2011-03-24 Thread Marwan Al-Sabbagh
I'm working on an application that has a similar requirement. If you can wait for a few weeks, I'll probably have it ready and released sometime next month. I'll be releasing it as an open source project specifically to work with django. If it's something you're interested in shoot me an email and

Rewriting Java UI for Django?

2011-03-24 Thread David Kovar
Greetings, I'm fairly experienced with Python for backend, non UI/UX tasks but am very new to trying to do any UI work other than command lines. This'll come off as a very newbie question, and it is. I need to take an existing Java/Swing UI and wrap it inside of Django to provide authenticatio

How to install psycopg2 using Pip?

2011-03-24 Thread Andre Lopes
Hi, This question is not directly related with Django, but with Python. I have installed "virtualenv" to have a virtual environment. Now I need to instal "psycopg2" in my virtual environment, but I have not successfully installed. My steps: [quote] pip install http://pypi.python.org/package

Re: Auto refresh of page for one user on other user's update

2011-03-24 Thread Shawn Milochik
In addition there's hookbox.org. There was a great talk on it at PyCon. http://pycon.blip.tv/file/4883145/ In addition, I'm in the process of playing with Hookbox, after which I'll write a blog post detailing how to use it with Django. In the meantime, this is the tutorial I've found most helpfu

Re: Turning off USE_L10N more than doubled my site performance!

2011-03-24 Thread Carsten Fuchs
Dear Russell, thank you very much for your reply! Am 24.03.2011 01:04, schrieb Russell Keith-Magee: Can you share your profiling data? Sure, gladly: with USE_L10N = True, ordered by internal time: http://pastebin.com/fkyF5nLw with USE_L10N = True, ordered by cumulated time, with callees: ht

decorators and generic views

2011-03-24 Thread Ian Stokes-Rees
I think with the move to class-based Generic Views it is necessary to update this documentation: Limiting access to generic views To limit access to a *generic view*, write a thin wrapper around the view, and point your URLconf to your

Re: High availability deployments

2011-03-24 Thread Kristaps Kūlis
Hello, First of all, problem is not with lighttpd, but with flup On Mar 24, 8:29 am, Shamail Tayyab wrote: > Hi, > >    We have a setup in which we can't afford downtime (even while > deployment). > > Our setup is based on lighttpd + django (on fcgi via flup). What my > problem is, when we resta

Re: High availability deployments

2011-03-24 Thread Kristaps Kūlis
See this blog post: http://rambleon.usebox.net/post/3279121000/how-to-gracefully-restart-django-running-fastcgi TL;DR : just send SIGHUP to flup process (pidfile option to fastcgi), like this: kill -SIGHUP `cat /path/to/flup.pid` I suggest using Gunicorn, as it handles graceful reloads better

Re: Is there any Open Source Django Newspaper CMS?

2011-03-24 Thread NickH
On Mar 23, 9:09 am, Kenneth Gonsalves wrote: > On Wed, 2011-03-23 at 03:57 -0700, Rehmetjan wrote: > > Hello all, I am new to django. > > I am heard about Django is comes from a Newspaper group, but never > > found a > > Newspaper CMS. (Not meant Django-CMS) > > PHP has many Newspaper CMS like J

Re: Should I use Python 2.6 with Django 1.3?

2011-03-24 Thread NickH
On Mar 24, 6:50 am, Andre Lopes wrote: > Hi, > > I'm new to Django. In my system I have Python 2.6 and Python 2.7 > installed, but due to some inconsistencies in Python Path I will > uninstall the Python versions and install again. > > What I need to know is if Python 2.6 will work without probl

Re: Custom admin action problem

2011-03-24 Thread Jônatas Vieira
Nobody? On 23 mar, 19:20, Jônatas Vieira wrote: > Hi there. > > I'm having a weird issue with a custom admin action. It works pretty > fine locally, but on the live server what happens is: > > * it renders to the template - OK > * after submit, the function is executed (the changes and everythin

Re: Django & Two Factor Authentication (2FA)

2011-03-24 Thread pokecho
Hi Sam, Thanks for the note. All the 2FA systems I have used have single field for both the password and the token. >Is a separate passcode field really necessary? However, from a usability standpoint I believe decoupling the two would make it easier for the user to recognize that the token/PIN

Re: Django multiple databases router

2011-03-24 Thread Ramiro Morales
2011/3/24 dy : > > I want to know if I continue to use it like this what problems will > happen.If you or someone else have this experience,can you tell me? Being an unsupported setup, I'd say you are in unexplored territory here so you will need to find the potential shortcomings by yourself. On

Re: Django 1.3 URL resolvers is not working

2011-03-24 Thread Navaneethan
I am using django version 1.2.5 Here could you please point this glitch NavaTux gmail.com> writes: > > Here just i am authenticating a user in django and logout him > > authentication view is working fine and i wriiten a log out view which > is here > > def view_logout(request): > from django.co

Re: form.is_valid() changes a ModelForm's associated instance now?

2011-03-24 Thread Vermus
>     item = Item.objects.get(id=1) >     print 'item.value: %s' % item.value >     form = ItemModelForm(request.POST, instance=item) >     # NOTE: This fixes the problem: >     old_item = copy.deepcopy(item) >     if form.is_valid(): >         print 'old_item.value: %s' % old_item.value >        

Re: Should I use Python 2.6 with Django 1.3?

2011-03-24 Thread Russell Keith-Magee
On Thu, Mar 24, 2011 at 6:50 PM, Andre Lopes wrote: > Hi, > > I'm new to Django. In my system I have Python 2.6 and Python 2.7 > installed, but due to some inconsistencies in Python Path I will > uninstall the Python versions and install again. > > What I need to know is if Python 2.6 will work wi

Should I use Python 2.6 with Django 1.3?

2011-03-24 Thread Andre Lopes
Hi, I'm new to Django. In my system I have Python 2.6 and Python 2.7 installed, but due to some inconsistencies in Python Path I will uninstall the Python versions and install again. What I need to know is if Python 2.6 will work without problems with Django 1.3 Best Regards, -- You received t

Re: Auto refresh of page for one user on other user's update

2011-03-24 Thread Eugene MechanisM
look at http://ape-project.org -- 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: Django & Two Factor Authentication (2FA)

2011-03-24 Thread Sam Lai
On 24 March 2011 07:52, pokecho wrote: > I am writing to ask whether it is possible to configure > "django.contrib.auth"  so that it can implement Two Factor > Authentication to step up login security. > > The idea is that instead authenticating against just "username" and > "password" one could a

Re: About using Django Auth with my app, Auto saving the User

2011-03-24 Thread Amanjeev Sethi
Thanks a lot. -- 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 options, visit t

Re: Django multiple databases router

2011-03-24 Thread dy
On 3月24日, 下午3时53分, Russell Keith-Magee wrote: > On Thu, Mar 24, 2011 at 3:15 PM, dy wrote: > > Hi Jacob: > > >Yes, you understand right!Thank you for your reply. > > > As you said,is this a bug of django1.2.3? Or this feature can be used > > in django-1.2.3, but at a higher version is disable

Admin theme started reverting to default

2011-03-24 Thread gondor
I don't know if anyone has has this problem. I have been using the test django server and it has always rendered my customized admin panel correctly. One day out of the blue the admin panel just started using the default. I don't think I made any changes. I understand this is kind of vague but

Re: Is there any Open Source Django Newspaper CMS?

2011-03-24 Thread km
try https://www.django-cms.org/ KM On 3/24/11, Rehmetjan Tursun wrote: > Thanks Shacker, this is really helped me. this is really what I want to. > Ellington is Commercial, not for free. Armstrong CMS is good and open > source. > but it says it will released at June 2011. and I will wait :) > > >

Re: Django multiple databases router

2011-03-24 Thread Russell Keith-Magee
On Thu, Mar 24, 2011 at 3:15 PM, dy wrote: > Hi Jacob: > >    Yes, you understand right!Thank you for your reply. > > As you said,is this a bug of django1.2.3? Or this feature can be used > in django-1.2.3, but at a higher version is disabled. > > Moreover, in the official documentation(on this pa

Re: Is there any Open Source Django Newspaper CMS?

2011-03-24 Thread Rehmetjan Tursun
Thanks Shacker, this is really helped me. this is really what I want to. Ellington is Commercial, not for free. Armstrong CMS is good and open source. but it says it will released at June 2011. and I will wait :) On Thu, Mar 24, 2011 at 12:32 AM, shacker wrote: > Django is used by a lot of news

Auto refresh of page for one user on other user's update

2011-03-24 Thread ydjango
Two users A & B are both viewing same page and data from two different locations via browser. User A start making changes to data on Page. For user B that piece of data gets locked (ie he cannot change it till user A is done). User A finishes making changes. User B's page auto refreshes to refle

Re: Implementing a ldap db backend

2011-03-24 Thread sebastien piquemal
After the initial post, following the advice of many people I didn't try to implement a backend for ldap... Instead I wrote my own o(r)m - it supports very basically the same functionalities as django-orm : foreignkeys, manytomany, inheritance, ...- it is somewhat integrated with Django (this only

Re: Django multiple databases router

2011-03-24 Thread dy
Hi Jacob: Yes, you understand right!Thank you for your reply. As you said,is this a bug of django1.2.3? Or this feature can be used in django-1.2.3, but at a higher version is disabled. Moreover, in the official documentation(on this page:http:// docs.djangoproject.com/en/1.3/topics/db/multi