Re: Accessing multiple databases from a single django app?

2010-11-28 Thread girish shabadimath
database router is the solution, check this out
http://docs.djangoproject.com/en/1.2/topics/db/multi-db/#database-routers


On Sat, Nov 27, 2010 at 12:34 AM, Tom Evans wrote:

> On Fri, Nov 26, 2010 at 5:28 PM, Roy Smith  wrote:
> > I want my application to be able to access two different mysql
> > databases (with different credentials, running on two different
> > servers).  One is a large data collection which I'll be accessing read-
> > only.  The other is read-write, and will be the one which manages the
> > site (account creation, user preferences, etc).  Is there a way to do
> > this?
> >
>
> http://docs.djangoproject.com/en/1.2/topics/db/multi-db/ ?
>
> HTH
>
> Tom
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
Girish M S

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Need a tip on how to architect this code to be more extensible

2010-11-28 Thread Sontek
I wrote this open source project that allows you to use the django
admin pop-ups in your own views but I want to give it the ability to
have the view extended so they can pass excludes and instances to the
form before its display... currently the code looks like this:

from django.contrib.auth.decorators import login_required
from django.shortcuts import render_to_response
from django.template import RequestContext
from django.http import HttpResponse
from django.utils.html import escape
from tekextensions.forms import get_model_form, normalize_model_name

def add_new_model(request, model_name, form=None):
normal_model_name = normalize_model_name(model_name)

if not form:
form = get_model_form(normal_model_name)

if request.method == 'POST':
form = form(request.POST)
if form.is_valid():
try:
new_obj = form.save()
except forms.ValidationError, error:
new_obj = None

if new_obj:
return HttpResponse('opener.dismissAddAnotherPopup(window, "%s", "%s");' % \
(escape(new_obj._get_pk_val()), escape(new_obj)))

else:
form = form()

page_context = {'form': form, 'field': normal_model_name}
return render_to_response('popup.html', page_context,
context_instance=RequestContext(request))

So I'd still like to allow them to get the automatic adding of the
javascript httpresponse and autocreation of the form using the
model_form_factory but would allow them to get the form and pass
instance=...  and exclude = ('whatever', )so that they can
customize/tweak the generated form

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



WEB SERVICE IN DJANGO USING ZSI

2010-11-28 Thread sami nathan
To genrate sevice file from my wsdl i used following command but it
shows the same


D:\Python25\Scripts>wsdl2py --complexType --file=ZonedLocation.wsdl
'wsdl2py' is not recognized as an internal or external command,
operable program or batch file.
 but my wsdl2py is in the scripts oly

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Some OpenSource Work?

2010-11-28 Thread Venkatraman S
Hi Guys,

So, i stumbled on http://cargocollective.com/ and was quiet impressed with
it. Would someone(with expertise in CSS/Javascript)
be interested in working with me and do an open source equivalent for this?
A light weight CMS which offers the basic
features (like video,images,text) and the ease of modifying the
design/layout; a CMS that can be easily be deployed,
maintained and upgraded without much hassles.

I can take up the django(db design et al) part of the work, but need someone
who is really a pro in the UI side of things, as i
quiet suck on those front.

-V-
http://twitter.com/venkasub

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: If logged in show X, if not Y

2010-11-28 Thread Venkatraman S
On Mon, Nov 29, 2010 at 7:44 AM, Andre Terra  wrote:

> I think a more elegant approach would be to have a main template with {%
> block some_name_for_the_part_that_changes %}, and have two different
> template (logged_in.html and not_logged_in.html) that both extend said block
> in 'main.html'.
>

The conditional logic in View or Template depends on what you want to
show/not-show in the template -- if its just a small section that you want
to conditionally show, then prefer the auth check in the template, else move
it to the view.


-V-
http://twitter.com/venkasub

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: If logged in show X, if not Y

2010-11-28 Thread Steve Holden
On 11/28/2010 6:50 PM, robos85 wrote:
> Hi,
> I've read about {% if user.is_authenticated %} and m template is going
> to have the same structure, but some block will have different content
> for logged users. Additionally there will by some more buttons.
> I wondered if there's some other way to divide it.
> By no I have that plan:
> define 1 mainframe template. In it I'll include some sub-templates. In
> that sub-templates I'll make {% if user.is_authenticated %} and
> include the destination template or do the stuff.
> 
> Is this plan ok?

It seems like a perfectly sensible plan to me. You will probably find
that you can define a hierarchy of templates, with the basic look and
feel provided by the top-level templates.

Sub-templates aren't always necessary.

regards
 Steve
-- 
DjangoCon US 2011 Portland, OR: September 6-8 http://djangocon.us/

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: populating model values into form

