Re: Would old version of mysql caused performance issue in Django

2017-07-18 Thread Felipe Brunelli de Andrade
It seems like some thing in your app view.

Did you try to dump real database and run localy in your workstation?

2017-07-18 16:05 GMT-03:00 Kevin Yu :

>
> 
>
> I even noticed when i do runserver on my local to connect to the older
> version of mysql db, the starting of dev server is noticeably slower.
>
> What I mean is here:
> kevin@kevin-OptiPlex-7020:~/repo/Infosite_Django/app$ python manage.py
> runserver
> Performing system checks...
>
> System check identified no issues (0 silenced).
> July 18, 2017 - 19:00:12
> Django version 1.11.2, using settings 'infosite.settings'
> Starting development server at http://127.0.0.1:8000/
> Quit the server with CONTROL-C.
>
>
> On Tuesday, July 18, 2017 at 11:43:53 AM UTC-7, Felipe wrote:
>>
>> Try to debug in chrome just press F12 and go to network tab and see
>> the times fot load content
>>
>> 2017-07-18 15:18 GMT-03:00 Kevin Yu :
>>
>>> I've eliminated the possibility of mysql performance issue by directly
>>> running the query on the database. It's not network issue either since my
>>> ping is just fine.
>>>
>>>
>>> On Tuesday, July 18, 2017 at 11:00:58 AM UTC-7, Kevin Yu wrote:

 Hi All,

 I'm rewritting an web application using Django 1.11. When i hooked up
 to my test mysql database (version 5.7), the performance is amazing. The
 page renders within 1 second. However, when I connect to the existing
 production mysql (version 5.1), the page takes more than 10 seconds.

 I installed the debug toolbar, and I found out the the query time is
 actually not the issue. Most of the time are in the CPU.

 I am wondering whether the Django is having issues with older mysql
 version when Django receives the data and try to map it to objects via ORM.


 

 --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users...@googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/django-users/ac4201dd-5267-4566-8d0a-82b2b2f043c4%40googlegroups.com
>>> 
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/9efab471-ae94-4ff2-a62c-67650638c4e0%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEYpY_%2BZEvgOC9zovuE9hw2Mid68RN7Y%3DgDC2D0a7p46L5pY%2Bw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Would old version of mysql caused performance issue in Django

2017-07-18 Thread Felipe Brunelli de Andrade
Try to debug in chrome just press F12 and go to network tab and see the
times fot load content

2017-07-18 15:18 GMT-03:00 Kevin Yu :

> I've eliminated the possibility of mysql performance issue by directly
> running the query on the database. It's not network issue either since my
> ping is just fine.
>
>
> On Tuesday, July 18, 2017 at 11:00:58 AM UTC-7, Kevin Yu wrote:
>>
>> Hi All,
>>
>> I'm rewritting an web application using Django 1.11. When i hooked up to
>> my test mysql database (version 5.7), the performance is amazing. The page
>> renders within 1 second. However, when I connect to the existing production
>> mysql (version 5.1), the page takes more than 10 seconds.
>>
>> I installed the debug toolbar, and I found out the the query time is
>> actually not the issue. Most of the time are in the CPU.
>>
>> I am wondering whether the Django is having issues with older mysql
>> version when Django receives the data and try to map it to objects via ORM.
>>
>>
>> 
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/ac4201dd-5267-4566-8d0a-82b2b2f043c4%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEYpY_%2Bz6ix6HO%3DQ7ZVuyu2pyP5m5M1VduTPAfckTiVNx_ZgKw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Would old version of mysql caused performance issue in Django

2017-07-18 Thread Felipe Brunelli de Andrade
You need to see de CPU load in server.

In your test you probably are using a local machine with no loading... but
your produce server I dont know. You need to see in server the webserver
too, try to run django-admin runserver :8000 and see if you have the
same issue.

But if you are just connecting to another machine with database, and
application is in yur development enviroment, probably is your network.

2017-07-18 15:00 GMT-03:00 Kevin Yu :

> Hi All,
>
> I'm rewritting an web application using Django 1.11. When i hooked up to
> my test mysql database (version 5.7), the performance is amazing. The page
> renders within 1 second. However, when I connect to the existing production
> mysql (version 5.1), the page takes more than 10 seconds.
>
> I installed the debug toolbar, and I found out the the query time is
> actually not the issue. Most of the time are in the CPU.
>
> I am wondering whether the Django is having issues with older mysql
> version when Django receives the data and try to map it to objects via ORM.
>
>
> 
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/21e35905-047c-4d57-9f0c-6012d148597c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEYpY_JZKn9ZUJsPU8ixxkAZ51TdcaiSvjSFTPMZB_mQ%2Bgx79Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: OperationalError:no such table

