Unable to load application to production environment

2011-11-30 Thread Ganesh Kumar
Hi guys, I am trying to load to my application to production environment, It will work on test server, How to do this please guide me. my settings file:- 'registration', 'fileupload', 'password_required', those application cant load at production time. error says:- No module named

Django admin URL redirect problem in admin page

2011-11-30 Thread Asif
Dear All, In one of my django app, I extended the django User model and created a new ‘UserProfile ‘ model. But when I’m trying to add new user through this model in admin page, the URL is not redirecting to successful page, instead its stopped on ‘admin/auth/user/add/? _popup=1’ this URL. (user

Re: Using request.POST.copy() to get hidden field in html template

2011-11-30 Thread DrBloodmoney
On Wed, Nov 30, 2011 at 7:43 PM, jim wrote: > I'm trying to use request.POST.copy() to get a hidden field in an html > template.  The hidden field looks like: > > > > I also tried: > > > > In my view.py I have: > >      postdata = request.POST.copy() >       url =

Using request.POST.copy() to get hidden field in html template

2011-11-30 Thread jim
I'm trying to use request.POST.copy() to get a hidden field in an html template. The hidden field looks like: I also tried: In my view.py I have: postdata = request.POST.copy() url = str(postdata.get('url')) The value of url is None. Is there an additional trick to this?

Re: converting a large site to Django

2011-11-30 Thread marjenni
Hi,ne Thank you for your quick reply :) Actually, I am a little concerned that I may have a lot of work ahead of me! I have an existing php based website that is used to advertise holiday accommodation, and the pages that contain advert listings are dynamically recreated every 24 hours. I

LocalWiki, a crazy-easy-to-use django-based geographic wiki, released!

2011-11-30 Thread philipn
Folks- We just made the first general public release of LocalWiki, a really easy to use wiki that focuses on geographic communities. It's all Django-based. Check it out: http://localwiki.org Django devs will probably want to check out http://dev.localwiki.org and follow our 'manual'

Two Servers plus one Load Balancer Vip Advice for DB?

2011-11-30 Thread Colin
Hi Django users, So I have two servers behind a vip. I currently have it setup so if one server goes down it uses the other http server which works great. However I tried to set up mysql master - master and I keep getting duplicate key errors and grind the process to a hault and causes a real

RE: MS Access integration with DJango through conversion to (Postgres or MySQL) xor direct interaction

2011-11-30 Thread Sells, Fred
There's a free access to mysql converter; try google; I forgot the name and have it on a different computer than this one. Contact list again if you cannot find it and I'll look harder. -Original Message- From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On

Feature Flipping with Gargoyle and Waffle

2011-11-30 Thread Adam Nelson
We just put out a post about feature flipping using Gargoyle or Waffle: http://tech.yipit.com/2011/11/30/getting-to-continuous-deployment-in-django-feature-flipping/ --- Adam Nelson CTO, Yipit Join the Yipit Team and work with Python, Django, MongoDB, jQuery, Backbone.js and Sass @

django south

2011-11-30 Thread william ratcliff
Is there anyone available late next week to give a webinar on django south? No need for a detailed presentation, but more to be around to answer questions (I think that 9am EST would cover most time zones)? If so, please contact me off list about dates/times/compensation. The goal would be to

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

2011-11-30 Thread Sime Ramov
* Andre Lopes [2011-11-30 20:25+]: > I need to track visitors with Google Analytics. What should I use to > get Google Analytics working on Django? Are you serious? -- You received this message because you are subscribed to the Google Groups "Django users" group.

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

2011-11-30 Thread william ratcliff
Google gives you a small piece of javascript that you need to insert into your pages to track them. So, all you need to do is to insert that code into your templates... On 11/30/11, Carlos Daniel Ruvalcaba Valenzuela wrote: > A quick Google revealed that there is already a

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

