unique_together modifed after data is loaded

2013-08-27 Thread Subramanyam
Hi Initially when we created the table we had two fields as unique_together = ( 'field1',field2') and quite some data has been added with the same Later we added one more field to unique_together = ( 'field1',field2','field3') how can I flush the old indexes created and add the new ones Th

help required on how to modify constraints/indexes of unique_together after data is loaded

2013-08-27 Thread Subramanyam
Hi Initially when we created the table we had two fields as unique_together = ( 'field1',field2') and quite some data has been added with the same Later we added one more field to unique_together = ( 'field1',field2','field3') how can I flush the old constraints/indexes created and add the n

Implementation and maintainability of an app deployed multiple times in the same website

2013-08-27 Thread J . C . Leitão
Hi. I'm using Django in a website and I need to use a given app in the website more than one time. I know this is kind of tricky to do in Django since there can be no name collisions. *What I'm searching* is more or less equivalent to what stack exchange network does: a "framework" applied on

Re: Passing variables to css file in django

2013-08-27 Thread Giulio Calacoci
May I suggest to save user defined css to a file saved in a specific path? for example if user John_Doe submits a customized css, save it in //css/users/john_doe/override.css then in the head of the html file load the user defined css always after the default one. this way is always static,

Re: DecimalField

2013-08-27 Thread Derrick Jackson
Thanks Tom. I actually tried that at one point and this is the error I received: not all arguments converted during string formatting. The required and invalid error message keys work fine but it appears the max_decimal_places key is being ignored. Has anyone seen this before? BTW, I am usin

Re: Django + Bamboo

2013-08-27 Thread Germán
Daniel, any luck with Bamboo? On Friday, April 19, 2013 3:25:52 AM UTC-3, daniel.franca wrote: > > Anyone has any experience configuring Django with Bamboo for deployment > and tests? > I'm trying to setup an environment, but there's not much about how to make > this work. > > What's is the best

Re: Implementation and maintainability of an app deployed multiple times in the same website

2013-08-27 Thread C. Kirby
Can each of the different requirements websites be on a different third-level or subdomain? (If your site is foo.com either bar.foo.com, baz.foo.com or foo.com/bar, foo.com/baz_ If so, I would deploy multiple Apache VirtualHosts, each serving an instance of your project. That way the projects ca

Problems using django 1.6.x and uwsgi

2013-08-27 Thread Rafael Reuber
I'm working on a project that needs a feature that it's only available on the 1.6.x version. But I'm having problems when I run it using uswgi. Apparently it could be a bug on 1.6.x because when I run the project using 1.5.x the error doesn't appear. uwsgi --http :8000 --wsgi-file drover/wsgi.

Re: Script to move django 1.4.3 to 1.5.1

2013-08-27 Thread Harjot Mann
On Thursday, June 20, 2013 8:55:07 AM UTC+5:30, Deepak Sharma wrote: > > Okay but my situation is bit different. I am updating my university > software. That software is wrote in django version 1.3.1. My challenge was > to run that software on 1.5.1 and i completed that. As many things changed

Re: Script to move django 1.4.3 to 1.5.1

2013-08-27 Thread Sithembewena Lloyd Dube
Error analysis + reading documentation = solution. Well, most of the time anyway. For help with errors, please share the errors? On Tue, Aug 27, 2013 at 7:37 PM, Harjot Mann wrote: > > > On Thursday, June 20, 2013 8:55:07 AM UTC+5:30, Deepak Sharma wrote: >> >> Okay but my situation is bit diff

Django Sites set current domain to site_id

2013-08-27 Thread Gerd Koetje
Hi all, I got a django application that is called by difrant domains for the same code (some minor changes for each domain) When i visit my application trough domain1.com or domain2.com its keep outputting data from the set site_id in settings How can i change the site_id based on the incommin

Django: How to combine 3-party apps!

2013-08-27 Thread alekto . antarctica
Hello! I am quite new to django. I have been creating a virtualenv project, where I have have installed the Zinnia-blog following the instructions on their web page. The directory structure on my project is like this: *├── design* *├── django_project* *│ ├── ad

django 2 tables one query?

2013-08-27 Thread piasek piasek
Hi I was wondering is it possible to get information about two tables in one query? I have two models Team (id, name, active, country) and Player (id, first_name, second_name, active, team) where Player.team = ForeignKey(Team) Of course one team may have several players and one player have one

Re: Django Sites set current domain to site_id

2013-08-27 Thread Mike Dewhirst
On 28/08/2013 4:01am, Gerd Koetje wrote: Hi all, I got a django application that is called by difrant domains for the same code (some minor changes for each domain) When i visit my application trough domain1.com or domain2.com its keep outputting data from the set site_id in settings How can i

Re: Django Sites set current domain to site_id

2013-08-27 Thread Mike Dewhirst
On 28/08/2013 9:08am, Mike Dewhirst wrote: On 28/08/2013 4:01am, Gerd Koetje wrote: Hi all, I got a django application that is called by difrant domains for the same code (some minor changes for each domain) When i visit my application trough domain1.com or domain2.com its keep outputting dat