Re: Django Web Hosting Service

2007-11-26 Thread rp

Although more expensive ($34/mo), I found highspeedrails.com
to be excellent--you can also host multiple sites on one account.

As my webfaction sites grew, they didn't hold up the
way that highspeedrails.com did.  I eventually moved things
over there.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



fileField pdf validation

2006-12-23 Thread rp



Does anyone have a recommended way to validate PDF files which are
being uploaded?

I only plan on uploading PDFs through the admin but wanted to know a
more robust way than simply checking the extension.

   file_reference = models.FileField(upload_to='xxdirnamexx',
blank=True,validator_list =
[filenameEndsWith(choices=FILETYPES_FOR_UPLOAD),])

I have ReportLab installed but have only used it for creating PDFs--not
opening existing ones.

Would it be worth checking the file itself?  For example, checking for
"%PDF-1" as the first characters?

Thanks for your help,

raman


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



Re: Trying to Extend User - but system not writing to database.

2006-10-23 Thread rp


These posts are very helpful:

http://www.b-list.org/weblog/2006/06/06/django-tips-extending-user-model

http://www.b-list.org/weblog/2006/09/02/django-tips-user-registration

Both suggest using OneToOneField instead of ForeignKey:

  user = models.OneToOneField(User)

instead of:

  user = models.ForeignKey(User)

-raman


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: ANN: Chesspark - A django based online chess community.

2006-10-20 Thread rp

nice!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



new site, satellite internet, and the django admin

2006-10-13 Thread rp

here's a sporadic after work project motivated
by my cousin, she and her partner are avid poker players
travelling in an airstream trailer/using the django admin . . .

  http://www.thepokeratlas.com  (no links/connections to online poker)

e.g. of tournament data:

http://www.thepokeratlas.com/venue/connecticut/foxwoods-resort-casino/tournaments/thisweek/

still in "pre-beta" development (adding basic functions, dev/live
restart on same low-cost server, etc)

however, there was no way to get even this much venue/tournament
information together in w/o the django data models, admin, and this
user list:)

thanks,

raman


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: web stats, mod_python profiler

2006-10-01 Thread rp

Thanks, Malcolm


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: web stats, mod_python profiler

2006-10-01 Thread rp

Thanks, Malcom


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



web stats, mod_python profiler

2006-09-27 Thread rp

Does anyone have an example of using
the mod_python profiling support:

"django.core.handlers.profiler-hotshot"

It's mentioned on this page:
(http://code.djangoproject.com/wiki/ProfilingDjango)

Thanks!

Raman


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: multiple database, messy solution?

2006-09-19 Thread rp

Hi Gregor,

Thanks for the note.

I'm quite excited about trying it this out.

I'll post the results (I'm still a meeting away from finalizing the
server changes)


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



multiple database, messy solution?

2006-09-19 Thread rp

Hi,

I work for a company that has a retail website
with separate (1) staging and (2) live versions--separate
mysql databases and web apps.  We make changes
on staging, Q/A them, and move them live.  Changes
are mostly mysql data changes.

We're going to start using django for mysql changes
to the staging database and I was going to write
some python code to copy user specified
data from staging to live--which will mean raw SQL
statements.  Has anyone used django in this way
before?  Or have any ideas on how to access more
than one db with the current django version?

(Either way, django will be 1000% improvement over
our current methods:)

Thanks,

Raman


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Forms with error reporting

2006-09-12 Thread rp

You can use the manipulators described on this page:

http://www.djangoproject.com/documentation/forms/

Do a find on "if form.has_errors" to see a template example
containing general form errors as well as field specific
form errors.

Let me know if you need more info.

thanks,

raman


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: Set up problems ( webfaction )

2006-07-18 Thread rp

>Wound up just copying the admin media directories into my media
>directory. Pipe up if there's a better way ...

Instead of copying, you can use a symbolic link to the media files:

If the httpd.conf had:

   alias /media/ /home2/rp/webapps/django/media_files/media

the link would be similar to:

   ln -s ~/django/django/contrib/admin/media/
/home2/rp/webapps/django/media_files/media

(Thanks for your earlier questions regarding the media files, I used
the information last night)


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---



Re: "no module named admin", webfaction

2006-07-17 Thread rp


Harish Mallipeddi wrote:
> Hi,
>
> Did you enable Admin in the project settings file? You need to enable it
> before you can start using it. Read the Django documentation to find out
> more info on this.
>
> Cheers,
> Harish
>
> On 7/18/06, Raman Prasad <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi,
> >
> > I have an admin setup question (I think I'm missing a basic step)
> >
> > I have some basic django code running on my laptop (local)
> > which works fine but I'm having trouble moving it to a webfaction
> > account.
> >
> > I used the screencast, etc but I'm getting a "no module named admin"
> > error when trying
> > to show the admin screen.  http:// . . ./admin/
> >
> > I have the same error at the command line--the trace from the command
> > line is:
> >
> > Python 2.4 (#1, Jul 24 2005, 05:05:49)
> > >>> import django
> > >>> from django.conf.urls.defaults import *
> > >>> import django.contrib.admin.urls.admin
> > Traceback (most recent call last):
> >   File "", line 1, in ?
> > ImportError: No module named admin
> > >>>
> >
> > The trace from a webpage is:
> >
> > Traceback (most recent call last):
> > File
> > "/home2/prasad06511/lib/python2.4/django/core/handlers/base.py"
> > in get_response
> >   65. callback, callback_args, callback_kwargs = resolver.resolve
> > (path)
> > File
> > "/home2/prasad06511/lib/python2.4/django/core/urlresolvers.py"
> > in resolve
> >   147. sub_match = pattern.resolve(new_path)
> > File
> > "/home2/prasad06511/lib/python2.4/django/core/urlresolvers.py"
> > in resolve
> >   145. for pattern in self.urlconf_module.urlpatterns:
> > File
> > "/home2/prasad06511/lib/python2.4/django/core/urlresolvers.py"
> > in _get_urlconf_module
> >   163. self._urlconf_module = __import__(self.urlconf_name, '',
> > '',
> > [''])
> >
> >   ImportError at /admin/
> >   No module named admin
> >
> > Thanks for any help!
> >
> > -raman
> >
> > >
> >
>
>
> --
> Harish Mallipeddi
> http://poundbang.in/
>
> --=_Part_64290_28522370.1153189128453
> Content-Type: text/html; charset=ISO-8859-1
> X-Google-AttachSize: 3291
>
> Hi,Did you enable Admin in the project settings file? You need to 
> enable it before you can start using it. Read the Django documentation to 
> find out more info on this.Cheers,Harish class="gmail_quote">

Hi Harish,

Thanks for the note.  The admin was enabled in the setting file . . .
but I spotted another inconsistency and it's working fine.

thanks again,
-raman


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---