2010-11-28 Thread Michael Sprayberry
You will need to make an admin.py and follow these directions

class FormAdmin(admin.ModelAdmin):
prepopulated_fields = {"slug": ("title",)}
slug can be what ever field you want to populate and title is where you are
populating from, as far as I know you can only populate from within the same
area.


then you need to register form and formadmin

admin.site.register(form, formadmin)
On Sat, Nov 27, 2010 at 8:11 AM, djangobeginner  wrote:

> Hi,
> Im a beginner here, would just like to ask how to pass and populate
> model values (from database) into a created form, I have the following
> codes
>
> 1. I already have a webpage list of all the values in a table form
> 2. If I click on any of the row with primary key id (example: clicking
> edit link), it should redirect me to a created form (in forms.py) with
> all the values populated based on the primary key id from the web
> list.
>
> How do I possibly do #2?
> Please help. thanks.
>
> given the following:
> ---
> models.py:
> from django.db import models
> import datetime
>
> SHORT_DATE_FORMAT = "%d - %b - %y"
> DATE_FORMAT= "%Y-%m-%d"
> TIME_FORMAT= "%H:%M"
>
> class Job(models.Model):
>job_id = models.AutoField(primary_key=True)
>job_title = models.CharField(max_length=50, verbose_name =
> "Title")
>job_desc = models.CharField(max_length=500, verbose_name =
> "Description")
>active_datetime_fr = models.DateTimeField('time')
>active_datetime_to = models.DateTimeField('time')
> -
> views.py
> def object_list(request, model):
>   obj_list = model.objects.all()
>   template_name = '/job_list.html'
>   t = loader.get_template(template_name)
>   c = RequestContext(request, {"object_list": obj_list})
>   return HttpResponse(t.render(c))
> -
> forms.py:
> from django import forms
> from django.db.models.fields import AutoField
> from datetime import date, datetime
> import psycopg2
>
> class JobAddForm(forms.Form):
>#job_id = forms.IntegerField()
>job_title = forms.CharField(label='Title', initial='',
> required=True)
>job_desc = forms.CharField(label='Description', initial='',
> required=False)
>date_fr = forms.DateField(required=True, label ="Active From
> Date")
>date_to = forms.DateField(required=True, label ="Active To Date")
>time_to = forms.TimeField(required=True, label ="Active From
> Time")
>time_fr = forms.TimeField(required=True, label ="Active To Time")
> -
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: If logged in show X, if not Y

2010-11-28 Thread Andre Terra
I think a more elegant approach would be to have a main template with {%
block some_name_for_the_part_that_changes %}, and have two different
template (logged_in.html and not_logged_in.html) that both extend said block
in 'main.html'.

Then, as Xavier suggested, move the "if user is authenticated" part to the
view:

if is authenticated:
  render logged_in.html
else:
  render not_logged_in.html


Regards,
Andre Terra

On Sun, Nov 28, 2010 at 22:50, robos85  wrote:

> Hi,
> I've read about {% if user.is_authenticated %} and m template is going
> to have the same structure, but some block will have different content
> for logged users. Additionally there will by some more buttons.
> I wondered if there's some other way to divide it.
> By no I have that plan:
> define 1 mainframe template. In it I'll include some sub-templates. In
> that sub-templates I'll make {% if user.is_authenticated %} and
> include the destination template or do the stuff.
>
> Is this plan ok?
>
> On 29 Lis, 01:27, Xavier Ordoquy  wrote:
> > Hi,
> >
> > You may want to look at the authentication contrib application that comes
> with Django.
> > Esp here:http://docs.djangoproject.com/en/1.2/topics/auth/#id7
> >
> > Another solution if you intend to have totally different templates would
> be to check within the view the user state and render a different template.
> >
> > Regards,
> > Xavier.
> >
> > Le 29 nov. 2010 à 00:53, robos85 a écrit :
> >
> >
> >
> >
> >
> >
> >
> > > I managed to make register and login on my site. Now I want to divide
> > > my template to parts for loggen and not logged user.
> > > What is the best way to check and display template parts for this? For
> > > example if user is not logged in: show login form but if he is logged
> > > in - in the same place show him his avatar.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: If logged in show X, if not Y

2010-11-28 Thread robos85
Hi,
I've read about {% if user.is_authenticated %} and m template is going
to have the same structure, but some block will have different content
for logged users. Additionally there will by some more buttons.
I wondered if there's some other way to divide it.
By no I have that plan:
define 1 mainframe template. In it I'll include some sub-templates. In
that sub-templates I'll make {% if user.is_authenticated %} and
include the destination template or do the stuff.

Is this plan ok?

On 29 Lis, 01:27, Xavier Ordoquy  wrote:
> Hi,
>
> You may want to look at the authentication contrib application that comes 
> with Django.
> Esp here:http://docs.djangoproject.com/en/1.2/topics/auth/#id7
>
> Another solution if you intend to have totally different templates would be 
> to check within the view the user state and render a different template.
>
> Regards,
> Xavier.
>
> Le 29 nov. 2010 à 00:53, robos85 a écrit :
>
>
>
>
>
>
>
> > I managed to make register and login on my site. Now I want to divide
> > my template to parts for loggen and not logged user.
> > What is the best way to check and display template parts for this? For
> > example if user is not logged in: show login form but if he is logged
> > in - in the same place show him his avatar.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: MySQLdb

2010-11-28 Thread Xavier Ordoquy
Hi,

You should contact your system administrator if you don't have any 
login/password. If you installed mysql by yourself, read your distribution 
guides or the installation guide. There's no universal settings for this and it 
will depends on what/where/how you installed it.
As for importing databases, assuming you have a sql dump, it's as easy as mysql 
mydatabase < myfile

Regards,
Xavier.

Le 28 nov. 2010 à 18:55, tgdn45 a écrit :

> Hi,
> I use PHP since 1 year and I'd like to use Django, so I'm learning
> Django, and I have a problem:
> I don't know the MySQLdb's username and password so I can't connect.
> And also, how can I import a database into MySQLdb ?
> Thank you :)
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/django-users?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: If logged in show X, if not Y

2010-11-28 Thread Xavier Ordoquy
Hi,

You may want to look at the authentication contrib application that comes with 
Django.
Esp here: http://docs.djangoproject.com/en/1.2/topics/auth/#id7

Another solution if you intend to have totally different templates would be to 
check within the view the user state and render a different template.

Regards,
Xavier.

Le 29 nov. 2010 à 00:53, robos85 a écrit :

> I managed to make register and login on my site. Now I want to divide
> my template to parts for loggen and not logged user.
> What is the best way to check and display template parts for this? For
> example if user is not logged in: show login form but if he is logged
> in - in the same place show him his avatar.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



MySQLdb

2010-11-28 Thread tgdn45
Hi,
I use PHP since 1 year and I'd like to use Django, so I'm learning
Django, and I have a problem:
I don't know the MySQLdb's username and password so I can't connect.
And also, how can I import a database into MySQLdb ?
Thank you :)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



