Re: Accessing my local backend

2023-03-12 Thread Donald KANTI
Hey you should start the Django server on 0.0.0.0 something like this python python manage.py runserver 0.0.0.0:8000 Then make sure the mobile and your server are in the same network On Sun, Mar 12, 2023, 6:33 PM Rafael J. Soteldo S. wrote: > Hi there: > > I'm being able to access my local

Lack of tutorials and explanations about channels

2021-11-10 Thread Dossou Mawussekuifan Gloria Donald KANTI
Why aren't there much tutorials and explanations about Channels and websocket integration in django over the internet ? Quite confusing. How can we get to know and understand it more if nobody wants to explain it. I am new to python and drf, wanna implement some realtime features in my app but

Django

2020-08-05 Thread Donald Bozeman
I implemented a calendar similar https://uggedal.com/journal/creating-a-flexible-monthly-calendar-in-django/ with a dropdown to filter events on the day of the month. I've got it to where I'm doing a query instead of a model to return the events instead of workouts in the example to show the e

Re: wxMailServer: GUI tool to help you with testing Django e-mails

2013-12-19 Thread Donald Casson
Should be gui driven approach. :) On 20 Dec 2013, at 12:48 pm, Donald Casson wrote: > Hi, > > While not as flash as a the guy driven approach. You can use a simple python > one liner to setup a test mail server that will display emails to the > console. > > sudo

Re: wxMailServer: GUI tool to help you with testing Django e-mails

2013-12-19 Thread Donald Casson
Hi, While not as flash as a the guy driven approach. You can use a simple python one liner to setup a test mail server that will display emails to the console. sudo python -m smtpd -n -c DebuggingServer localhost:25 Cheers Don On 20 Dec 2013, at 6:57 am, Arnold Krille wrote: > Hi > > On

view_func.__module__ suddenly broken

2013-02-26 Thread Greg Donald
de python-problem-report 2.0.1-0ubuntu15.1 2.0.1-0ubuntu17.1 2013-01-25 03:41:06 upgrade python-apport 2.0.1-0ubuntu15.1 2.0.1-0ubuntu17.1 I also tried rearranging my middleware list, didn't help. Any idea what else might be causing this issue? Thanks. -- Greg Donald -- You re

Re: last changed by User

2012-09-27 Thread Greg Donald
On Thu, Sep 27, 2012 at 10:28 PM, Lachlan Musicman wrote: > I wanted to display the user that last changed a model instance. I use django-reversion for this: https://github.com/etianen/django-reversion -- Greg Donald -- You received this message because you are subscribed to the Goo

django 1.4 memory issues

2012-06-12 Thread Greg Donald
igured it couldn't hurt. So everything is running fine again, but something changed in Django 1.4 that causes my same project code to leak memory. I'd sure like to figure it out. Thanks. -- Greg Donald -- You received this message because you are subscribed to the Google Groups &quo

Re: models and NULL in postgres

2012-03-15 Thread Donald Stufft
Django uses an empty string instead of a NULL for an empty value for CharField and Charfield subclasses On Thursday, March 15, 2012 at 10:18 PM, hack wrote: > Something is a little strange with my database. My models have fields where > the value is set as blank=True to allow null values. M

Re: Why can't forms access the request object?

2012-03-11 Thread Donald Stufft
On Sunday, March 11, 2012 at 12:43 PM, shacker wrote: > On Sunday, March 11, 2012 6:24:30 AM UTC-7, skhohlov wrote: > > Of course form does not have access to the object. > > > skholov - Thanks, but you misunderstand my question. Again, I know that forms > don't have access to request, and aga

Re: Why can't forms access the request object?

2012-03-11 Thread Donald Stufft
Forms aren't only usable from inside a view. On Sunday, March 11, 2012 at 4:32 AM, shacker wrote: > I recently needed to access request.user in a form, and found that I > couldn't. Found many articles describing ways to accomplish this, such as > James Bennett's [1]. > > I did get it working

