Reliable and cheap hosting for simple webapp in Django

2013-09-10 Thread Andre Lopes
Hi all, I'm stuck with Django hosting. I've A2hosting but the Django hosting is not good at all. They use FCGI and Passenger and both have a problem. If I'm more than 15min without doing a request to the site, the first request is very slow and most of the time will do an Internal Server Error.

Re: Reliable and cheap hosting for simple webapp in Django

2013-09-10 Thread Andre Lopes
Sep 11, 2013 at 12:55 AM, Andre Lopes <lopes80an...@gmail.com> > wrote: >> >> Hi all, >> >> I'm stuck with Django hosting. I've A2hosting but the Django hosting >> is not good at all. >> >> They use FCGI and Passenger and both have a problem. >&g

Django-Registration compatible with 1.5.2?

2013-09-08 Thread Andre Lopes
Hi, I need to user a registration app for Django 1.5.2. I'm a little bit confused on what app to use. Currently django-registration(https://bitbucket.org/ubernostrum/django-registration) is compatible with Django 1.5.2? If not, what app should I use? Best Regards, -- You received this

How to retrieve an object from a custom template tag?

2013-03-16 Thread Andre Lopes
Hi all, I'm trying to retrieve an object from a custom template tag. This is possible? I explain here with details what I'm expecting to do? http://stackoverflow.com/questions/15450003/django-how-to-retrieve-an-object-from-a-custom-template-tag Any clues? What is the best way to avhieve this?

Re: How can use the prepare method?

2013-03-13 Thread Andre Lopes
Sorry, I've forgot to mention that this is related with Haystack. On Wed, Mar 13, 2013 at 1:16 PM, Andre Lopes <lopes80an...@gmail.com> wrote: > Hi, > > I'm trying to use the prepare method on the index to loop a related > model. But I just can't get it to the "T

How can use the prepare method?

2013-03-13 Thread Andre Lopes
Hi, I'm trying to use the prepare method on the index to loop a related model. But I just can't get it to the "Text" field of the index. Here is the code: http://dpaste.org/c3b1z/ I'm doing somethinf wrong? Best Regards, -- You received this message because you are subscribed to the Google

Designing the email processing system. What path should I follow?

2013-02-15 Thread Andre Lopes
Hi all, I'm building a Django website. Currently I'm searching for the best way to design the email processing system. The website is a Ads site. I need to send emails in a regular basis to the users. I'm looking for 20 or 30 e-mails hour for now. In other projects, I've been using a database

Upload multiple files using Ajax

2013-01-22 Thread Andre Lopes
Hi, I need to develop a form to upload multiple files. I was thinking in using an Ajax uploader. I have google some options but there are to many and I don't know which one to choose. Any recommendations about this subject? Best Regards, André. -- You received this message because you are

Django Formsets - How to build a formset correctly and validade it?

2013-01-11 Thread Andre Lopes
Hi all, I'm struggling with Formsets. I've read the documentation and lots of information on the web, but I'm experiencing some difficulties on get them working. I've wrote a StackOverflow question that explains my difficulties.

How to get self.id when saving a new object?

2013-01-09 Thread Andre Lopes
Hi, I'm without a clue on how to get the sef.id when creating a new object in Django. I've created a question in StackOverflow. Can someone give me a clue on this subject? Please read the question: http://stackoverflow.com/questions/14234917/django-how-to-get-self-id-when-saving-a-new-object

How to call a database function from Django?

2012-11-08 Thread Andre Lopes
Hi all, I need to run a script once a day. The script basically will call a postgresql function. I've google and I found a solution just like this. The problem is that does not work. [code] import os os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from myapp.models import *

Re: Which IDE should I use for Django?

2011-12-19 Thread Andre Lopes
PyDev also works well. It is an Eclipse Plugin. On Mon, Dec 19, 2011 at 11:19 AM, Ankit Rai wrote: > pycharm +1 > > > On Mon, Dec 19, 2011 at 4:41 PM, Thomas Weholt > wrote: >> >> Pycharm +1 >> >> >> >> On Mon, Dec 19, 2011 at 11:35 AM, Zhukov

Re: How to deploy new code to the Production Server?