RE: Django book

2010-11-28 Thread Sells, Fred
Check amazon.com
I like the definitive guide to Django, but it's pretty much what you
find online.  Pro Django was not very useful to me.  There are others
now listed and I just ordered 2 of them, based on reader's comments.

I'm using django with flex, so I don't get into the template stuff much
FWIW.

-Original Message-
From: django-users@googlegroups.com
[mailto:django-us...@googlegroups.com] On Behalf Of Lorenzo Franceschini
Sent: Sunday, November 28, 2010 5:49 AM
To: django-users@googlegroups.com
Subject: Django book

I'm new on this group, so first of all... Hi to everybody!

I'm a web developer, and I need to approach Django for a software 
project, so I would like to ask you an advice about the best book to 
read (in your opinion) in order to learn using this framework, given
that:

* I already have some experience on web applications' development with 
PHP MVC frameworks like Drupal;
* I have some experience of Python (non-web) programming;
* I'd prefer printed books.

Thanks in advance for any answer.

-- 
You received this message because you are subscribed to the Google
Groups "Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



If logged in show X, if not Y

2010-11-28 Thread robos85
I managed to make register and login on my site. Now I want to divide
my template to parts for loggen and not logged user.
What is the best way to check and display template parts for this? For
example if user is not logged in: show login form but if he is logged
in - in the same place show him his avatar.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How to join a search on user and user profile

2010-11-28 Thread Rogério Carrasqueira
Sorry for botter you John. I found my information:

search_fields = ['foreign_key__related_fieldname']

http://docs.djangoproject.com/en/dev/ref/contrib/admin/

Thanks so much!

Rogério Carrasqueira

---
e-mail: rogerio.carrasque...@gmail.com
skype: rgcarrasqueira
MSN: rcarrasque...@hotmail.com
ICQ: 50525616
Tel.: (11) 7805-0074



Em 28 de novembro de 2010 20:03, Rogério Carrasqueira <
rogerio.carrasque...@gmail.com> escreveu:

