Re: Moving a Django website to another server

2013-01-26 Thread Sanjay Bhangar
On Sat, Jan 26, 2013 at 7:09 AM, Addy Yeow wrote: > I was looking for a consistent and error-free deployment as I switch > between servers frequently despite using the same public domain. rsync > was great but I had to manually reload server thereafter or issue a > syncdb, etc.

Re: Django install error using Python26

2013-01-26 Thread Karen Tracey
On Sat, Jan 26, 2013 at 11:08 PM, Andrew Palmer wrote: > Wow I feel like an idiot... I'm so used to tabbing everything out that I > was tabbing the 'INSTALL' located in the django directory... > Ah, that's an unfortunate bit of unhelpfulness with tab-completion there.

Re: Django install error using Python26

2013-01-26 Thread Andrew Palmer
Karen, Wow I feel like an idiot... I'm so used to tabbing everything out that I was tabbing the 'INSTALL' located in the django directory... I bet I would have been staring at that all night, THANKS! Andy -- You received this message because you are subscribed to the Google Groups "Django

Re: Django install error using Python26

2013-01-26 Thread Andrew Palmer
Karen, Wow I feel like an idiot... I'm so used to tabbing everything out that I was tabbing the 'INSTALL' located in the django directory... I bet I would have been staring at that all night, THANKS! Andy On Saturday, January 26, 2013 9:55:28 PM UTC-6, Andrew Palmer wrote: > > Hey All, > > So

Re: Django install error using Python26

2013-01-26 Thread Karen Tracey
Lowercase install, not uppercase INSTALL. Karen -- http://tracey.org/kmt/ -- 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 install error using Python26

2013-01-26 Thread Andrew Palmer
Hey All, So I'm new to Python/Django, trying to use this more after being a Perl user for quite some time. I'm going through the djangobook.com tutorial for starters. I have Python 2.6.6 installed, as well as Django 1.4.3. Hasn't been an issue running any Python scripts, however when I

Re: Form with variable fields

2013-01-26 Thread sephii
Le dimanche 27 janvier 2013 00:57:42 UTC+1, arnonym a écrit : > > On Sat, 26 Jan 2013 11:39:20 -0800 (PST) sephii > wrote: > > Hey there, > > > > I'm trying to create a form with a "static" part (a "title" field, a > > "date" field) and a variable part (these are

Re: Using the Django development server for local subdomain development

2013-01-26 Thread Russell Keith-Magee
The best approach I've found is to use xip.io. xip.io is a service that is actually provided by the 37 Signals guys, but it works for any web project (not just Rails). I'll honour a good idea wherever it comes from. It's a DNS server with unusual behaviour: If you prepend an IP address to the

Re: Moving variable names to external js file - how can I map the variables values to the new location?

2013-01-26 Thread Juan Pablo Romero Bernal
I think to move the all javascript code from your templates to .js files, you must change the way your views are working. I think your url and view are expecting some parameters, for this reason the problem with urls and his generation. The case about the checkbox changing, can be resolved

Re: Form with variable fields

2013-01-26 Thread Arnold Krille
On Sat, 26 Jan 2013 11:39:20 -0800 (PST) sephii wrote: > Hey there, > > I'm trying to create a form with a "static" part (a "title" field, a > "date" field) and a variable part (these are "artist names", so > that's a single field that can be repeated multiple times,

Re: Suddenly "django-admin.py startproject" not working

2013-01-26 Thread Bill Freeman
What OS? Is the file django-admin.py on your path? Is it marked as executable? Try: python django-admin.py startproject mysite Bill On Sat, Jan 26, 2013 at 4:06 AM, Mihkel Lukats wrote: > Hi, > > suddenly "django-admin.py startproject mysite" doesn't work. what

Using the Django development server for local subdomain development

2013-01-26 Thread Brian Dant
I'm trying to create a development environment that supports testing my subdomain configuration. I'll be using the django-subdomains package, which relies on the sites framework. *To make a local environment that supports this while using the Django built-in webserver, do I need to set up

Re: poll tutorial 4

2013-01-26 Thread Fatih Tiryakioglu
I think somebody just updated the tutorial document as return HttpResponseRedirect(reverse('polls:results', args=(p.id,))) Thanks.. -- 26 Ocak 2013 Cumartesi 13:54:04 UTC+2 tarihinde Fatih Tiryakioglu yazdı: > > Hi all, > > I have encountered following error in the django tutorial. It is a

Form with variable fields

2013-01-26 Thread sephii
Hey there, I'm trying to create a form with a "static" part (a "title" field, a "date" field) and a variable part (these are "artist names", so that's a single field that can be repeated multiple times, with a minimum of 1). I first thought about the MultiValueField but it requires several

Auth and Registration survey -- please help

2013-01-26 Thread Ted
Hi all, I'm going to be giving a talk on Auth and Social Auth this spring. As part of that I've put together a survey about which packages people use and why. It's short, 5 questions, and shouldn't take more than 5 or 10 minutes. I'd appreciate you taking the time to fill out the survey.

Re: Moving variable names to external js file - how can I map the variables values to the new location?

2013-01-26 Thread Jason
Hi, Thanks for your response. A lot of the content is generated by javascript, including the elements which fire the javascript functions. For example there is a method which writes a checkbox to the DOM - the value of which is given by an AJAX query. When it is checked/unchecked it fires a

Re: Moving variable names to external js file - how can I map the variables values to the new location?

2013-01-26 Thread Juan Pablo Romero Bernal
Hi, You can use data properties, for example: # Template # Javascript $('#address').editable({ type: 'text', url: $('#my_container').data('url'), .. }); Hope this helps, On Sat, Jan 26, 2013 at 8:54 AM, Jason <1jason.whatf...@gmail.com> wrote: > Hi there. > > > I am

poll tutorial 4

2013-01-26 Thread Fatih Tiryakioglu
Hi all, I have encountered following error in the django tutorial. It is a reverse function error and the problematic line: return HttpResponseRedirect(reverse('polls.views.results', args=(p.id,))) In the "vote" view, I choose one of the choices, and click the vote button. Instead of

Suddenly "django-admin.py startproject" not working

2013-01-26 Thread Mihkel Lukats
Hi, suddenly "django-admin.py startproject mysite" doesn't work. what could cause this? Workd befor. now when i type it in it will open the file django-admin.py... not execute the command.. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Moving variable names to external js file - how can I map the variables values to the new location?

2013-01-26 Thread Jason
Hi there. I am moving some javascript from my html to an external js file. At present however, whenever my pages are rendered I use variable names to give url endpoints, for example: $('#address').editable( { type: 'text', send : "always",

Re: ImageField upload_to issue

2013-01-26 Thread Sammael
I'm terribly sorry, my bad. Of course, the second example is: class Image(models.Model): image = models.ImageField(upload_to = upload_path('i'), blank=True) thumbnail = models.ImageField(upload_to = upload_path('t'), blank=True) суббота, 26 января 2013 г., 3:58:55 UTC+4