2011-12-02 Thread Andre Lopes
are welcome. Best Regards, On Fri, Dec 2, 2011 at 10:08 AM, kenneth gonsalves <law...@thenilgiris.com> wrote: > On Fri, 2011-12-02 at 09:00 +0000, Andre Lopes wrote: >> How can I have the two environments(Development and Production) in >> Git? Should I use two new Branches(Devel

How to deploy new code to the Production Server?

2011-12-02 Thread Andre Lopes
Hi, I'm new to Django. I need to setup Git to deploy a Django website to the production server. My question here is to know what is the best way of doing this. By now I only have a Master branch. My problem here is that Development environment is not equal to the Production environment. How can

Website Statistics - What should I use to have Google Analytics in Django?

2011-11-30 Thread Andre Lopes
Hi, I need to track visitors with Google Analytics. What should I use to get Google Analytics working on Django? What is my best choice? Best Regards, -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Process management with Supervisord

2011-11-30 Thread Andre Lopes
Thank you for the reply. Best Regards, On Wed, Nov 30, 2011 at 2:51 PM, DrBloodmoney <drbloodmo...@gmail.com> wrote: > On Wed, Nov 30, 2011 at 9:35 AM, Andre Lopes <lopes80an...@gmail.com> wrote: >> Hi, >> >> I'm serving to production a Django website with Ng

Process management with Supervisord

2011-11-30 Thread Andre Lopes
Hi, I'm serving to production a Django website with Nginx + Gunicorn with virtualenv. My dumb question is: I must to install supervisord in my virtualenv or outside my virtualenv? Best Regards, -- You received this message because you are subscribed to the Google Groups "Django users"

Nginx - How to configure the virtual.conf to serve a Django application

2011-11-29 Thread Andre Lopes
I'm trying to serve a Django application to production. I have installed Gunicorn and now I need to setup a Nginx Virtual Host. I'm kind of lost on how to configure the "virtual.conf" from Nginx. I just want to use Nginx as proxy, I don't want to configure deplyment scripts for now. I have this

Re: What server configuration should I use for a Django site like this?

2011-11-29 Thread Andre Lopes
be a vps? there are much cheaper shared hosting > alternatives for django. > I don't recommend going forward with apache with so few ram, use nginx > or lightppd. > Best regards, > > On Nov 28, 4:30 pm, Andre Lopes <lopes80an...@gmail.com> wrote: >> I need to put in p

What server configuration should I use for a Django site like this?

2011-11-28 Thread Andre Lopes
I need to put in production a Django website, but I don't know what machine I should use... this is not a commercial project, probably the monetary return will be very very little in ads... I have: -Django -PostgreSQL -Solr Do you think that will be enough a linode with 512mb ram? - Visitors

Haystack and date facets, anyone knows how it works?

2011-11-07 Thread Andre Lopes
Hi, I'm trying to do a date facet with Haystack using Solr. The thing is that I have no clue on how to use the results that I get from Haystack and how to put this results in a Django template. I have made a post in stackoverflow, but until now I have no clues on how to achieve this. Can you

Re: django-registration-template

2011-11-04 Thread Andre Lopes
Great! I will test your templates. I'm new to Django and I have searched a lot for this. The templates look awesome. Best Regards, On Fri, Nov 4, 2011 at 4:11 AM, Ezequiel Bertti wrote: > Hi, > I just release a project on github with bootstrap from twitter v1.4 form >

Re: Which is the best way of query a database view(no from Django model)

2011-11-03 Thread Andre Lopes
Hi Daniel, thanks for the reply. I have tested to "inspectdb" but I think the schema is to complex, for example... for the table "tdir_files_context" (djangoinspectdb.JPG "image in attachment") I got this model: [code] class TdirFilesContext(models.Model): id_category =

Which is the best way of query a database view(no from Django model)

2011-11-03 Thread Andre Lopes
Hi, I'm a new to Django... I have a database schema that stores me information that I want to show in a Django website. This database schema have nothing to do with a Django App... Which is the best way of doing this in Django? I have read the documentation and seems to me that I will need to

Re: What I am missing is this Django "logout"?

2011-08-23 Thread Andre Lopes
bsolute path, and not a relative url path. > But, you are surely using things "the wrong way". :) > > On Sun, Aug 21, 2011 at 4:57 PM, Andre Lopes <lopes80an...@gmail.com> wrote: >> >> Hi, >> >> Thanks for the reply. >> >> I have discov

Re: What I am missing is this Django "logout"?

2011-08-21 Thread Andre Lopes
fresh the page, you are basically pre-empting your browser > client to break the initial loop, and manually requesting for the new fetch > request. > I hope I was able to clear the reason behind the outcome you were > experiencing. > > > On Sat, Aug 20, 2011 at 2:39 PM, An