> Yes, I would like to search on admin using the search_fields atribbute at
> admin.py.
>
> Thanks
>
> Rogério Carrasqueira
>
> ---
> e-mail: rogerio.carrasque...@gmail.com
> skype: rgcarrasqueira
> MSN: rcarrasque...@hotmail.com
>
> ICQ: 50525616
> Tel.: (11) 7805-0074
>
>
>
> Em 28 de novembro de 2010 19:59, John B  escreveu:
>
> Hi Rogério,
>>
>> I think I have solved your problem in the past. I'll have a look and
>> email you some code.
>>
>> Do you mean that you would like user fields to appear in the
>> UserProfile admin section? And you'd like to search/filter by these
>> User fields as well as the UserProfile fields?
>>
>> Cheers,
>>
>> John
>>
>>
>> On Nov 29, 8:02 am, Rogério Carrasqueira
>>  wrote:
>> > Some one can help?
>> > Rogério Carrasqueira
>> >
>> > ---
>> > e-mail: rogerio.carrasque...@gmail.com
>> > skype: rgcarrasqueira
>> > MSN: rcarrasque...@hotmail.com
>> > ICQ:50525616
>> > Tel.:(11) 7805-0074
>> >
>> > Em 22 de novembro de 2010 15:47, Rogério Carrasqueira <
>> > rogerio.carrasque...@gmail.com> escreveu:
>> >
>> >
>> >
>> > > Thanks Chris,
>> >
>> > > But I would like to use on admin, using the search_fields
>> >
>> > > Cheers
>> >
>> > > Rogério Carrasqueira
>> >
>> > > ---
>> > > e-mail: rogerio.carrasque...@gmail.com
>> > > skype: rgcarrasqueira
>> > > MSN: rcarrasque...@hotmail.com
>> >
>> > > ICQ: 50525616
>> > > Tel.: (11) 7805-0074
>> >
>> > > 2010/11/22 Chris Lawlor 
>> >
>> > > You should be able to do something like:
>> >
>> > >> UserProfile.objects.filter(gender='female',
>> > >> user__email='some...@mail.com')
>> >
>> > >> Note the double underscore notation, which let's you access
>> attributes
>> > >> of the related model. This example assumes that UserProfile has a FK
>> > >> field to User which is named 'user'.
>> >
>> > >> On Nov 21, 10:36 pm, Rogério Carrasqueira
>> > >>  wrote:
>> > >> > Hello Folks!
>> >
>> > >> > I'm working on my system that has 2 classes to work with user
>> managemet:
>> > >> > User and UserProfile, and I would like to make on admin an unified
>> > >> search.
>> > >> > For example I would like to find a user by e-mail at User class and
>> all
>> > >> User
>> > >> > that is female or something like that. So, Is there anyway to work
>> on
>> > >> this
>> > >> > direction?
>> >
>> > >> > Thanks
>> >
>> > >> > Rogério Carrasqueira
>> >
>> > >> > ---
>> > >> > e-mail: rogerio.carrasque...@gmail.com
>> > >> > skype: rgcarrasqueira
>> > >> > MSN: rcarrasque...@hotmail.com
>> > >> > ICQ: 50525616
>> > >> > Tel.:(11) 7805-0074
>> >
>> > >> --
>> > >> You received this message because you are subscribed to the Google
>> Groups
>> > >> "Django users" group.
>> > >> To post to this group, send email to django-us...@googlegroups.com.
>> > >> To unsubscribe from this group, send email to
>> > >> django-users+unsubscr...@googlegroups.com
>> 
>> >
>> > >> .
>> > >> For more options, visit this group at
>> > >>http://groups.google.com/group/django-users?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How to join a search on user and user profile

2010-11-28 Thread Rogério Carrasqueira
Some one can help?
Rogério Carrasqueira

---
e-mail: rogerio.carrasque...@gmail.com
skype: rgcarrasqueira
MSN: rcarrasque...@hotmail.com
ICQ: 50525616
Tel.: (11) 7805-0074



Em 22 de novembro de 2010 15:47, Rogério Carrasqueira <
rogerio.carrasque...@gmail.com> escreveu:

> Thanks Chris,
>
> But I would like to use on admin, using the search_fields
>
> Cheers
>
> Rogério Carrasqueira
>
> ---
> e-mail: rogerio.carrasque...@gmail.com
> skype: rgcarrasqueira
> MSN: rcarrasque...@hotmail.com
>
> ICQ: 50525616
> Tel.: (11) 7805-0074
>
>
>
> 2010/11/22 Chris Lawlor 
>
> You should be able to do something like:
>>
>> UserProfile.objects.filter(gender='female',
>> user__email='some...@mail.com')
>>
>> Note the double underscore notation, which let's you access attributes
>> of the related model. This example assumes that UserProfile has a FK
>> field to User which is named 'user'.
>>
>> On Nov 21, 10:36 pm, Rogério Carrasqueira
>>  wrote:
>> > Hello Folks!
>> >
>> > I'm working on my system that has 2 classes to work with user managemet:
>> > User and UserProfile, and I would like to make on admin an unified
>> search.
>> > For example I would like to find a user by e-mail at User class and all
>> User
>> > that is female or something like that. So, Is there anyway to work on
>> this
>> > direction?
>> >
>> > Thanks
>> >
>> > Rogério Carrasqueira
>> >
>> > ---
>> > e-mail: rogerio.carrasque...@gmail.com
>> > skype: rgcarrasqueira
>> > MSN: rcarrasque...@hotmail.com
>> > ICQ: 50525616
>> > Tel.:(11) 7805-0074
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-us...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: newbie: concept question