Re: Homakov-esque Django Vulnerabilities

2012-03-06 Thread Donald Stufft
On Tuesday, March 6, 2012 at 7:11 PM, Russell Keith-Magee wrote: > > On 07/03/2012, at 7:55 AM, Joey Espinosa wrote: > > > I agree with you on some of your points. Security can be improved if people > > would email the support team INSTEAD OF filing a bug report (this goes for > > any project),

Re: I need a package.

2012-02-03 Thread Donald Stufft
https://github.com/eldarion/user_messages On Friday, February 3, 2012 at 3:16 AM, coded kid wrote: > Anyone knows about a django package that can be use by users to send > private messages to each other? -- You received this message because you are subscribed to the Google Groups "Django us

Re: Django vs. Ruby on Rails

2012-01-28 Thread Greg Donald
s on this > comparison. Rails seems risky to me. Django feels like a sure bet. Maybe I'm just old, but sometimes I get the feeling Rails is being built by some kids in someone's basement. -- Greg Donald -- You received this message because you are subscribed to the Google Group

Re: How can I go about this?

2012-01-22 Thread Donald Casson
This is a very open ended question. There are many different ways in which you could achieve the same thing. Just offering a suggestion here: I would take a read through the retwis docs, although it is php and redis it should give you enough of an understanding on how to implement some of th

Re: Social conference website?

2012-01-12 Thread Donald Stufft
There's https://github.com/pinax/symposion but i'm not sure what you mean by "social". On Thursday, January 12, 2012 at 1:18 PM, Alec Taylor wrote: > Good morning, > > I am building up a social-conference website in Django for a > university clubs' comedy-revue. > > I will open-source it und

Re: scheduling in future

2012-01-10 Thread Donald Casson
I would take a peek at celery and the eta function. It allows you to specify the task as specified in tasks.py with an eta to the run_asynchronous method. Hope this helps. Cheers Don On Jan 11, 2012 2:31 PM, "Mike Dewhirst" wrote: > What is the best way to schedule future events in Django? > >

Re: Directory layout for a large Django application (not project)

2012-01-10 Thread Donald Stufft
On Tuesday, January 10, 2012 at 1:13 PM, IgorS wrote: > First of all, thanks a lot to everyone who replied :-) > > Tom: > > As i mentioned, i am new to Django and could be missing big parts. > Please do not hate me too much for my naivete :-) > > The approach you suggested regarding the stati

Re: Logging into CSRF protected Django site using Curl?

2012-01-08 Thread Greg Donald
ted. Is this the only to login to a Django > site that uses CSRF protection? https://docs.djangoproject.com/en/1.3/ref/contrib/csrf/#exceptions I use this on views that my mobile apps post to. -- Greg Donald -- You received this message because you are subscribed to the Google Groups "

Re: Interface implementation in python

2012-01-04 Thread Donald Stufft
Why not use zone.interface On Wednesday, January 4, 2012 at 7:07 AM, huseyin yilmaz wrote: > Hi everybody, > > I want to implement interface functionality in python. I wrote > following sample code > > https://gist.github.com/1559689 > > Here I use an abc as an interface. > Couple of my models

Re: {% elif %} error

2011-12-27 Thread Donald Stufft
Or back port the elif tag (which may or may not be non trivial). On Wednesday, December 28, 2011 at 1:50 AM, Russell Keith-Magee wrote: > On Wed, Dec 28, 2011 at 2:44 PM, Tsung-Hsien (mailto:jasoniem9...@gmail.com)> wrote: > > Hi, > > I want to use {% elif %} > > my template: > >

Re: Which IDE should I use for Django?

2011-12-19 Thread Donald Casson
Eclipse, with the python plugins On Dec 19, 2011 8:36 PM, "Zhukov Pavel" wrote: > PyCharm? > > On Mon, Dec 19, 2011 at 2:34 PM, Alec Taylor > wrote: > > I'm looking for a Django IDE which incorporates the following features: > > - Syntax-highlighting > > - Projects (all code file of the project

