Re: Using email instead of username for registration and login

2012-09-24 Thread Stephen Anto
Hi, For login with email or username in Django visit http://www.f2finterview.com/web/Django/18/ it will give you direction On Tue, Sep 25, 2012 at 7:27 AM, Bill Beal wrote: > Hi all, > > I want to use the email address as the username for registration and > login. I'm

Upgrade to Mountain Lion bootstrap and buildout don't work

2012-09-24 Thread Zeeshan Syed
Hi there, I recently upgraded to Mountain Lion on my Mac, and now bootstrap and buildout don't work. I keep on getting this error message anytime I run python boostrap.py: Traceback (most recent call last): File "bootstrap.py", line 172, in ez['use_setuptools'](**setup_args) File "",

Re: Using email instead of username for registration and login

2012-09-24 Thread Russell Keith-Magee
On Tue, Sep 25, 2012 at 9:57 AM, Bill Beal wrote: > Hi all, > > I want to use the email address as the username for registration and login. > I'm using django-registration for 2-stage registration. I'm looking for an > easier way than what I've come up with so far. I can

Re: Django on Bluehost

2012-09-24 Thread Babatunde Akinyanmi
If cloud, I like dotcloud On 9/24/12, Alec Taylor wrote: > You will probably crap-out with Bitbucket. Go to a cloud provider instead. > > For example, Red Hat OpenShift offers their IaaS platform for free (ATM > anyway). > > On Mon, Sep 24, 2012 at 2:21 PM, Zach

Re: A lots of foreign keys - Django Admin

2012-09-24 Thread rentgeeen
Thanks will look at that, what I found out is if I remove foreign keys fields from admin list display: list_display = ('client', 'category', 'subcategory', 'project', 'title', ) to list_display = ('title', ) its working super fast and all works. But I want to work it out with some FK keys

Re: Using email instead of username for registration and login

2012-09-24 Thread Kurtis Mullins
You could check out django-userena On Mon, Sep 24, 2012 at 9:57 PM, Bill Beal wrote: > Hi all, > > I want to use the email address as the username for registration and > login. I'm using django-registration for 2-stage registration. I'm > looking for an easier way than

Using email instead of username for registration and login

2012-09-24 Thread Bill Beal
Hi all, I want to use the email address as the username for registration and login. I'm using django-registration for 2-stage registration. I'm looking for an easier way than what I've come up with so far. I can modify registration and activation, but then django.contrib.auth.views.login

Re: A lots of foreign keys - Django Admin

2012-09-24 Thread Lachlan Musicman
I'm not an expert on this matter, but I did read about list_select related recently: /path/django-docs-1.4-en/ref/contrib/admin/index.html#django.contrib.admin.ModelAdmin.list_select_related which links to select related:

Re: A lots of foreign keys - Django Admin

2012-09-24 Thread rentgeeen
Also just found out when I remove Foreign Keys from admin.py from "list_display", it works blazing fast: class ClientAdmin(admin.ModelAdmin): list_display = ('title',) admin.site.register(Client, ClientAdmin) class CategoryAdmin(admin.ModelAdmin): list_display =

A lots of foreign keys - Django Admin

2012-09-24 Thread rentgeeen
Have a SQL problem, adding this model all works correctly, the problem is in ADMIN. When I add the data just few to each table, by clicking on TYPE & PAGE in ADMIN the page is loading so slow, installed debug_toolbar and SQL took 17 seconds for the TYPE. When I tried the PAGE it gave me

Ordering the forms within a formset? (How to override __iter__())

2012-09-24 Thread Houmie
deals_formset_factory = modelformset_factory(Deal, form=DealCForm, extra=1, can_delete=True, max_num=5) deals_formset = deals_formset_factory(queryset=query) Is there a way to say the one extra form shall always be the first form no matter how many more instance forms are within the

Re: Django on Bluehost

2012-09-24 Thread Alec Taylor
You will probably crap-out with Bitbucket. Go to a cloud provider instead. For example, Red Hat OpenShift offers their IaaS platform for free (ATM anyway). On Mon, Sep 24, 2012 at 2:21 PM, Zach wrote: > Hey everyone, > I have recently been setting up a Django 1.4.1

Re: Django on Bluehost

2012-09-24 Thread carlos
I configure many project in bluehost the ways i use is put the code in dir home for example /home/user/projects/mysite in /home/user/public_html/django.fcgi and .htaccesss and the content is: django.wsgi #!/home3/user/bin/python import sys, os sys.path.insert(0,"/home3/user/projects/mysite")

nested inline help

2012-09-24 Thread carlos
Hi, all which is the best way to create nested inline in the Django admin? i use the stable version 1.4.1 thx -- 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