2010-11-28 Thread Charlietuna
Thanks for your help. I'll look into your suggestions.

Steve

On Nov 26, 5:08 pm, Łukasz Rekucki  wrote:
> On 26 November 2010 21:09, Charlietuna  wrote:
>
> > Hi all,
>
> > I looked for FAQ, but I couldn't find any. Here's my question. I've
> > been working through the tutorials. I've taken a community college
> > class on Python. So, I have some background there.
> > I've gotten Django installed and working. So far, I've used sqlite3.
>
> > Here's the question:  If you have an MySql database that is already
> > establised with data, etc,
> > how do you get Django to set up the abstraction of the db, so that you
> > can access the data.
>
> > I've worked with the tutorials where you use Django to create the
> > database. You use syncdb command to setup the "abstraction" of the
> > data. How do you do it the other direction?
>
> If you have an existing schema in your database, you can use
> django-admin.py inspectdb[1] to create models from it. It's not
> guaranteed to be 100% correct, so you may need to tweak the generated
> models. If you have a database table that you want to access, but
> don't won't Django to manage it's schema, you can use
> "managed=False"[2] on the model. Hope that helps :)
>
> [1]:http://docs.djangoproject.com/en/dev/ref/django-admin/#inspectdb
> [2]:http://docs.djangoproject.com/en/dev/ref/models/options/#managed
>
> --
> Łukasz Rekucki

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Key 'buscar' not found in "

2010-11-28 Thread bvcelari
Fixed on the worst way
adding each parameter on "my_url" var, and write it again on the
template, really ugly, but is not nice at all.
like this behind each filter:
  my_url += '=' + mi_form.cleaned_data['option1']


Thanks!

Regards
Bvcelari

On Nov 26, 4:49 pm, bvcelari  wrote:
> Thanks for the answers,
> @Nick, but the issue is if add the hidden value buscar, I must add all
> the parameters used in the search form (quite long), I'm looking for a
> lazy way doing it.
> @Rodrigo, same issue, if there is no search parameters, I can't apply
> my filters to the model, so I will not be able to retrieve the "page
> 2" related items, isn't it?
>
> Thank you very much for yours answers.
>
> Regards
> Bvcelari
>
> On Nov 26, 1:17 pm, "Rodrigo \"OreiA\" Chacon" 
> wrote:
>
> > The most secure way to retrieve a parameter is to use the get method
> > of the QueryDict.
>
> > So, instead of:
> > request.GET['buscar']
> > do:
> > request.GET.get('buscar', 'default_value')
>
> > Or check if the key exists in the QueryDict instance before trying to
> > retrieve it, with:
> > if 'buscar' in request.GET:
> >    buscar = request.GET['buscar']
>
> > ;-)
>
> > -- Rodrigo Chacon
>
> > On Nov 25, 12:42 pm, Nick Arnett  wrote:
>
> > > On Thu, Nov 25, 2010 at 6:35 AM, bvcelari  wrote:
> > > > Hy,
> > > > I'm trying to deploy my first django app, and I'm trying to use
> > > > pagination , I 'm using Django 1.2
> > > > I'm using a simple view with form, and with the request show the
> > > > results paginated. when I try to go to next page
> > > > the message appears:
> > > > "Key 'buscar' not found in "
> > > > buscar is a hidden value used for check if the request comes from the
> > > > search form.
> > > > I think this message comes from the "request" URL is not properly
> > > > generated in fact my link targets to
> > > > "http://localhost:8000/search/?page=2;
> > > > instead of something like this:
> > > > "http://localhost:8000/search/?option_value1=7_value2=3=2;
> > > > There is any way to maintain the searchred url and indicate wich is
> > > > the next page?
>
> > > You need to pass that variable to the template, then add it to the page it
> > > as a hidden input.
>
> > > For example:
>
> > > 
>
> > > Nick
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django book

2010-11-28 Thread Michael Sprayberry
The Definite Guide to Django is good, but I liked Beginning Django E-Commerce 
that really nailed things down for me.

--- On Sun, 11/28/10, Lorenzo Franceschini  
wrote:


