Re: Document storage and data mining

2016-07-15 Thread Javier Guerra Giraldez
On 15 July 2016 at 00:02, Gary Roach wrote: > While - with the exception of the metafile - these are static files, we are > talking about hundreds of documents. I do not think that storing them as > static files will work. They have to be searchable. I assume that I need a > model that will set up

Re: Jet Admin Backend Prob with Google Analytics

2016-07-15 Thread Michael Schintler
Thank U very much solved the prob by Troque: PROJECT_PATH = os.path.abspath(os.path.dirname(__file__)) PROJECT_DIR = os.path.abspath(os.path.dirname(__file__)) So it works now. But the widget for GoogleAnalytics still not. I will find and solve that ;) But thx U helped me a lot. Am Donne

Re: Django PostGis BUG?

2016-07-15 Thread Jani Tiainen
Hi, Could you verify what your database settings really are for example printing them out at the end of settings.py. (Or in any view import your settings to see that values really are what you expect.) On Wed, Jul 13, 2016 at 7:13 PM, wrote: > I'm trying to create my database tables (*python ma

deploy django with nginx

2016-07-15 Thread 1351552...@qq.com
hi everyone: I am tring to deploy my site by nginx and uwagi in my project yaohang,i have these files: #yaohang_uwsgi.ini [uwsgi] socket = :8001 chmod-socket= 664 master = true module = yaohang_uwsgi processes = 8 listen = 120 enable-threads = true daemonize = /home/wangwei/yaohang/yao

Django session issue with mod_wsgi + apache

2016-07-15 Thread Dipankar B
Hello, I am working on Django Aplication . It has almost 350 users right now. Problem. Suppose we have a username bob and james. So, bob logged in and using our Django web application. But Sometimes bob's session is showing james account information. So bob is able to see James private data a

Re: deploy django with nginx

2016-07-15 Thread Rafael E. Ferrero
I used this link without any trouble https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-uwsgi-and-nginx-on-ubuntu-14-04 Rafael E. Ferrero 2016-07-15 7:47 GMT-03:00 1351552...@qq.com <1351552...@qq.com>: > hi everyone: > > I am tring to deploy my site by nginx

Re: deploy django with nginx

2016-07-15 Thread Javier Guerra Giraldez
On 15 July 2016 at 11:47, 1351552...@qq.com <1351552...@qq.com> wrote: > and with the message in file /var/log/nginx/error.log : > connect() to unix:///home/wangwei/yaohang/yaohang.sock failed (13: > Permission denied check under what user is running nginx, and make sure that it has r/w permissio

Re: Django PostGis BUG?

2016-07-15 Thread Tim Graham
This query is also duplicated on Trac: https://code.djangoproject.com/ticket/26893 (closed as "worksforme"). For future reference, please ask "is it a bug?" questions on django-users and wait for confirmation that it is a bug before creating a Trac ticket. On Friday, July 15, 2016 at 6:26:27 AM

Code review and perfomance tips

2016-07-15 Thread Горобец Дмитрий
Hello, everybody. I'm working on one project where I need to render cities on the page in 1-4 columns like this. I'm rendering cities using 'regroup' filter: A D M U AberdeenDanbury MacombUkiah Akron Delano Mandan Urbana Manhattan BH

Re: Dynamic ModelAdmin Field

2016-07-15 Thread Derek
Why not use custom methods on your model? These can effectively act as extra properties: *https://docs.djangoproject.com/en/1.9/topics/db/models/#model-methods*(this is assuming you do not want to store any data of course... otherwise you will need to give a more concrete example of what you

Re: Django session issue with mod_wsgi + apache

2016-07-15 Thread Dan Tagg
Cacheing? 1. Do Bob's and James's pages have different URLs 2. Have you configured your cacheing. if you are using it, to not reuse components that could be confused? 3. Are you sending the correct cacheing directions to try and make sure caches between your infrastructure and the user's screen are

Help with django form an ajax, error 500

2016-07-15 Thread Elros Romeo
Hi, i hope you can help me, im trying to make a django post form without reloading the page using ajax, but im getting error 500 when submit, can you help me to fix this, this is my code: *models.py* class ProductoConcepto(models.Model): producto = models.ForeignKey(Producto) orden = models.For

Re: Django invoice generation system

2016-07-15 Thread Amandeep Singh
Firstly you could create a function that uses these to models and renders a html or csv format invoice. Then you could mail this to yourself. Once the function is created then you could create a scheduled cron job using celery or a even simple way would be to use crontab linux command with monthl

Re: Django session issue with mod_wsgi + apache

2016-07-15 Thread Dipankar B
Thanks for reply. I am using default value for django cache. We are building dynamic website so URL should be same for all user. But Session can be used to display dynamic content. What are reason for such type behavior? And I am unable to reproduce the issue again. Please help me. On Sa

Re: Django session issue with mod_wsgi + apache

2016-07-15 Thread James Schneider
> > Thanks for reply. > > I am using default value for django cache. > > We are building dynamic website so URL should be same for all user. But Session can be used to display dynamic content. > > What are reason for such type behavior? > > And I am unable to reproduce the issue again. > Sometimes

Re: Django invoice generation system

2016-07-15 Thread James Schneider
On Jul 14, 2016 4:31 AM, "USMAN MALIK" wrote: > > Hi. I'm new to django and i'm creating a buisness application for my company. i want to generate a monthly invoice for every member in my company and for this i have two models in which all the information is stored. Is there a way to generate an a