Re: Optimizing admin change view with inlines

2014-12-24 Thread 'Petros Moisiadis' via Django users
On 12/23/14 19:13, 'Petros Moisiadis' via Django users wrote: > Hello people :) > > I am struggling with optimizing an admin with inlines which causes too > many database requests. > > My model structure is like this: > > class ExampleA(models.Model): > ... > > class ExampleB(mo

Re: Optimizing admin change view with inlines

2014-12-24 Thread 'Petros Moisiadis' via Django users
On 12/24/14 13:30, 'Petros Moisiadis' via Django users wrote: > On 12/23/14 19:13, 'Petros Moisiadis' via Django users wrote: >> Hello people :) >> >> I am struggling with optimizing an admin with inlines which causes too >> many database requests. >> >> My model structure is like this: >> >> c

How to capture any incorrect typing of a url and pass it to a default page

2014-12-24 Thread pythonista
I want to code the urls.py such that if someone types in any garbage inn the browser the final line of the url router will grab the line and reroute it to some page(the home page) for example. I added the following line of code to the bottom of the url url(r'^([a-zA-Z0-9\-\_]*)', views.my_def

Re: django problem with mysql and apache

2014-12-24 Thread Sandeep kaur
On Wed, Dec 24, 2014 at 6:54 AM, wrote: > > 3 during the installation i have this probleme about mysql > > > > root@linux-pc:/home/siteweb# python3.4 manage.py migrate > Traceback (most recent call last): > File "/usr/local/lib/python3.4/dist-packages/django/db/backends/mysql/base.py", line 14,

Re: Two Django projects with common models and business logic

2014-12-24 Thread andy
Thank you. Since it's only me that'd be using the apps do can I bypass the 'deploy using pip' thing and somehow directly use it in my other projects? /andy On Wednesday, December 24, 2014 12:41:25 AM UTC+5:30, Javier Guerra wrote: > > On Tue, Dec 23, 2014 at 1:22 PM, andy > > wrote: > > Now, b

Re: How to capture any incorrect typing of a url and pass it to a default page

2014-12-24 Thread Vijay Khemlani
Try adding the *args and **kwargs parameters def my_default_2(request, *args, **kwargs): ... On Wed, Dec 24, 2014 at 1:15 PM, pythonista wrote: > I want to code the urls.py such that if someone types in any garbage inn > the browser the final line of the url router will grab the lin

Re: Two Django projects with common models and business logic

2014-12-24 Thread Javier Guerra Giraldez
On Wed, Dec 24, 2014 at 11:18 AM, andy wrote: > Thank you. Since it's only me that'd be using the apps do can I bypass the > 'deploy using pip' thing and somehow directly use it in my other projects? you could just set links or add to your `sys.path` list, but that makes it hard not to break one

Re: Two Django projects with common models and business logic

2014-12-24 Thread Vijay Khemlani
You can version it under a different repository, clone it in each server, and then add that path to the PYTHONPATH of each project, or just make a symbolic link to the app. On Wed, Dec 24, 2014 at 1:18 PM, andy wrote: > Thank you. Since it's only me that'd be using the apps do can I bypass the

How to configure django and MySql with python properly ??

2014-12-24 Thread Osman Goni Nahid
I'm beginner in django , can't configure properly django , mysqldb in python trying more time can't find where i make mistake . can anyone give me an video or link for me . thanks in advance :) -- You received this message because you are subscribed to the Google Groups "Django users" group.