From: Lorenzo Franceschini 
Subject: Django book
To: django-users@googlegroups.com
Date: Sunday, November 28, 2010, 5:48 AM


I'm new on this group, so first of all... Hi to everybody!

I'm a web developer, and I need to approach Django for a software project, so I 
would like to ask you an advice about the best book to read (in your opinion) 
in order to learn using this framework, given that:

* I already have some experience on web applications' development with PHP MVC 
frameworks like Drupal;
* I have some experience of Python (non-web) programming;
* I'd prefer printed books.

Thanks in advance for any answer.

-- You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.




  

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Add Content from a Custom View to the Django Admin Change Form

2010-11-28 Thread ringemup

You can either create a custom widget and
ModelAdmin.formfield_overrides [1] or (if you need to customize the
data processing as well as the display, create a custom form and use
ModelAdmin.form [2].

[1] 
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.formfield_overrides
[2] 
http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.form

On Nov 28, 10:10 am, jough  wrote:
> I'd like to add a derived field to a default ModelAdmin.fieldsets like
> I would by specifying a method and adding it to the
> ModelAdmin.list_display property, but there doesn't seem to be an easy
> way to do that (if there is ANY way to do that).
>
> The default Django Admin list view seems to have a lot more options
> than the change form view does.
>
> Let's say I have two fields for a location: latitude and longitude,
> and instead of displaying them on a change form I want to display a
> Google Maps Static Map image instead - I already have a method that
> will return the src url for the image - I just need a way to add that
> image to the model change form instead of showing those two fields.
>
> The documentation says you can add custom views to the admin forms,
> but provides no guidance or examples, and I really just want to add a
> derived field to a single model, not every instance of the change form
> view.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django book

2010-11-28 Thread Simone Dalla
2010/11/28 Lorenzo Franceschini 

> I'm new on this group, so first of all... Hi to everybody!
>
> I'm a web developer, and I need to approach Django for a software project,
> so I would like to ask you an advice about the best book to read (in your
> opinion) in order to learn using this framework, given that:
>
> * I already have some experience on web applications' development with PHP
> MVC frameworks like Drupal;
> * I have some experience of Python (non-web) programming;
> * I'd prefer printed books.
>
> Thanks in advance for any answer.


Sviluppare applicazioni web con Djangodi: Marco Beri



-- 
Simo

- Registered Linux User #395060

- Software is like sex, it is better when it is free  --> Linus B. Torvalds

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django book

2010-11-28 Thread Matthias Runge
Djangobook is available as printed edition from apress, as well as "practical 
django projects". The latter, I think, aims to more advanced django 
programmers. "The definitive guide to django" was a good starting point for me. 
I hope, this helps for you, 
Matthias



"Reeti Pal"  schrieb:

>i gues there are no printed books available.
>www.djangobook.com
>
>http://docs.djangoproject.com/en/1.2/contents/
>
>are two sites from where you can learn
>
>reeti
>
>-- 
>You received this message because you are subscribed to the Google
>Groups "Django users" group.
>To post to this group, send email to django-us...@googlegroups.com.
>To unsubscribe from this group, send email to
>django-users+unsubscr...@googlegroups.com.
>For more options, visit this group at
>http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django on a hosting service

2010-11-28 Thread Todd Wilson
In response to my question about deploying Django on a shared hosting
service that doesn't seem to have the necessary Apache modules
installed, ...

Daniel Roseman wrote, on 11/28/2010 02:10 AM:
> I've never tried this, but if I understand the documentation here
> correctly:
> http://docs.djangoproject.com/en/1.2/howto/deployment/fastcgi/#running-django-on-a-shared-hosting-provider-with-apache
> you shouldn't need anything in particular. It looks like it's possible
> just to install flup locally as part of your Django install, and
> editing .htaccess to get Apache to rewrite requests so that they go
> there.

I saw this, too, but worried that it would still require apache to have
mod_fastcgi installed.  Otherwise, how would apache know what to do with

   AddHandler fastcgi-script .fcgi

in the .htaccess file?  If it is indeed possible to do this, I would be
interested in hearing from someone who has done it.  How did you do the
local install of Django?  And how did you set up the paths and site
settings?

> Otherwise, if you do have to move, you could certainly do worse than
> Webfaction.

Yes, that was the Plan B that I have been looking into.  I'm pleased to
see that it coincides with your recommendation :-).

--Todd

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



View getting called twice for each GET

2010-11-28 Thread Roy Smith
I've been playing around with django, building a toy app just to get
the feel of it.  I've been going nuts trying to figure out why my
index method has been getting called in all sort of places I didn't
expect.  I finally figured it out and thought I would share this with
the group (hopefully to prevent other django newbies from making the
same mistake).

