Actually problem exists in your model. Unless this is legacy database
that you can't do anything about.
Major performance killer is done by defining all your foreign key fields
to be _strings_. Yes. "field_to" in model.ForeignKey() means that this
field uses "field_to" in related model as a ke
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 using django-registration
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 "", l
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 modify registration
> an
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 wrote:
>
>> Hey everyone,
>> I ha
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
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 what I've come up with s
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 has
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:
django-docs-1.4-en/ref/models/querysets.html#django.db.models.query.QueryS
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 = ('client'
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 timeo
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 deals_
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 project with python 2.7.2
> a
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")
fro
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 f
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 obr
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 on my Windows 7
> machi
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 interest
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 tut
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 (https://www.django-cms.org/)
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 "/usr/lib/python2.6/site-packages/django/db/
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 "ab
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 shou
+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 ge
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 {% csrf_token %} from the form AND l
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
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
obj.save(force_insert=Tr
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 s
28 matches
Mail list logo