Re: DoS susceptability via email logging

2011-12-08 Thread Donald Stufft
On Thursday, December 8, 2011 at 7:33 PM, Russell Keith-Magee wrote: > On Thu, Dec 8, 2011 at 8:42 PM, Sam Berry (mailto:samkbe...@googlemail.com)> wrote: > > Hello there, > > > > I am currently running a number of small sites using logging via email > > to notify me of 404s and server errors. Th

Re: filesystem path in settings.py

2011-12-08 Thread Donald Stufft
The static files app doesn't serve static files (except in development). What it's primary purpose is to take a list of "finders", and locate all of the static files from a variety of places, and collect them into one directory. This allows reusable apps to package static files within their apps

Re: Which Linux distro to use on EC2?

2011-11-20 Thread Greg Donald
tion: http://www.freebsd.org/commercial/isp.html -- Greg Donald -- 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 django-users

Re: Which Linux distro to use on EC2?

2011-11-15 Thread Greg Donald
yourself. Things will land in the same place, so dependency issues are usually extremely low. -- Greg Donald -- 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 u

Re: Caching at model class level

2011-11-03 Thread Donald Stufft
Normally this is cached using the Django caching framework, this lets you save it in memcache, redis, etc On Thursday, November 3, 2011 at 10:22 AM, Thomas Guettler wrote: > Hi, > > I try to reduce the number of db-queries in my app. > > There is a model which changes almost never. It is

Re: Long usernames in auth_user?

2011-10-26 Thread Donald Stufft
This is a known limitation and it's something that people _want_ to get fixed (but just merely increasing the length isn't helpful, because soon someone comes along with the new length + 1 and the same problem occurs). The issue is that the django.contrib.auth User model while providing a minimu

Re: Templates available to a cluster

