Re: Oracle 11g + mod_wsgi + Apache + Django on Windows 2003 does not work

2009-07-30 Thread Xiong Chiamiov
On Jul 29, 11:57 am, tcpipmen wrote: > Hi All, I have no problem running Oracle 11g with django on build-in > development server and everything is fine.  But When I setup with > mod_wsgi with Apache I'm getting messages like below [snip] > The specified module could not be

Re: MEDIA_URL MEDIA_ROOT

2009-07-30 Thread Xiong Chiamiov
On Jul 30, 3:38 am, Salvatore Leone wrote: > I can't download the files, probably I don't understand the MEDIA_URL > parameter. Here it is: > MEDIA_URL = 'http://localhost:8000/wiz/uploads/' > > but trying to access the files returns me a 404 error. You shouldn't

Re: Subclassing CharField

2009-07-30 Thread Xiong Chiamiov
On Jul 30, 7:27 am, Michael Anckaert wrote: > Hello everyone, > > I subclassed the CharField but have run into this problem: How did you subclass CharField? It's difficult to say what the problem is without seeing what you've done.

Re: FF3 src error in django admin calendar

2009-07-08 Thread Xiong Chiamiov
Oh, I forgot to note that Firebug is very helpful in these kind of situations, as you can call the functions explicitly and see what happens. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: FF3 src error in django admin calendar

2009-07-08 Thread Xiong Chiamiov
On Jul 8, 1:22 am, Alastair Campbell wrote: > Has anyone else started getting application error emails from the > Django admin after updating to Firefox 3.5? Before 3.5, actually. The function that modifies the path to the image is called once the page has finished loading,

Re: HTTP Headers and User Authentication

2009-07-08 Thread Xiong Chiamiov
On Jul 8, 9:40 am, Jarmo wrote: > > You need to send the 'sessionid'. It's in request.COOKIES. > So I have to send the sessionid in the HttpResponse back to the client > for it to use, right?  I tried getting it from the Request object > after I successfully logged in.  

docstrings not rendering in ReST in admindocs

2009-07-07 Thread Xiong Chiamiov
I've got some fairly basic docstrings in my models, and I just discovered the admindocs module, which does all sorts of useful introspection stuff. I had to install docutils before it would show, but I did that, and now I've got documentation. The problem is that my docstrings don't seem to be

Re: edit form not working with imagefield

2009-07-07 Thread Xiong Chiamiov
On Jul 7, 1:22 pm, Adam Jenkins wrote: > I know that Dojo allows one to upload files with Ajax. It uses an iframe as > a work around. >From what I remember from when I was doing something like this a good year ago, using an iframe is the accepted way of uploading files

Re: extracting MySQL-python-1.2.3c1.tar.gz

2009-07-06 Thread Xiong Chiamiov
On Jul 5, 6:47 am, mikel wrote: > Setting up Django is going fine until configuring MySQL. It requires > MySQLdb, which I downloaded from sourceforge as MySQL- > python-1.2.3c1.tar.gz (and MySQL-python-1.2.2.tar.gz) on Mac OS X, > Redhat, and Windows. When I try

Re: Admin of an Admin for an E-Commerce Page

2009-07-06 Thread Xiong Chiamiov
On Jul 5, 12:44 pm, Nick wrote: > I'm looking to write an e-commerce page with very minimal admin > functionality, but which also has an extended admin that would > facilitate the rest of the basic admin tasks.  For example, the basic > admin could add products but shouldn't

Re: Django as python ORM in project

2009-07-06 Thread Xiong Chiamiov
> What i want to know is that should i use django ORM for it. > Should i use any other kind of python orm instead of django orm? But > then i would essentially need to use 2 different systems for one > project which does not sound like a good idea. > > Theoretically... can 2 somewhat different

Re: Project creating Problem in Windows

2009-07-06 Thread Xiong Chiamiov
On Jul 6, 5:18 am, somepalli wrote: > I installed python 2.5.4 and DJango 1.0 in my windows xp. > > DJango working properly. > > But here i am not able get the mysite folder i am getting like > following > > C:\Documents and