uso do csrf

2012-09-24 Thread Carlos Andre
Olá pessoal, estou com um pequeno problema na implementação de meu projeto. Eu consegui usar no formulário o csrf isto só com o views e templates, mas quando adicionei o forms e usei o csrf não deu certo! implementei do mesmo modo que anterior mas sempre aparece o erro 403! se poderem me ajudar

Re: Getting Started

2012-09-24 Thread Jani Tiainen
It looks like you have older version of Django installed somewhere. You definitely should go for virtualenv it saves lot of troubles in the long run. On Mon, Sep 24, 2012 at 7:07 PM, Greg Lindstrom wrote: > Hello, > > I am having trouble getting started using Django 1.4.1

Re: [OT] I've created a Django application that allows you to view flickr galleries with minimalist design

2012-09-24 Thread Ezequiel
On Saturday, September 22, 2012 6:14:16 PM UTC-3, Mando wrote: > > hey Great job that's very good is there any chance you would be sharing > the code? > Thank you Mando! Yes, I'll put the code on github after some code cleanup. It's my firt python/django app and for now there is nothing

Getting Started

2012-09-24 Thread Greg Lindstrom
Hello, I am having trouble getting started using Django 1.4.1 on my Windows 7 machine. Everything appears to be installed (I'm running Python 2.7 and have been programming in Python for over 10 years; I figure it's time to see what all the fuss is over "the web" :-). Reading through the

Re: content management in django

2012-09-24 Thread Paul Backhouse
I'm not sure that I fully understand your question, but, for the static content, django flatpages (https://docs.djangoproject.com/en/dev/ref/contrib/flatpages/) may be what you are looking for. News editing would have to be handled by your news editing app! django-cms

Re: save() got an unexpected keyword argument 'force_insert'

2012-09-24 Thread Joel Goldstick
On Mon, Sep 24, 2012 at 12:51 AM, Laxmikant Gurnalkar wrote: > > Hi guys, > Anybody knows why I'm at this stage ? > Group.objects.using('db2').get_or_create(name='Maintenance Admin') > Traceback (most recent call last): > File "", line 1, in > File

Re: content management in django

2012-09-24 Thread Jonas Geiregat
I would advise you to take a look at feincms, it has exactly what you need. > Hello, > > I'm converting a static website to a Django application and I need a piece of > advice from more experienced people what is the right way to store content. > The website will have some static pages like

Re: Can I simply disable the CSRF? crazy

2012-09-24 Thread Nicolas Patry
If you are access to the form (meaning you are in the dom), and if you don't mind using jQuery, there is the even simpler: > $.post("/some/url", $("#someform").serialize(), function(data){ > // Do whatever with data > }) $("#someform").serialize() automatically adds the crsf_token which

Re: Can I simply disable the CSRF? crazy

2012-09-24 Thread jondykeman
+1 For doing it right from the beginning. I was tempted to disable when trying to deal with AJAX especially early on. Below is some code with jQuery so that you won't need to manually feed the token through your AJAX. jQuery(document).ajaxSend(function(event, xhr, settings) { function

Re: Can I simply disable the CSRF? crazy

2012-09-24 Thread Phang Mulianto
hi, better use csrf for your application security. it is easier to disable it, but security for your app what you will think after it running later. do it correctly now or later . Rgds, Mulianto On Mon, Sep 24, 2012 at 2:56 PM, yati sagade wrote: > Remove {%

content management in django

2012-09-24 Thread eclypcix
Hello, I'm converting a static website to a Django application and I need a piece of advice from more experienced people what is the right way to store content. The website will have some static pages like "about","contacts", etc. and a dynamic content like news and photo galleries that should

save() got an unexpected keyword argument 'force_insert'

2012-09-24 Thread Laxmikant Gurnalkar
Hi guys, Anybody knows why I'm at this stage ? Group.objects.using('db2').get_or_create(name='Maintenance Admin') Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.6/site-packages/django/db/models/query.py", line 383, in get_or_create

Django on Bluehost

2012-09-24 Thread Zach
Hey everyone, I have recently been setting up a Django 1.4.1 project with python 2.7.2 and MySQL. I am using fcgi to deploy my project in this environment because mod_wsgi is not available through bluehost. After much frustration I have gotten my site up to display the "it works" page. Now for

Re: Can I simply disable the CSRF? crazy

2012-09-24 Thread yati sagade
Remove {% csrf_token %} from the form AND leave the csrf_exempt decorator as it is in the view. Everyone faces challenges while learning a new thing. The key is to face it head on and not to move to somewhere you think there will be no challenges :) On Mon, Sep 24, 2012 at 1:14 AM, puneet loya