I had a catch-all url defined:

urlpatterns = patterns('',
(r'^db/query/mn_id/', 'db.views.query_nm_id'),
(r'^db', 'db.views.index'),
(r'', 'db.views.index'),
)

I was seeing index() being called twice when I did a GET on "/db", and
if I did a GET on "/db/query/mn_id", I'd see query_mn_id() get called,
followed by a call to index().  It turns out the second GET in both
cases was my browser (Chrome on OSX) asking for "/favicon"!  Duh.

The clue that set me on the right path was that if I reloaded the page
with the "Reload this page" button, I got the behavior described
above, but if I navigated my history with the back and forward arrows,
I didn't get the extra call to index().I little sleuthing with
tcpdump showed what was going on, and logging request.get_full_path()
in each view method verified this.

What's really weird is that the /favicon GET isn't logged by
development server (python manage.py runserver).  For example,
runserver prints just:

[28/Nov/2010 09:36:57] "GET /db/query/ HTTP/1.1" 200 5

but I see in my application log:

DEBUG:root:/db/query/
DEBUG:root:/favicon.ico

Why don't both requests get printed?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django book

2010-11-28 Thread Reeti Pal
i gues there are no printed books available.
www.djangobook.com

http://docs.djangoproject.com/en/1.2/contents/

are two sites from where you can learn

reeti

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Splitting date and time from Models

2010-11-28 Thread beginner
Hi all,

Suppose I have this model:
class Job(models.Model):
job_id = models.AutoField(primary_key=True)
job_title = models.CharField(max_length=50, verbose_name =
"Title")
job_desc = models.CharField(max_length=500, verbose_name =
"Description")
active_datetime_fr = models.DateTimeField('time')
active_datetime_to = models.DateTimeField('time')

def editDatefr(self):
return self.active_datetime_fr.date().strftime(DATE_FORMAT)

def editDateto(self):
return self.active_datetime_to.date().strftime(DATE_FORMAT)

def editTimefr(self):
return self.active_datetime_fr.time().strftime(TIME_FORMAT)

def editTimeto(self):
return self.active_datetime_to.time().strftime(TIME_FORMAT)

how do I split active_datetime_fr wherein I need to have an input of
separate date and time
example:
   Active Date From:
  Date:   Time:

Thanks in advance,
Cheers

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Django book

2010-11-28 Thread Lorenzo Franceschini

I'm new on this group, so first of all... Hi to everybody!

I'm a web developer, and I need to approach Django for a software 
project, so I would like to ask you an advice about the best book to 
read (in your opinion) in order to learn using this framework, given that:


* I already have some experience on web applications' development with 
PHP MVC frameworks like Drupal;

* I have some experience of Python (non-web) programming;
* I'd prefer printed books.

Thanks in advance for any answer.

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Add Content from a Custom View to the Django Admin Change Form

2010-11-28 Thread jough
I'd like to add a derived field to a default ModelAdmin.fieldsets like
I would by specifying a method and adding it to the
ModelAdmin.list_display property, but there doesn't seem to be an easy
way to do that (if there is ANY way to do that).

The default Django Admin list view seems to have a lot more options
than the change form view does.

Let's say I have two fields for a location: latitude and longitude,
and instead of displaying them on a change form I want to display a
Google Maps Static Map image instead - I already have a method that
will return the src url for the image - I just need a way to add that
image to the model change form instead of showing those two fields.

The documentation says you can add custom views to the admin forms,
but provides no guidance or examples, and I really just want to add a
derived field to a single model, not every instance of the change form
view.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Splitting date and time from Models

2010-11-28 Thread djangobeginner
Hi,
suppose I have the models.py:

SHORT_DATE_FORMAT = "%d - %b - %y"
DATE_FORMAT= "%Y-%m-%d"
TIME_FORMAT= "%H:%M"

class Job(models.Model):
job_id = models.AutoField(primary_key=True)
job_title = models.CharField(max_length=50, verbose_name =
"Title")
job_desc = models.CharField(max_length=500, verbose_name =
"Description")
active_datetime_fr = models.DateTimeField()
active_datetime_to = models.DateTimeField()

def __unicode__(self):
return (self.job_title)
def From(self):
return 
self.active_datetime_fr.date().strftime(SHORT_DATE_FORMAT)
def To(self):
return
self.active_datetime_to.date().strftime(SHORT_DATE_FORMAT)
def editDatefr(self):
return self.active_datetime_fr.date().strftime(DATE_FORMAT)
def editDateto(self):
return self.active_datetime_to.date().strftime(DATE_FORMAT)
def editTimefr(self):
return self.active_datetime_fr.time().strftime(TIME_FORMAT)
def editTimeto(self):
return self.active_datetime_to.time().strftime(TIME_FORMAT)