2017-05-07 Thread Felipe Brunelli de Andrade
Just check if the table exists in database!

2017-05-07 7:54 GMT-03:00 hamza bouissi :

> after I add new model and delete all  other models and their migration
> files I ran makemigrations followed by migrate command, Unfortunately, I
> got OperationalError: no such table
>
>
>
> 
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/07639bc2-df9e-487e-9fdd-5cc2c98bc44d%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEYpY_LbXjd3Di_mWKu3pmwq1UgW38GVm1n6bFeS6QkxfSvSKw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to create a side menu with the urls of each step

2015-09-05 Thread Felipe Brunelli de Andrade
Man, you need to treat this form step by step as a single form controlled
by javascript. You will find several examples on google

---
   Felipe Brunelli de Andrade
  http://www.fandrade.com.br/
---
Cel: (16) 98121-5290
Skype: fbruandrade
---


2015-09-05 12:08 GMT-03:00 Leandro Severino <lean...@professionalit.com.br>:

> Hello,
>
>I have a formwizard (formtools)
> https://django-formtools.readthedocs.org/en/latest/index.html with 7
> steps.
>OK, my formwizard  is OK.
>
>But now, in this page, my customer wants a side menu with a link for
> each step, because he wants access the step 5 for example without click in
> the next, next, next, next button.
>
>Well,
>
>   I think that my problems are two:
>
>   1) How to print the urls for each step.
>   2) How to map this urls in my urls.conf
>
> Any help ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/b5b3b036-618c-430f-84dd-06090d7b4ace%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/b5b3b036-618c-430f-84dd-06090d7b4ace%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEYpY_%2BFf7gHWg9aoofB9O6F%3DpSuUPZba9J7%2BScq8kDzS7a5rw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Group subscription management

2013-11-30 Thread Felipe Brunelli de Andrade
Go to groups.google.com and manage your groups!

---
   Felipe Brunelli de Andrade
  http://www.fandrade.com.br/
---
Cel: (16) 98121-5290
Skype: fbruandrade
---



2013/11/30 Steve Sawyer <ssawye...@gmail.com>

> I am drowning in emails, and I can't seem to figure out how to
> un-subscribe from everything that gets posted to this group.
>
> I tried to subscribe just to a daily digest so I only get one email a day,
> but now I can't even find that setting to turn it off, as it appears to
> also turn on an echo of every individual post into my mailbox.
>
> Can anyone help me out here??
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/3ad39a03-806b-4bbd-bc0d-a3bdbd249d38%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEYpY_Jj%2BKXbapywQM92Mfnh21_aKikdcAA6GLBGZmg76NDfdQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How to add Django project to sys.path?

2013-04-19 Thread Felipe Brunelli de Andrade
You can try to use that! that's works for me!

import os

# Make filepaths relative to settings.
ROOT = os.path.dirname(os.path.abspath(__file__))
path = lambda *a: os.path.join(ROOT, *a)

STATIC_ROOT = path('static')

MEDIA_ROOT = path('media')

 ---
   Felipe Brunelli de Andrade
Universidade de São Paulo
Bacharelado em Informática - 08
http://www.fandrade.com.br/
---
Cel: (16) 8121-5290 / 9718-3939
Tel: (16) 3371-7274
Skype: fbruandrade
MSN: felipeandrade2...@hotmail.com
ICQ: 15909761
---



2013/4/19 Cody Scott <cody.j.b.sc...@gmail.com>

> I am trying to use apache to serve my development site locally.
>
> I am trying to implement download functionality and figured since it was
> best done through a web server that I would just serve the with apache from
> now on.
>
> Is this recommended to start using your django site with a web server
> early?
>
> Anyways I installed mod_wsgi and it seemed to work.
>
> I am just trying to use http://localhost
>
> but when I go there I get the error
>
> [Fri Apr 19 13:29:35 2013] [error] [client 127.0.0.1] ImportError: Could
> not import settings 'PLP.settings' (Is it on sys.path?): No module named
> PLP.settings
>
>
> I am linking to wsgi.py which contains.
>
> import os
>
> os.environ["DJANGO_SETTINGS_MODULE"] = "PLP.settings"
> os.environ.setdefault("DJANGO_SETTINGS_MODULE", "PLP.settings")
>
> from django.core.wsgi import get_wsgi_application
> application = get_wsgi_application()
>
> I tried:
>
> >>> import sys
> >>> sys,path.append(PATH_TO_DJANGO_PROJECT)
>
> but if I close the interpreter and open it again, it is not in sys.path
> anymore.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.