Re: Best distro for django

2009-07-04 Thread Xiong Chiamiov
On Jul 3, 11:36 am, developingchris wrote: > Looking for opinion of the best distro for a developer machine for > django. > > I'm on ubuntu now, its going ok. I'm having keyboard issues, and > wondering if I should put the time in on fixing it, or just ditch it > for

Re: Incomplete file save of models.FileField.save

2009-07-02 Thread Xiong Chiamiov
On Jul 2, 5:31 am, masterclock wrote: > I'm using python2.6 and django 1.0.2 > > class MyModel(Model): >     file = models.FileField(...) >     ... > > mymodel = MyModel(...) > > mymodel.file.save(...) > > but the saved file is truncated. > > when I use admin, the uploaded

Re: Keep session data between user switches

2009-07-02 Thread Xiong Chiamiov
On Jul 2, 9:18 am, mettwoch wrote: > Hi, > > I write a POS application and several users share the same terminal. > They use a barcode scanner to point to their badge to login (works > already). I'd like to keep the session data for every user so that > when user A leaves the

Re: Tracking a bad import

2009-07-02 Thread Xiong Chiamiov
On Jul 1, 9:15 pm, Chhouk Voeun wrote: > i want to use map url (http:\\localhost:8080\main).oh i use window Did you read the tutorial? None of your url regexes look anything like /main/. And why did you hijack someone else's thread that was about a completely different

Re: Django and chat

2009-07-02 Thread Xiong Chiamiov
On Jul 2, 3:53 am, Ivan Uemlianin wrote: > Dear All > > I am looking into using or developing a chat application for Django, > for use in a social networking website based on the Pinax Django > "distribution". > > I have searched for django-based chat applications and found

django admin - inline to FK (which has a M2M to something else) throws error

2009-07-02 Thread Xiong Chiamiov
Here are my three models: class Faculty(models.Model): [standard attributes] class WorkDay(models.Model): [standard attributes] class OfficeHour(models.Model): faculty = models.ForeignKey(Faculty) day_of_week = models.ManyToManyField(WorkDay) and in admin.py: class

Prepopulating slug from foreign key

2009-05-01 Thread Xiong Chiamiov
I have these two models: class CoursePrefix(models.Model): prefix = models.CharField(max_length=6) title = models.CharField(max_length=40, blank=True) department = models.ForeignKey(Department) def __str__(self): return self.prefix class Meta:

Re: num_in_admin equivalent in newforms

2008-11-04 Thread Xiong Chiamiov
Actually, extra by itself does exactly what I want. For some reason I couldn't see it - I guess I just got caught up in the specific name. Thanks. On Nov 4, 10:32 am, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Nov 4, 5:57 pm, Xiong Chiamiov <[EMAIL PROTECTED]> w

Re: 'NoneType' object is not iterable

2008-11-04 Thread Xiong Chiamiov
If it works in one environment, but not another, then it might have something to do with your settings files. When you create your links, are you having the href be "/enter" or "/enter/"? I think the middleware class you're reading about is for trailing slashes, not preceeding ones. On Nov 4,

num_in_admin equivalent in newforms

2008-11-04 Thread Xiong Chiamiov
I'm in the process of converting a bunch of sites from pre-nfa to 1.0. One of the things I've run across is the change in inlines in the admin interface. Previously, there was (http:// www.djangoproject.com/documentation/0.96/model-api/#many-to-one-relationships) a parameter called num_in_admin

using variable as dictionary key in templates

2008-09-18 Thread Xiong Chiamiov
Is it possible? If in the templates I call section.foo (with section being a dictionary), then it's the equivalent of section['foo']. Is there a way to call section[foo]? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

day is out of range for month

2008-09-02 Thread Xiong Chiamiov
On a site of ours, we got a 500 on Aug 31 with the error: ImproperlyConfigured: Error while importing URLconf 'ee_website.urls': day is out of range for month from this line: announcements = {'queryset': Announcement.objects.filter(active=True,expire_date__gt=datetime.today()).order_by('-