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
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
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
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,
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
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
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
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
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.
9 matches
Mail list logo