2011-10-19 Thread Donald Stufft
the DB Template Loader too. I'm mainly concerned with this being a large > bottle neck for our front-facing pages so I'm not sure which path to choose. > Maybe some R&D is in order :) Thanks! > > On Wed, Oct 19, 2011 at 5:52 PM, Donald Stufft (mailto:donald.stu...@gmail

Re: Templates available to a cluster

2011-10-19 Thread Donald Stufft
The template system uses pluggable loaders that can locate a template based upon it's name. So using that you can store your template anywhere. There is already an app for storing templates in the db, you could easily make one to store it somewhere else as well. On Wednesday, October 19, 2011

Re: Getting into professional django development

2011-10-18 Thread Donald Stufft
+1 for Always Develop against a Release, and if you are forced to use a VCS checkout, at least use pip and pin your requirements to a specific point in the history for that VCS. On Tuesday, October 18, 2011 at 11:00 AM, Tom Evans wrote: > On Tue, Oct 18, 2011 at 3:47 PM, Paul Menzel (mailto:pm

Re: a django question about "python manage.py syncdb"

2011-10-14 Thread Donald Stufft
You need a __init__.py in your models.py. You also need to import all your models into that __init__.py. If I recall you'll also want to set class Meta: app_label = "the name of your package" Because the models directory will screw up Django's ability to auto figure it out. On Saturday

Re: Second coming of Java?

2011-10-13 Thread Donald Stufft
+1 for what Tom said. Django is perfectly capable at working at every level of the web. While it's true that once you start scaling at super high loads that you start having to do some lower level stuff to cope, the same is true of any application framework really. If your shop prefers Java th

Re: Second coming of Java?

2011-10-12 Thread Donald Stufft
I think it's a load of tripe. There's plenty ways to speed up Python. And it's fast enough. It's not about being the fastest, but about being fast enough to get the job done, and having an enjoyable experience writing your web application. Java is not that thing. On Wednesday, October 12, 2

Re: Ajax replacement in django

2011-10-12 Thread Donald Stufft
I don't think there's any reason to insult anyone, let's be civil. On Wednesday, October 12, 2011 at 10:50 AM, Chandrakant Kumar wrote: > > You are another 'garbage' product of our country's shitty education system. > > On 10/12/2011 08:09 PM, lankesh87 wrote: > > Actually my project guide i

Re: How REST Access ?

2011-10-03 Thread Donald Stufft
TastyPie is also good and one that I prefer over Piston. On Monday, October 3, 2011 at 11:20 AM, Javier Guerra Giraldez wrote: > On Fri, Sep 30, 2011 at 10:23 PM, bino oetomo (mailto:b...@indoakses-online.com)> wrote: > > Dear All. > > > > Kindly please give me your enlightment to CRUD Djang

Re: Question about losing port number.

2011-09-26 Thread Donald Stufft
I think you might be on the wrong mailing list… There's no PHP around these parts ;) On Monday, September 26, 2011 at 3:30 PM, Chen Xu wrote: > I have a general question about PHP: > So basically I have a link, and I want the href to be absolute., so I do > 'https://' . $_SERVER['HTTP_HOST'

Re: Removing SECRET_KEY from settings.py

2011-09-16 Thread Donald Stufft
$ cat settings.py …. try: from local_settings import * except ImportError: pass $ cat local_settings.py …. SECRET_KEY = "blah" On Friday, September 16, 2011 at 8:54 PM, Tim Chase wrote: > Just returning to some Django work after a time away, I > (re)started an old project in 1.3 and h

Re: When is a good time to use db_index? Rule of thumb?

2011-09-15 Thread Donald Stufft
To expand, a better answer is when you have profiled your application and have shown a bottleneck, and have tested it with an index on that column and seen an improvement. db_index isn't free, it incurs a penalty on writes so you need to be careful when using them. On Friday, September 16,

Re: Class-based views or "Traditional" Views for Django 1.3?

2011-09-14 Thread Donald Stufft
dre Terra wrote: > OTOH, getting the hang of it can be hard with the current state of the docs > and given that they require a completely different mindset when coding views. > > > Cheers, > AT > > On Wed, Sep 14, 2011 at 10:35 AM, Donald Stufft (mailto:donald.stu...@gmail.

Re: Class-based views or "Traditional" Views for Django 1.3?

2011-09-14 Thread Donald Stufft
Class Based Views let you override and subclass views to modify their behavior, I find them to be very quick once you get the hang of them. On Wednesday, September 14, 2011 at 9:33 AM, Kurtis wrote: > Hey Guys, > > I'm relatively new to Django 1.3. As others have noticed, there is > less doc

Re: two independent Django sites, one user - share User objects

2011-09-12 Thread Donald Stufft
You could pick one site to be your canonical site, and add it as a second db to the first, and then use a custom authentication backend to auth against that site, then create a local user with the same password hash. On Monday, September 12, 2011 at 7:38 AM, Markus Gattol wrote: > Say I have

Re: Streamlining DJango Deployment — Novel idea from the world of CMSs

2011-09-08 Thread Donald Stufft
t; completely against your proposed concept, because you are attempting to take > away the *need to understand* how things work. > > Cal > > > On Thu, Sep 8, 2011 at 12:37 PM, Donald Stufft (mailto:donald.stu...@gmail.com)> wrote: > > This is a hard question. It would

Re: Streamlining DJango Deployment — Novel idea from the world of CMSs

2011-09-08 Thread Donald Stufft
This is a hard question. It would probably be nice to offer a self contained deployment that nginx/apache could just proxy too, maybe pick that as the default, and then add in writing a fcgi or wsgi file for use with regular hosting. On Thursday, September 8, 2011 at 7:34 AM, graeme wrote: > H

Re: Streamlining DJango Deployment — Novel idea from the world of CMSs

2011-09-07 Thread Donald Stufft
We talked a little on IRC, but just thought i'd reiterate my thoughts. This should not be in core, and I don't believe it ever has a chance of being in core. That being said, I think that an external "installer" app like this wouldn't be the worst thing in the world, and could help to make a

Re: sorl thumbnail

2011-06-15 Thread Greg Donald
So what does one use for thumbnails when sorl thumbnail works great in development but fails on two different production servers? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.

Re: sorl thumbnail

2011-06-11 Thread Greg Donald
and my uploaded image is not corrupt. The only thing left is permissions, and they are as open as they can be. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send emai

Re: sorl thumbnail

2011-06-10 Thread Greg Donald
ImageField. It is, it's a sorl thumbnail ImageField to be exact. -- Greg Donald destiney.com | gregdonald.com -- 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.c

Re: sorl thumbnail

2011-06-10 Thread Greg Donald
On Fri, Jun 10, 2011 at 11:59 AM, Greg Donald wrote: >  File "/usr/local/lib/python2.6/dist-packages/PIL/ImageFile.py", line > 52, in raise_ioerror >   raise IOError(message + " when reading image file") > > IOError: broken data stream when reading image file

sorl thumbnail

2011-06-10 Thread Greg Donald
raise IOError(message + " when reading image file") IOError: broken data stream when reading image file The error isn't very helpful since the file is there and is readable by all. I'm not sure how to get a more explicit error, or what to try and fix. Stuck. Thanks, --

Re: ImageField issue

2011-06-08 Thread Greg Donald
    f = open('/tmp/hello.world') >     myfile = File(f) >     et.image.save( image_name, myfile ) > > https://docs.djangoproject.com/en/1.3/ref/models/fields/#django.db.models.FieldFile.save I see now.. got it working. Thanks. -- Greg Donald destiney.com | gregdonald.com -- You

ImageField issue

2011-06-08 Thread Greg Donald
ot sure why image_file.read() is returning a str, it spews a bunch of what appears to be image data when I debug it. Any idea what I'm doing wrong? Thanks. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "

Re: boolean default

2011-05-17 Thread Greg Donald
expected, but that's not what I get. See the code I posted. My Form Model complains that my BooleanField type is missing when I do not supply it explicitly. Further, if I exclude it, to make my Form Model happy, I get a DatabaseError exception since the field in my database has no default set

Re: boolean default

2011-05-17 Thread Greg Donald
not provide a value at all when I created a new record. -- Greg Donald destiney.com | gregdonald.com -- 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

boolean default

2011-05-15 Thread Greg Donald
How do I set a default for a BooleanField() ? I tried foo = models.BooleanField( default=False ) but that only produces foo boolean NOT NULL, Docs do not mention how as far as I can tell http://docs.djangoproject.com/en/1.3/ref/models/fields/#booleanfield -- Greg Donald destiney.com

Re: existing data failing validation

2011-05-15 Thread Greg Donald
se the company no longer exists when I post the form, even though it's right there in the post data. This is so overly complicated. What is the point of having a model form if you're just going to exclude important things from it to cheat to get by an edit form? -- Greg Donald destin

Re: existing data failing validation

2011-05-15 Thread Greg Donald
hen I don't include previously set data? ipdb> form.errors {'company': [u'This field is required.']} -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

Re: existing data failing validation

2011-05-14 Thread Greg Donald
arField( max_length=32 ) class ContactForm( ModelForm ): class Meta: model = Contact name = CharField( required=True ) The fields failing validation are ones I'm not re-submitting back in my edit form. Am I supposed to list company again in my ContactForm class? Guess

existing data failing validation

2011-05-14 Thread Greg Donald
, I get errors about not providing fields already set. form = ContactForm( request.POST, instance=contact ) form.errors says I need to provide a company, but it is already saved in the database. What am I missing here? -- Greg Donald destiney.com | gregdonald.com -- You received this mes

Re: form new versus edit

2011-05-14 Thread Greg Donald
getting my name field HTML rendered, I naturally tried {{ form.id }}, but it doesn't seem to know about Django conventions I don't guess. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Django user

Re: form new versus edit

2011-05-14 Thread Greg Donald
=TextInput( attrs={ 'class':'myclass' } ) ) in a single place for all my CharField types? -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send ema

Re: form new versus edit

2011-05-14 Thread Greg Donald
into the > project, and if something's there it's probably for a really good reason. > When you choose not to follow a Django convention and run into a problem > then don't be surprised. I didn't realize trying to access my own form data directly was unconv

Re: form new versus edit

2011-05-14 Thread Greg Donald
e {{ form.name }} then I have to set CSS attributes for every field using: name = forms.CharField( widget=forms.TextInput(attrs={'class':'special'})) How is that better than just writing a simple field myself? -- Greg Donald destiney.com | gregdonald.com -- You received

Re: form new versus edit

2011-05-14 Thread Greg Donald
On Sat, May 14, 2011 at 4:08 PM, Shawn Milochik wrote: > On 05/14/2011 05:04 PM, Greg Donald wrote: >> >> I have a "new" contact form.  If I post it, and it has error, I found >> (while debugging, not documented that I can find) that I can redraw >> the sub

form new versus edit

2011-05-14 Thread Greg Donald
.name.data throws an exception. What am I doing wrong? I'd really like to just have my one _form.html template included in both my add.html and my edit.html templates. How can I do that when the form doesn't even work the same between new versus editing? Thanks. -- Greg Donald destine

Re: using django on a server?

2011-05-09 Thread Greg Donald
On Mon, May 9, 2011 at 11:02 PM, Eric Chamberlain wrote: > We use Amazon Web Services and can change our setup on an hourly basis. Do they support DNS yet, or are you still responsible for that yourself? -- Greg Donald destiney.com | gregdonald.com -- You received this message because

Re: using django on a server?

2011-05-09 Thread Greg Donald
all what you want. The question of "Does my host support that?" becomes irrelevant. You can support whatever because you can install whatever. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to the Google Groups "Django u

Re: using django on a server?

2011-05-09 Thread Greg Donald
nything nowadays. -- Greg Donald destiney.com | gregdonald.com -- 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 django-users+un

Re: Encrpting urls to hide PKs

2011-05-09 Thread Greg Donald
n identifier of that data. Yeah, sounds exactly like a session-based cookie. -- Greg Donald destiney.com | gregdonald.com -- 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@googlegrou

[JOB] Front-End Python/Django Web Developer role in the Bay Area

2010-08-06 Thread Donald James
ease feel free to respond to me directly (digitalartistmgmt [at] gmail [dot] com), and I’ll answer any questions that you may have. Thanks, everyone. -Donald -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Front-End Python/Django Web Developer role in the Bay Area

2010-08-06 Thread Donald James
unds interesting to you, please feel free to respond to me directly, and I’ll answer any questions that you may have. Thanks, everyone. -Donald -- ** *Donald James* *Recruiter* *Office:* 310-414-6808 *Fax:* 310-414-6804 www.digitalartistmanagement.com www.linkedin.com/in/dkjames www.twitter

FRIENDS YESTERDAY I MAKE $2,000BY TAKE SIMPLE ONLINE SURVEYS. YOU

2008-03-29 Thread donald
FRIENDS YESTERDAY I MAKE $2,000BY TAKE SIMPLE ONLINE SURVEYS. YOU JUST NEED TO JOIN THEIR COMMUNITY AND THEY GIVES YOU PLENTY OF SURVEYS.YOU MAY CHOOSE BEST RATED SURVEY FROM THE LIST.EACH SURVEYRATE BEGINS WITH $200. THE LINK IS BELOW http://jeevaraj.MYSURVEYPR.hop.clickbank.net YOUR LIFE SHO

Re: Setting up Django on GoDaddy Deluxe Shared Hosting

2007-12-28 Thread Donald H
x hosting accounts. We do not allow, however, the addition of a custom FastCGI handler in our shared hosting accounts." Does this mean I am definitively out of luck? Thanks again for your help. On Dec 28, 6:17 pm, Donald H <[EMAIL PROTECTED]> wrote: > Thanks for the quick and thoro

Re: Setting up Django on GoDaddy Deluxe Shared Hosting

2007-12-28 Thread Donald H
Thanks for the quick and thorough response, Tim! I'll find out if the FastCGI they advertise as being available for Ruby on Rails could also be made accessible to Python by following the Shared Hosting instructions at the bottom of http://www.djangoproject.com/documentation/fastcgi/. On Dec

Setting up Django on GoDaddy Deluxe Shared Hosting

2007-12-28 Thread Donald H
ent host, but I already have several other domains hosted at godaddy and would prefer not to have to change hosts to use Django. Thanks for any direction you guys can offer (even if it's to tell me it's not possible). Donald H. --~--~-~--~~~---~--~~ You

Re: form name from the POST request

2007-09-10 Thread Greg Donald
#x27; % request.POST -- Greg Donald Cyberfusion Consulting http://cyberfusionconsulting.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-u

Re: Performance for django for years

2007-09-09 Thread Greg Donald
or performance) to code as: > > class A(models.Model): > year = models.CharField(maxlength=4) > [...] > > or > class A(models.Model): > year = models.PossitiveIntegerField() > [...] > > what it's the best for database performance (I use mysql) For performance

Re: Integrating Django with existing site.

2007-09-04 Thread Greg Donald
capture incoming URLs that aren't yet in your new Django app before they get to it, sending them to the legacy app instead. http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html http://howto.kryl.info/mod_rewrite/ -- Greg Donald Cyberfusion Consulting http://cyberfusionconsulting.com/ --~

Re: Does the django admin support the Group?

2007-09-03 Thread Greg Donald
On Tue, Sep 04, 2007 at 04:56:47AM -, Bear wrote: > For instance, Group A can access all the tables but Group B just > access some of them? http://www.djangobook.com/en/beta/chapter06/ There's a small section "Users, groups, and permissions", about halfway down the pa

send_mail() doesn't handle extra headers?

2007-08-31 Thread Greg Donald
r is there a better way? Thanks, -- Greg Donald http://destiney.com/ --~--~-~--~~~---~--~~ 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

Re: dynamic filtering in a QuerySet

2007-08-30 Thread Greg Donald
On 8/30/07, daev <[EMAIL PROTECTED]> wrote: > > widgets = widgets.filter( **filters ) When I try that I get the error: filter() keywords must be strings Does that have anything to do with the fact that they are unicode? filters: {u'LOB': u'B'} --

dynamic filtering in a QuerySet

2007-08-30 Thread Greg Donald
n as a named parameter. I've tried eval() and all sort of back tick and quoting combinations, nothing seems to work. Thanks, -- Greg Donald http://destiney.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

Re: mysql/pkg_resources problem

2007-08-16 Thread Greg Donald
On 8/16/07, Greg Donald <[EMAIL PROTECTED]> wrote: > I have a new Django setup I'm trying to finish up the install for. > I'm getting this error: > > Error loading MySQLdb module: No module named pkg_resources I figured it out. I built my MySQL from source but fo

mysql/pkg_resources problem

2007-08-16 Thread Greg Donald
elps any. I've tried rebuilding and install MySQL_python a couple times. I've rebuilt Python 2.5 from source a couple times. Any idea what else I might try? Thanks, -- Greg Donald http://destiney.com/ --~--~-~--~~~---~--~~ You received this message be

Re: The Django Book

2007-08-06 Thread Greg Donald
You get what you pay for. And pretty soon there will be a Django book you can pay for :) -- Greg Donald http://destiney.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