What I am missing is this Django "logout"?

2011-08-20 Thread Andre Lopes
I am new to Django, and I am trying to put the logout to work... I have installed the an App called, Django-Registration. My problem is that I can do the logout, but the page does not get refreshed, I must to press F5 after the logout to see the page for not logged users. What I have done is

Re: Best way to show/hide the logout link in a template?

2011-08-18 Thread Andre Lopes
Thanks Kev, It was exactly what I needed. Regards, On Thu, Aug 18, 2011 at 10:45 PM, Kev Dwyer <kevin.p.dw...@gmail.com> wrote: > Andre Lopes wrote: > >> Hi, >> >> I am new to Django... I have made a logout link, but now I am in doubt >> on which the bes

Best way to show/hide the logout link in a template?

2011-08-18 Thread Andre Lopes
Hi, I am new to Django... I have made a logout link, but now I am in doubt on which the best way to show/hide this template tag: [code] Logout [/code] Which is the best way of show/hide this link? Sorry if it is a basic question. Best Regards, -- You received this message because you are

Re: How to Layout a Django Application?

2011-08-17 Thread Andre Lopes
alled with {{ block.super }} in a specific template, so that I can append > more scripts to a section of the site rather than having to rewrite the > entire block. > > Let us know if you need more help! > > > Cheers, > AT > > [1] > https://docs.djangoproject.com/en/dev

Re: Django-Registration, How can a beginner work with this 3rd party App?

2011-08-16 Thread Andre Lopes
Thanks for your reply. I will follow this tutorial. Best Regards, On Tue, Aug 16, 2011 at 4:36 PM, shacker wrote: > See also: > > django-profiles: The Missing Manual > http://birdhouse.org/blog/2009/06/27/django-profiles/ > > (django-profiles and django-registration are

How to Layout a Django Application?

2011-08-16 Thread Andre Lopes
Hi, another question from a Django beginner. I have played with views and templates a little bit, but now I want to make a real layout(Header, Side Column and Footer). There are any guides on layouts that I should follow? There are Apps that will help me with that task? Please le me know. Best

Django-Registration, How can a beginner work with this 3rd party App?