2011-11-30 Thread Carlos Daniel Ruvalcaba Valenzuela
A quick Google revealed that there is already a django-google-analytics package, why not try to check it out? otherwise you could as last resort just put their tracking code on your master template and be done with it. http://code.google.com/p/django-google-analytics/ Regards, Carlos Ruvalcaba

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: unit tests and 'system' tests with history

2011-11-30 Thread Ian Clelland
On Wed, Nov 30, 2011 at 2:48 AM, Gelonida N wrote: > 2.) Stress / System tests > -- > These are often called 'integration tests', and are used to test whether all of the (properly unit-tested) components of the system actually function

Re: Django or python question about classes

2011-11-30 Thread youpsla
Thanks for the link Tom. I'll read that in details later (it's a little bit complicated) an for my POC I'll just use a not DRY method !!! :-) Regards Youpsla On 28 nov, 17:16, Tom Evans wrote: > On Mon, Nov 28, 2011 at 4:07 PM, youpsla wrote: > >

Re: A view associated with a lot of urls

2011-11-30 Thread Nolhian
> > Well I agree that if the category doesn't exist he will get a 404. But > > if the Category exists and there are no items in the 'table', it will > > not be empty, it will also raise a 404 too.  That's why I wrote : > > >> However with that, there is no way for example to make a difference > >>

Re: Retrieve object model admin userid & password?

2011-11-30 Thread Ian Clelland
On Wed, Nov 30, 2011 at 10:22 AM, Tim Sawyer wrote: > You can't retrieve the password, as that would be a security flaw. The > security works by hashing the password entered into the login form, and > comparing the hashed version with the one stored on the database.

Re: Retrieve object model admin userid & password?

2011-11-30 Thread Tim Sawyer
You can't retrieve the password, as that would be a security flaw. The security works by hashing the password entered into the login form, and comparing the hashed version with the one stored on the database. Hash functions are quick to run one way, but difficult to reverse, hence it's

Retrieve object model admin userid & password?

2011-11-30 Thread Marc Edwards
I am working through some authentication examples. When I created my first database, I "recall" entering a username and password, but entering what I recall was the correct input is not authenticating. Is there an easy way to reset or retrieve the username and password that was used to create

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

2011-11-30 Thread bryan hunt
Build it on 512 Linode, upgrade to 1024 if necessary. Linode are so far ahead of the competition Price/Performance ratio, I wouldn't bother with anyone else (VPS). -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Re: Cache timeout