RE: noob problem with Unicode

2007-07-29 Thread Donald Spears
Yep that did it, gesh, I feel dumb :P Thanks, Paul -Original Message- From: django-users@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Parnell Springmeyer Sent: Sunday, July 29, 2007 12:41 PM To: django-users@googlegroups.com Subject: Re: noob problem with Unicode Make sure y

Re: Where did you put your homepage view?

2007-05-23 Thread Greg Donald
page view. -- Greg Donald http://destiney.com/ --~--~-~--~~~---~--~~ 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

Re: How well should I know Python before using Django?

2007-05-09 Thread Greg Donald
Debugging. When you get stuck, and you will get stuck, you need to know best way to get unstuck. Being able to interrogate your environment is debugging skill #1. -- Greg Donald http://destiney.com/ --~--~-~--~~~---~--~~ You received this message

Re: Upgrade from Python 2.4 to 2.5

2007-05-07 Thread Greg Donald
ibs while in verbose mode of running > ldconfig. You wanna put the libs path of your new python install in there, something like /usr/local/python2.5/lib or whatever yours is exactly. After that run ldconfig so your system knows to look there for shared libraries from now on. --

Re: Upgrade from Python 2.4 to 2.5

2007-05-07 Thread Greg Donald
our locate database is up to date. Run `updatedb` when in doubt. Some other things to check: Did you restart Apache? Are you compiling a new Python from source? If so did you add the Python libs path to your ld.so.config? Did you run ldconfig