how do I spit the active_datetime_fr model field into two possible
inputs, example:
Active Date From:
   Date: (Date Input) Time: (Time Input)

Thanks in advance
Cheers,
Marge

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Recommended Django development companies

2010-11-28 Thread Venkatraman S
I am sorry that my previous mail ended up in the group.
But nevertheless, you can refer to
http://code.djangoproject.com/wiki/DevelopersForHire for
companies/developers.
Can also use http://code.djangoproject.com/wiki/DjangoResources for any
further info.

On Sun, Nov 28, 2010 at 6:12 PM, Kyle  wrote:

> Venkat, I'm not quite in the market for consultants.  I'm looking for
> a pre-existing team with enterprise client experience based in the US.
>
> Sincerely, Kyle
>
>
> On Nov 28, 7:09 am, Venkatraman S  wrote:
> > Hi Kyle,
> >
> > I am a Django freelancer. Are you looking for consultants for any
> projects?
> >
> > regards,
> > Venkat
> >
> >
> >
> > On Sun, Nov 28, 2010 at 5:15 PM, Kyle  wrote:
> > > I'm looking for companies on-par with PivitolLabs (which is Rails
> > > focused) but that focus on python web stacks, particularly Django.
> > > Can anybody offer recommendations?  I'd greatly appreciate it!
> >
> > > -Kyle
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Django users" group.
> > > To post to this group, send email to django-us...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > django-users+unsubscr...@googlegroups.com
> 
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/django-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Recommended Django development companies

2010-11-28 Thread Kyle
Venkat, I'm not quite in the market for consultants.  I'm looking for
a pre-existing team with enterprise client experience based in the US.

Sincerely, Kyle


On Nov 28, 7:09 am, Venkatraman S  wrote:
> Hi Kyle,
>
> I am a Django freelancer. Are you looking for consultants for any projects?
>
> regards,
> Venkat
>
>
>
> On Sun, Nov 28, 2010 at 5:15 PM, Kyle  wrote:
> > I'm looking for companies on-par with PivitolLabs (which is Rails
> > focused) but that focus on python web stacks, particularly Django.
> > Can anybody offer recommendations?  I'd greatly appreciate it!
>
> > -Kyle
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-us...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com > groups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Recommended Django development companies

2010-11-28 Thread Venkatraman S
Hi Kyle,

I am a Django freelancer. Are you looking for consultants for any projects?

regards,
Venkat


On Sun, Nov 28, 2010 at 5:15 PM, Kyle  wrote:

> I'm looking for companies on-par with PivitolLabs (which is Rails
> focused) but that focus on python web stacks, particularly Django.
> Can anybody offer recommendations?  I'd greatly appreciate it!
>
> -Kyle
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Recommended Django development companies

2010-11-28 Thread Kyle
I'm looking for companies on-par with PivitolLabs (which is Rails
focused) but that focus on python web stacks, particularly Django.
Can anybody offer recommendations?  I'd greatly appreciate it!

-Kyle

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Django on a hosting service

2010-11-28 Thread Daniel Roseman
On Nov 28, 3:20 am, Todd Wilson  wrote:
> I'm helping some friends improve a portal website they have created
> using PHP, but which would be ideal for Django, in the sense that a lot
> of the work they've already done, and would like to do as they improve
> the site, would be easy to do in Django.  They have a hosting contract
> with Intermedia (http://www.intermedia.net/) and would very much like to
> keep it.  I've gotten ssh access to their server and went poking around
> a bit, and, although python is available on the server (version 2.5.2),
> there doesn't seem to be any support for WSGI, mod_python, FastCGI, or
> the other deployment options listed in the documentation (at least I
> didn't see them in /etc/apache2/mods-available/), and it doesn't look
> like they support other frameworks (Rails, Drupal, Zope) either.
>
> My question:  I've always set up my own servers and don't have any
> experience with web hosting;  is there a minimal sort of request that I
> could make to Intermedia that, if granted, would make it possible for me
> (and presumably others) to deploy a Django site using their service, or
> should I just try to convince my friends to find a different hosting
> service?  It seems like there would be many to choose from:
>
>    http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts
>
> Thanks,
>
> --Todd

I've never tried this, but if I understand the documentation here
correctly:
http://docs.djangoproject.com/en/1.2/howto/deployment/fastcgi/#running-django-on-a-shared-hosting-provider-with-apache
you shouldn't need anything in particular. It looks like it's possible
just to install flup locally as part of your Django install, and
editing .htaccess to get Apache to rewrite requests so that they go
there.

Otherwise, if you do have to move, you could certainly do worse than
Webfaction.
--
DR.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.