2011-11-30 Thread Tom Evans
On Sat, Nov 26, 2011 at 4:07 PM, Addy Yeow wrote: > If I use cache_page() decorator for my view function, will the TIMEOUT be > able to take precedence over CACHE_MIDDLEWARE_SECONDS? > > In my settings.py, > > CACHES = { >     'default': { >         'BACKEND':

Fixture migrations using South?

2011-11-30 Thread Jeremy Dunck
I have some test fixtures with scenarios under test. Later, I need to migrate (with South) the DB schema around, which of cours necessitates changing domain and test code. A common problem I run into, though, is that I also need to migrate the data in my fixtures. It is possible to create a new

Re: converting a large site to Django

2011-11-30 Thread creecode
Hello Mark, On Wednesday, November 30, 2011 8:46:28 AM UTC-8, marjenni wrote: All seems good, but what I need to know is what is the easiest/ > quickest way of moving across the rest of the website onto this new > server? Will I need an entry for each page in the urls file? > It will be hard for

Re: converting a large site to Django

2011-11-30 Thread Tim Sawyer
Do the pages that you're moving across to the new site need to be change-able through the admin system, or are they static HTML that won't change? Only use flatpages if you want them to be editable through the web. Tim. On 30/11/11 17:09, Juan de Dios Manjon Perez wrote: Try flatpages

Re: converting a large site to Django

2011-11-30 Thread Juan de Dios Manjon Perez
Try flatpages https://docs.djangoproject.com/en/dev/ref/contrib/flatpages/ -Juande On Wed, 30 Nov 2011 08:46:28 -0800 (PST), marjenni wrote: Hi, I am working on a website with many pages (in the hundreds). I have recreated the website front page on a new server with the desired new

Re: Cache timeout

2011-11-30 Thread Jian Chang
u can test by yourself. yes, i don't know the answer, neather 在 2011-11-27 上午12:08,"Addy Yeow" 写道: > If I use cache_page() decorator for my view function, will the TIMEOUT be > able to take precedence over CACHE_MIDDLEWARE_SECONDS? > > In my settings.py, > > CACHES = { >

converting a large site to Django

2011-11-30 Thread marjenni
Hi, I am working on a website with many pages (in the hundreds). I have recreated the website front page on a new server with the desired new functionality implemented in Python and Django. All seems good, but what I need to know is what is the easiest/ quickest way of moving across the rest

Re: A view associated with a lot of urls

2011-11-30 Thread Ivo Brodien
> Well I agree that if the category doesn't exist he will get a 404. But > if the Category exists and there are no items in the 'table', it will > not be empty, it will also raise a 404 too. That's why I wrote : > >> However with that, there is no way for example to make a difference >> between

Re: A view associated with a lot of urls

2011-11-30 Thread Nolhian
Well that should work pretty well with an SQL database. But as I said my database is a NoSQL one, here I need to have one "table" per category. So creating another Categorylist table just for fun and put all the category names into, then hit it in order to check if the category exists just seems

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 wrote: > On Wed, Nov 30, 2011 at 9:35 AM, Andre Lopes wrote: >> Hi, >> >> I'm serving to production a Django website with Nginx + Gunicorn with >> virtualenv.

Creating an app for recurring features

2011-11-30 Thread Benedict Verheyen
Hi, I have made several projects now for internal use and some of the functionality keeps coming back. For instance, language selection, user authentication, ad syncronization of users. I want to put these in seperate apps that I can easily install in a project. All projects use virtualenv.

Re: A view associated with a lot of urls

2011-11-30 Thread Nolhian
> Sorry, it was DrBloodmoney, who wrote this: > > > class Category(models.Model): > >    name = models.CharField # should be unique > > > class Item(models.Model): > >  name = models.CharField() > >   category = models.ForeignKey(Category, related_name='items’) > Oh that, yes I intended to do

Re: Process management with Supervisord

2011-11-30 Thread DrBloodmoney
On Wed, Nov 30, 2011 at 9:35 AM, Andre Lopes wrote: > 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? You should just install

Try to follow the Tutorial "Wiki in 20 minutes" on ShowMeDo

2011-11-30 Thread moRytox
Hi Guys, at first: please excuse my bad english. I hope you can understand what i mean. i just started working with Django and used the tutorial @ djangoproject.com. After i completed it i tried to rebuild the djangotutorial for wikicamp shown on ShowMeDo (

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"

Re: MS Access integration with DJango through conversion to (Postgres or MySQL) xor direct interaction

2011-11-30 Thread Michael Manfre
An access database should not be used for a production site. There are various ways/tools for migrating from access to other databases. Search for how to export from ms access and it should turn up a lot of different methods for migrating to mysql or postresql. Access to MySQL example -

Re: A view associated with a lot of urls

2011-11-30 Thread Ivo Brodien
> I don't quite understand what you mean here. You want me to create a > CategoryModel of which all my Category models should be derived ? If > that's it, how can it help me to determine if URL is valid or not, I > can't see how that works. Sorry, it was DrBloodmoney, who wrote this: > class

Re: Delete a many to many field who is in another table

2011-11-30 Thread jose osuna perez
I try to make this using delete, remove.. Also I using too if request.POST.get('experimentosDelete','')!='': for i in request.POST.getlist('experimentosDelete'): exp=Experimentos.objects.get(proyecto=datos,id=i) exp.experimentos=[] ...

Re: A view associated with a lot of urls

2011-11-30 Thread Nolhian
Hello, >As Reinout suggested you should have a CategoryModel which you can check >if a >Category exists and the get the items of show that the category does not >>exist or 404 if somebody entered a wrong URL/Category. Checking against the >>DB is probably the same thing you want to do, but it

Re: Delete a many to many field who is in another table

2011-11-30 Thread Tom Evans
On Wed, Nov 30, 2011 at 11:42 AM, jose osuna perez wrote: > Hi, I am finally going to finish the project started and where I end > up liking this xD Django that the problem I have is the clearing of a > field. > ... > I try like this: > > if

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

2011-11-30 Thread Salvatore Iovene
Hi, I recently launched a Django project on a Linode 1024. I serve django with nginx, run mysql, and a bunch of other stuff. I routinely have about 500MB of free RAM. I wouldn't recommend a Linode 512, you will swap a lot. -- You received this message because you are subscribed to the Google

Re: Delete a many to many field who is in another table

2011-11-30 Thread Salvatore Iovene
Hi, after: exp.experimentos.remove(request.POST.get('experimentosDelete')) You should do: exp.save() I hope this helps. Salvatore. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Delete a many to many field who is in another table

2011-11-30 Thread jose osuna perez
Hi, I am finally going to finish the project started and where I end up liking this xD Django that the problem I have is the clearing of a field. I have the following tables. class Proyectos(models.Model): titulo=models.CharField(max_length=100)

save_model on django.contrib.auth.admin.UserAdmin not called by password change form

2011-11-30 Thread Marc
Hello, I would like to get control on the password change form of the admin site. I put the following code in the admin.py: class MyUserAdmin(UserAdmin): def save_model(self, request, obj, form, change): ... admin.site.unregister(User) admin.site.register(User, MyUserAdmin) The problem is

unit tests and 'system' tests with history

2011-11-30 Thread Gelonida N
I started implementing tests for my django application. I anticipate two kind of tests: 1.) Unit tests --- The unit tests should be as the uni tests are implemented in django. They should be 'atomic' independent, could be executed in any order and should always yield the same

Re: django tests. where to create users

2011-11-30 Thread Gelonida N
On 11/29/2011 12:34 PM, Piotr Zalewa wrote: > I use all solutions, depending on the needs. > > When I'm testing a usage of many objects I use fixtures (also with users > as I'm "pretending" that users created them) > > When there is a test involving a user I create this object, either in > test

Re: django tests. where to create users

2011-11-30 Thread Gelonida N
On 11/29/2011 11:45 AM, Tom Christie wrote: > What's wrong with just creating them in the .setUp()? > > Don't sweat the small amount of time it'll take to re-create the users > on each test run, it's almost certainly not worth worrying about. > Well this is what I'm doing at the moment. And I

Re: A view associated with a lot of urls

2011-11-30 Thread Ivo Brodien
Hi, > That's why I'm > considering checking at the beginning of the view with a list/dict > filled with category names and one filled with item names to make sure > that the category is in the list/dict and same for the item before > hitting the database, and if not respond with a 404. As

Re: A view associated with a lot of urls

2011-11-30 Thread Nolhian
>Probably not a problem. How are people ending up on those URLS? Not by >guessing. That's just the point here, to avoid crashing because some "smart" people tried to play with urls. So with only a get or 404 there is no way to know if the category/items does indeed exist or if the user played

[ANN]: FeinCMS 1.5.0.pre1

2011-11-30 Thread Matthias Kestenholz
Hello everyone I'm finally starting the release process for FeinCMS v1.5 (sorry for waiting so long). The release is available at the following places: PyPI: http://pypi.python.org/pypi/FeinCMS Github: https://github.com/feincms/feincms Documentation:

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

2011-11-30 Thread Reinout van Rees
On 29-11-11 21:05, Andre Lopes wrote: To put things working I should replace: [code] root /path/to/test/hello; [/code] For the path where I have my Django Project? You won't even use that root. That's for serving regular static files and that's only needed for the /static_media and