2011-08-15 Thread Andre Lopes
Hi, another question from a beginner. I am getting some trouble to get Django-Registration working. The on-line documentation(http://readthedocs.org/docs/django-registration/en/latest/) is not for a beginner like me, there are many steps that I don't know how to do them. For example the creation

Re: 3rd party Apps in Django

2011-08-15 Thread Andre Lopes
> wrote: >> >> Hmmm... >> >> Using pip will take care of requirements the package might have and >> install it in the right python lib folder so several projects can use >> it among other things. >> >> Are there good reasons NOT to use pip/e

3rd party Apps in Django

2011-08-15 Thread Andre Lopes
Hi, I have put this question in StackOverflow, but no response untill now... This is an important question to me to understand how Django works I am new to Django. I have some doubts about installing 3rd party Apps in Django. A specific example. The "django-registration" App in

Re: Authentication App to use?

2011-08-15 Thread Andre Lopes
Thanks for the reply. Django-Registration (http://djangopackages.com/packages/p/django-registration/) have the Social Auth (Google, Yahoo, OpenId, etc)? Best Regards, On Mon, Aug 15, 2011 at 10:11 AM, Reinout van Rees <rein...@vanrees.org> wrote: > On 15-08-11 11:01, Andre Lo

Authentication App to use?

2011-08-15 Thread Andre Lopes
Hi, I am new to Django, and I have been reading about authentication and authorization in Django. Due to the complexity of this subject I was thinking to use a 3rd party developed App for this. I have found this App: https://github.com/pennersr/django-allauth My question. There are others Apps I

Re: How to order "links" in the Admin?

2011-08-11 Thread Andre Lopes
> >    class Meta: >        ordering=['website_position'] > > > see: https://docs.djangoproject.com/en/1.3/ref/models/options/#ordering > > On Aug 10, 4:25 am, Andre Lopes <lopes80an...@gmail.com> wrote: >> Hi, >> >> Thanks for the reply. >> >> I

Re: How to order "links" in the Admin?

2011-08-10 Thread Andre Lopes
what it is based on to order these urls. > > i use time stamp to order them. > > > 2011/8/10 Andre Lopes <lopes80an...@gmail.com> >> >> Hi, >> >> I'm testing Django for my first project using it. >> >> I have a model like this: >

How to order "links" in the Admin?

2011-08-09 Thread Andre Lopes
Hi, I'm testing Django for my first project using it. I have a model like this: from django.db import models import datetime class Directory(models.Model): website_name = models.CharField(max_length=200) website_url = models.CharField(max_length=200) website_position =

Re: Django for a front end designer

2011-08-03 Thread Andre Lopes
If you want to start with a PHP Framework, consider CodeIgniter. It is the easier Framework for a starter. On Tue, Aug 2, 2011 at 3:46 PM, paulo couto wrote: > Ok thanks for the clarifications : > I guess i'll go to PHP for now and when i have more prog. experience i'll >

It is possible to list data from a database view in Django?

2011-07-19 Thread Andre Lopes
Hi, I'm new to Django. I'm in the process of test the features of Django to move a site from PHP to Python/Django. I have a database view that is the result of many joints between tables, I only do SELECTs to this view, the data is inserted via a Script that will populate the various tables. I

Re: How to install psycopg2 using Pip?

2011-03-24 Thread Andre Lopes
I have solved. I just edited "setup.cfg" on the psycopg2 and added: pg_config=C:\Program Files\PostgreSQL\8.4\bin\pg_config.exe Thanks for the help. Best Regards, On Mar 24, 3:49 pm, Shawn Milochik wrote: > This actually has nothing to do with Python -- I'm talking

Re: How to install psycopg2 using Pip?

2011-03-24 Thread Andre Lopes
Thanks for the reply. How can I do that? I'm new to Python, I'm not aware of what is Python path. Best Regards, On Mar 24, 3:10 pm, Shawn Milochik wrote: > Ensure that pg_config is on your PATH and it should work. -- You received this message because you are subscribed

How to install psycopg2 using Pip?

2011-03-24 Thread Andre Lopes
Hi, This question is not directly related with Django, but with Python. I have installed "virtualenv" to have a virtual environment. Now I need to instal "psycopg2" in my virtual environment, but I have not successfully installed. My steps: [quote] pip install

Should I use Python 2.6 with Django 1.3?

2011-03-24 Thread Andre Lopes
Hi, I'm new to Django. In my system I have Python 2.6 and Python 2.7 installed, but due to some inconsistencies in Python Path I will uninstall the Python versions and install again. What I need to know is if Python 2.6 will work without problems with Django 1.3 Best Regards, -- You received

Re: How does localization work in Django?

2011-03-23 Thread Andre Lopes
tions on how to setup gettext on windows. I must stress my > recommendation that you use virtualenv. Don't forget to add the relevant > paths to gettext or other utilities in virtualenv should you decide to use > it. There's documentation on that around the web too. > > Sincerely,

How does localization work in Django?

2011-03-23 Thread Andre Lopes
Hi, I have reading some topics of http://docs.djangoproject.com/en/1.3/topics/i18n/localization/ But have not understand what I need to do. First what I intend to do... I have created a new App, called "directorio", and now I need to have the capability of translate the data inside some

Re: ANN: Django 1.3 released

2011-03-23 Thread Andre Lopes
I'm kind of sad :) I have installed 1.2 one day ago... :O Just kidding. Congratulations to all people involved. Best Regards, On Wed, Mar 23, 2011 at 10:02 AM, Sultan Imanhodjaev wrote: > Wow!!! Congratulations people, thanks to developers! > > On Wed, Mar

Where to put generic Database Tables?

2011-03-22 Thread Andre Lopes
Hi, I'm trying to start with Django. I'm developing an App. This App is called "Directory" and will store info about websites. I must to create a database table called "Genders", but this is a generic database table and could be used in other App. My question... how to deal with this kind of

Some clues on multi language webapp on Django

2011-03-22 Thread Andre Lopes
Hi, I'm new to Django. I need some clues on how to design a multi language webapp on Django. There are some some examples, tips and tricks about the best way of doing it? PS: Sorry for my english. Best Regards, -- You received this message because you are subscribed to the Google Groups

About database composite keys.

2011-03-22 Thread Andre Lopes
Hi, I'm new to Django and I have some doubts about the Database Design. I design Databases two years from now but I'm not accustomed to design databases without composite keys. I have read that Django does not support composite keys. True? How is the philosophy of database design in Django...