Re: Upgrade from Python 2.4 to 2.5

2007-05-07 Thread Greg Donald
On 5/7/07, RollyF <[EMAIL PROTECTED]> wrote: > How do I configure Apache2 or mod_python to use Python 2.5? Adjust your paths so the place where you installed your new Python 2.5 is ahead of your old Python's path. -- Greg Donald http:

Re: Django IDE

2007-04-05 Thread Greg Donald
never found a way and I've looked many times. :( -- Greg Donald http://destiney.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Re: Any books available

2007-04-05 Thread Greg Donald
On 4/5/07, Frank <[EMAIL PROTECTED]> wrote: > Looking for books on django. http://www.djangobook.com/ -- Greg Donald http://destiney.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django us

Re: development server

2007-03-29 Thread Greg Donald
th my +4 hammer.. then _finally_ I'm back in business. I realize I could forgo the fixing of bash by just hitting up and enter, but then any future debugging sessions would require typing blind to step through code and interrogate variables and stuff, not fun.

Re: development server

2007-03-29 Thread Greg Donald
sh returning me to a bash prompt, it locks up, I have to hit Ctrl + C, then restart it. Are you saying this is not normal? What can I do to fix it? Thanks, -- Greg Donald http://destiney.com/ --~--~-~--~~~---~--~~ You received this message because you are

development server

2007-03-29 Thread Greg Donald
debug sessions goes away and I again have to restart the development server. What is up with that? Thanks, -- Greg Donald http://destiney.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&quo

Re: newbie - deploy error

2007-03-27 Thread Greg Donald
O_SETTINGS_MODULE mysite.settings > PythonDebug On > Here's what I use in development: http://destiney.com/blog/django-apache-vhost -- Greg Donald http://destiney.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: foreign key filtering

2007-03-26 Thread Greg Donald
On 3/26/07, RajeshD <[EMAIL PROTECTED]> wrote: > Try this: > msgs = Messages.active.filter(project__active=True) Yup. Thanks. -- Greg Donald http://destiney.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: sql log

2007-03-26 Thread Greg Donald
ould be turning > on your database's query logging functionality to see the raw data. I mostly just needed to see what the Q() thingy was doing with my and/or filter (chain) logic. -- Greg Donald http://destiney.com/ --~--~-~--~~~---~--~~ You received thi

Re: sql log

2007-03-26 Thread Greg Donald
pment. Tailing all the SQL queries created by the code I'm writing, however, is. -- Greg Donald http://destiney.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

  1   2   >