Re: django vps hosts

2009-09-24 Thread Nick Lo
This may be helpful: http://djangofriendly.com/hosts/ > I think I'm ready to finally switch to a django vps host due to > problems with django on DreamHost. Can anyone recommend a good vps > host? --~--~-~--~~~---~--~~ You received this message because you are

Django-Storages

2009-09-23 Thread Nick
Hey everyone, I'm working on setting up an app to upload images to s3. I am using David Larlet's djang-storages backends and am running into a pretty annoying problem. When I try to save an entry through the admin I get the following error: Storage module "backends.s3" does not define a

Re: benefits of {% url %} for breadcrumbs?

2009-09-16 Thread Nick Lo
You might find this useful: http://code.google.com/p/django-crumbs/ >> the only point where DRY comes into play is when you're retrieving >> data from the same view, is there a better way to make breadcrumbs? --~--~-~--~~~---~--~~ You received this message

Re: Security: Django vs popular PHP apps?

2009-09-09 Thread Nick Lo
> I am hoping to get some reasonably knowledgeable, and unbiased, > responses. > > I was thinking about putting together a wordpress blog. Then I came > across a recent slashdot article about recent wordpress security > issues. I did a little research, and found that wordpress has quite a >

Re: Caching template fragments without specifying expiration time

2009-08-02 Thread Nick Fishman
constant in a context_processor and using that as the "effectively expire never" time. I'd have to use a similar trick when using the low-level cache API, anyway. Thanks, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &

Caching template fragments without specifying expiration time

2009-08-02 Thread Nick Fishman
"fragment_name:additional:arguments:seperated:by:colons", so this seems possible. Any thoughts? 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

Admin of an Admin for an E-Commerce Page

2009-07-05 Thread Nick
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 have to know any html or meta- language to do so. They just

Re: Getting the name of a matched URL pattern

2009-07-02 Thread Nick Fishman
ethod looks pretty fast. Thanks! Shawn, request.build_absolute_uri() returns a full path like http://hostname/path/goes/here/, but it doesn't tell me the name of the URL pattern that caused the request to be resolved to a particular view. Nick --~--~-~--~~~---~--~

Getting the name of a matched URL pattern

2009-07-01 Thread Nick Fishman
estions/1042211/get-name-for-matched-url-pattern), but the solution requires duplicating the URL pattern name in a dictionary. Thanks, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Practical Django Projects or Pro Django Books

2009-06-24 Thread Nick Lo
ed at Django 1.1. In short, if you can afford it, get both. 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-users@googlegroups.c

Re: Need to upload outside of MEDIA_ROOT, but I get SuspiciousOperation error

2009-06-23 Thread Nick Day
That worked, thanks. --~--~-~--~~~---~--~~ 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

Need to upload outside of MEDIA_ROOT, but I get SuspiciousOperation error

2009-06-22 Thread Nick
rror. I'd like to do this so all uploaded files are contained outside of SVN's version control. Is this possible? I've tried "chown"ing my uploads directory to apache:apache but this didn't help. Any ideas? Thanks, Nick --~--~-~--~~~---~--~~ You rec

Re: Question IMAGE in Django

2009-06-21 Thread Nick Lo
/{{ x.id }}-thumbnail.jpg Hope that helps? 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-users@googlegroups.com To unsubscribe fro

Re: templates in Practical Django Projects

2009-06-21 Thread Nick Lo
s 755 and files as 644 before I have any joy. Cheers, 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-users@googlegroups.com To unsu

Re: Scientific Data Frontend with Django

2009-06-17 Thread Nick Fishman
-application-serverfor anyone who might have similar problems. Nick On Wed, Jun 17, 2009 at 11:08 PM, Vincent <vincent.n...@gmail.com> wrote: > > That sounds like a great idea. Something i have been meaning to try > for a while but haven't gotten around to. > > For a class web

Django gives little information about custom raised exceptions

2009-06-15 Thread Nick Fishman
nd case, Django catches the last argument, but not the first. But in both cases, it doesn't read my custom string message. Is there any way to display custom error strings, or am I doing something completely wrong? Thanks a ton! Nick --~--~-~--~~~---~--~~ You re

Re: Any good django book that covers version 1.0?

2009-06-14 Thread Nick Lo
ly reading it): http://www.apress.com/book/view/1430210478 Safari books online: http://my.safaribooksonline.com has a selection of these if you don't mind on-screen reading. Cheers, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: List of available projects

2009-05-18 Thread Nick Lo
elf ? Aside from the various code repositories; like http:// code.google.com/, http://github.com/, http://bitbucket.org/, http://launchpad.net/ the django site itself has: http://code.djangoproject.com/wiki/DjangoResources Nick --~--~-~--~~~---~--~~ You received

Re: how to work with web service in django

2009-05-18 Thread Nick Lo
since you're going to be making queries to a service that, depending on your network, may or may be available or may be slow, take a look at caching that information. Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Webpy vs Django

2009-04-22 Thread Nick Lo
com/weblog/rewritingreddit ...that compares web.py with Django based on the needs of the project. Choosing between Django and web.py doesn't need to be a mutually exclusive situation. You may use one in one case, the other another. Anyway, I've further meta-conversed enough, Nick --~--~---

csv download link or views that the modify more than one template...

2009-04-16 Thread Nick
I'm interested in returning both an html view (as a template) and a link to a csv file (either as a template or using the CSV module) in response to a query (GET or POST). Is there a way to both of these actions simultaneously without hitting a database twice and without writing a file to disk?

Re: Igoogle integration

2009-04-09 Thread Nick Boucart
a urls like: /mycoolfeed and /embed/mycoolfeed that both fetch exactly the same data from the database, but render a different template based upon the url. How would you do this? Thanks! Nick. On Apr 9, 3:57 pm, Nick Boucart <nbouc...@gmail.com> wrote: > Hi, > > I'm pretty new to

Igoogle integration

2009-04-09 Thread Nick Boucart
it DRY. My first thought was to include a different base.html template when the url of that view was like /embed/ my_url so but I'm not sure if that is the best approach. I hope my question is clear. Any thoughts? Many thanks! Nick. --~--~-~--~~~---~--~~ You

Re: Running django on a web hosting account

2009-04-06 Thread Nick Lo
s to your host (shell access for example). If you find your host doesn't provide what you need then you could consider a host that has been recognised for its Django "friendliness": http://djangofriendly.com/ Hope that's a start, Nick --~--~-~--~~~---~--

Re: Problem Installing Django on OS X 10.4.11

2009-04-02 Thread Nick Lo
dea is really only that the main django file (the one that contains eg contrib, auth, db, etc.) is in that site-packages directory and therefore findable. Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Django 1.0 Template Book

2009-03-30 Thread nick
Has anyone bought and read "Django 1.0 Template Development" by Scott Newman? I'd like to know your opinion before I get it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: localhost:8000 problem

2009-03-28 Thread nick
Right after I click "post" to that problem, I realized that "Work Offline" was checked. It works now. Thank you Karen for prompt reply, I appreciate it. I am sure there are more to come :-) On Mar 28, 4:50 pm, Karen Tracey <kmtra...@gmail.com> wrote: > On Sat,

localhost:8000 problem

2009-03-28 Thread nick
I am a django newbie. The first example I tried from django's tutorial "mysite", ran python manage.py runserver. Server runs with no errors but my web browser (firefox) get "Firefox offline mode error" and not django 404 errors. I tried different localhost ports, but same error. My browser

Re: Typo for Django or Like?

2009-03-17 Thread Nick Lo
hich is I think what Alex asked originally. A little more detail will probably get you a few more productive responses, Nick > Sure, > > Typo is a blogging platform/cms (Like wordpress). I know about > Django-cms and I am wondering if there are any others? > > Thanks > J

Re: Django critter helps us code at the speed of light.

2009-03-12 Thread Nick
On Mar 11, 6:10 pm, Eric Walstad <ewals...@gmail.com> wrote: > > Now you can have your pony AND a Django > Critter:http://starship.python.net/~ewalstad/django_critter.html > Excellent! I think I prefer the Critter to the Pony... Nick --~--~-~--~~~--

Re: Django and php can they mix?

2009-02-17 Thread Nick Lo
at part of > the site. Any help / advice would be a great help, thanks That question doesn't read very clearly but this may have answers: http://wiki.developers.facebook.com/index.php/PythonPyFacebookTutorial Cheers, Nick --~--~-~--~~~---~--~~ You received

Re: charts in django

2009-01-29 Thread Nick Lo
with minidom: http://code.google.com/p/open-flash-chart-python/ http://www.maani.us/xml_charts/ Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send emai

Re: Named URLs for Flatpages?

2008-12-16 Thread Nick Sandford
l': '/about/' }, name='about'), and then in your templates you can say {% url about %} and it should work as advertised. Hope this helps! Cheers, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

HTTPS and URL form field validation

2008-12-15 Thread Nick
mod_python. Any ideas on what could be going on? Thanks. 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-users@googlegroups.com

Ad Management System

2008-11-23 Thread Nick
I'm exploring whether or not to use Django for redesigned website and the only thing I haven't really been able to find out is whether there is an existing, portable, robust solution for advertising management on the site. This would need to control what advertising goes where, track its

Customising slugify filter

2008-11-19 Thread Nick
n the slugify filter to django/template/ defaultfilters.py, but can't get my head round the regular expressions required to replace "/" with "-". Alternatively, instead of changing the core Django install, can I "extend" slugify in my own app to have th

Re: Django newbie observation

2008-11-12 Thread Nick Lo
You don't have to use the Django ORM for everything and you can always fall back on just SQL until you're confident enough. Cheers, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

Re: Django Forums

2008-11-12 Thread Nick Lo
just enter email and "go"; too easy! Aside from that, anyone missing a forum-like interface should find some comfort here: http://groups.google.com/group/django-users/topics?hl=en Nick --~--~-~--~~~---~--~~ You received this message because you are subs

Re: Can python/django match the features of php/zend framework?

2008-10-26 Thread Nick Lo
orks are probably more likely to give you your answers than a feature-by-feature comparison... and of course testing them out. Cheers, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django us

Multiple selects for ForeignKey in admin

2008-10-24 Thread Nick Sandford
on the category chosen. Would be useful for having lots of Bar objects to chose from and not having to use raw_id_fields Any ideas? Cheers, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q

Is this a reasonable way to approach a calendar based form(set)?

2008-10-10 Thread Nick Lo
cks/features/alternative approaches I should consider? With thanks, Nick p.s. Please feel free to mock my code as much as is needed! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

DeprecationWarning: Non-ASCII character in models.py

2008-09-30 Thread Nick
lly the £ symbol. Can anybody shed some light on how I can fix this, presumably I need to declare an encoding, or there is an encoding mismatch going on somewhere? Thanks, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: Suggested approach for a date based form layout

2008-09-30 Thread Nick Lo
Hi Gerard, Actually part of my solution was and is using modelform but that was really just for the convenience of save(). I've got a solution together now but thanks for your response, Nick > > Nick, > > I'm not a longtime Django user, but I would check de django docs on

Suggested approach for a date based form layout

2008-09-29 Thread Nick Lo
with? Cheers, 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-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Re: Validating ImageField width and height in admin site

2008-09-20 Thread Nick
Anybody? I can't find a simple example of this anywhere so any help would be great :) Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj

Displaying ManyToMany relations in Admin

2008-09-19 Thread Nick Sandford
, can I change it? Also, is there any better way to do this? I'm not too fussed about it since generally I don't have to edit the information, but it would be nice to be able to. Thanks in advance, Nick. --~--~-~--~~~---~--~~ You received this message because you

Validating ImageField width and height in admin site

2008-09-09 Thread Nick
be used within the save method to prevent the record from saving if the image size were incorrect. Any help would be very much appreciated :) Thanks, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q

Re: limiting choices in admin.ModelAdmin based on request.user

2008-09-01 Thread Nick Day
Thanks! :) Nick On Sep 1, 3:18 pm, Daniel Roseman <[EMAIL PROTECTED]> wrote: > On Sep 1, 2:53 pm, Nick Day <[EMAIL PROTECTED]> wrote: > > > Would somebody be able to provide a simple example of using get_form() > > within the ModelAdmin to retrieve the currentl

Re: Different __unicode__ return values for admin site?

2008-09-01 Thread Nick Day
Thanks for your help - I used list_display and it works fine. Cheers, Nick On Sep 1, 2:55 pm, "Valts Mazurs" <[EMAIL PROTECTED]> wrote: > Hello, > > I guess that you want to have more details in admin list view. > You can use list_display configuration attribute in

Re: limiting choices in admin.ModelAdmin based on request.user

2008-09-01 Thread Nick Day
Would somebody be able to provide a simple example of using get_form() within the ModelAdmin to retrieve the currently logged-in user? Thanks in advance, Nick On Aug 26, 10:16 am, patrickk <[EMAIL PROTECTED]> wrote: > can someone provide an example for this? > > moreover, how

Different __unicode__ return values for admin site?

2008-09-01 Thread Nick Day
for more detail to be shown in the admin site, where as the normal site shows a less-detailed field (short_name). Any help very much appreciated! Cheers, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: Verbose model name in Admin interface

2008-09-01 Thread Nick Day
modifying the admin templates? Thanks, Nick On Sep 1, 12:39 pm, Nick Day <[EMAIL PROTECTED]> wrote: > Oops I totally missed that - thanks! > > Nick > > On Sep 1, 10:58 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > > > On Mon, Sep 1, 2008 at 4:56 A

Verbose model name in Admin interface

2008-09-01 Thread Nick Day
any easy way to do this without directly modifying the admin templates? Thanks, 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-users@goo

Re: lighttpd + fcgi + FORCE_SCRIPT_NAME = admin grief

2008-08-21 Thread Nick
/BackwardsIncompatibleChanges#ChangedthewayURLpathsaredetermined Which maybe need to change given that the rest of the config is plain- vanilla-as-per-the-tutorial? Regards, Nick On Aug 21, 6:08 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu, 2008-08-21 at 10:02 -0700, James Matthews wrote

lighttpd + fcgi + FORCE_SCRIPT_NAME = admin grief

2008-08-21 Thread Nick Clarey
= ( "^(/media.*)$" => "$1", "^(/site_media.*)$" => "$1", "^/favicon\.ico$" => "/media/favicon.ico", "^(/.*)$" => "/site.fcgi$1", ) accesslog.filename

Re: Renaming of mailing lists to avoid user confusion

2008-08-20 Thread Nick Lo
oper list to get to know who they are. 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-users@googlegroups.com To unsubscribe from thi

Re: Renaming of mailing lists to avoid user confusion

2008-08-20 Thread Nick Lo
er questions into the internals discussions and in fact makes them worse as users are even more confused as to where they should ask questions. It would more than likely just increase the need to redirect traffic to the correct list. Nick --~--~-~--~~~---~--~~

Re: Renaming of mailing lists to avoid user confusion

2008-08-20 Thread Nick Lo
ion for this user. 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-users@googlegroups.com To unsubscribe from this group, send email to [EM

ForeignKey with 0 meaning Null

2008-07-07 Thread Nick Craig-Wood
__get__(self, instance, *args, **kwargs): # never gets called print "Instance %r " % instance def to_python(self, value): # never gets called print "to_python %r" % value I'm using svn of few days ago. Thanks Nick -- Nick Craig-Wood <

Re: testing login problem

2008-07-03 Thread Nick Sandford
s IndustryTest(TestCase): >fixtures = ['/fixtures/initial_data.xml'] > > >def setUp(self): >self.client = Client() >response =self.client.post('/ibms/login/', > {'username':'laspal', 'passwords':'abcd'}) >print response di

Re: auth context processor setup

2008-06-22 Thread Nick Sandford
te import RequestContext ... render_to_response('some/template.html', context_instance=RequestContext(request)) Hope this helps, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Re: Row-level permissions, recommendations?

2008-05-14 Thread Nick Day
think newforms-admin will be released, and/or a RLP patch? Cheers, Nick On May 6, 3:44 pm, "Jay Parlar" <[EMAIL PROTECTED]> wrote: > On 5/6/08, Rodrigo Culagovski <[EMAIL PROTECTED]> wrote: > > > > >  What's the state of the art forrow-levelpermissionsin Dj

Better Image Uploads: Fake Model Fields?

2008-05-13 Thread Nick Retallack
Currently it seems like it could be pretty disastrous to let users upload their own files, as you can see from this ticket: http://code.djangoproject.com/ticket/2983 Of course, one solution is to name your files after the pk of the record they're associated with, so new uploads will overwrite

Gradually porting an established site to Django

2008-05-08 Thread Nick Mellor
handle. Is this true? How can I get Django to handle some URL patterns, and leave others to the "old" site code? Many thanks for any hints to get me going. Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: Using primary key ID in file upload location?

2008-03-10 Thread Nick Day
other than me being a perfectionist :) Cheers, 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-users@googlegroups.com To unsubscribe f

Using primary key ID in file upload location?

2008-03-09 Thread Nick Day
to a folder using the ID of the record. For example - I'm adding a record with an autogenerated primary key ID of "12" - so I would like my photos to be uploaded to "/media/12/" when I click the Save button for that record. Hope somebody here can suggest a sol

Re: Db not being populated for foreignkey

2008-03-09 Thread Nick Fishman
hat I'm doing wrong? > > Thanks, > Duncan > This might be off the mark, but I thought I'd check. The first thing that comes to mind is database syncing. Did you remember to run ./manage.py syncdb after making those changes in the code? Nick --~--~-~--~~~---~--~~

Re: Multiple apps on one template

2008-03-08 Thread Nick Fishman
idea is to combine both lists into a single view. Add another line to your URLS, like (r'^home/', 'sakushi.events.views.home'), And you'll be set. Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djan

Re: Resolving dynamic dictionary parameters in templates

2008-03-08 Thread Nick Fishman
solve_variable(key,value) > > -Justin Thanks, Justin. This does an even better job. I think the frequency of this issue shouts louder than ever that this filter should be in Django by default :-) Nick --~--~-~--~~~---~--~~ You received this message because you are s

Re: Resolving dynamic dictionary parameters in templates

2008-03-07 Thread Nick Fishman
. Especially if the alternative is using numbered tuples or nesting more and more dictionaries inside of dictionaries. Thanks for the push in the right direction! Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

Resolving dynamic dictionary parameters in templates

2008-02-21 Thread Nick Fishman
ents.param="month" }}? Or should I try to rework the way my code works? Thanks for the help, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

ANN: PyAMF 0.1 released

2008-02-11 Thread Nick Joyce
We released PyAMF 0.1, a lightweight library that allows Flash and Python applications to communicate via Adobe's ActionScript Message Format. AMF3 and RemoteObject are supported in all the implemented Remoting gateways, currently supported for Django, Twisted and WSGI. A summary of new features

Re: Access ManyToMany objects

2008-01-23 Thread nick
Thank you Eric, it helped a lot. The 'name' attribute does get me confused every now and then...good point! - nick On Jan 23, 12:09 am, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > > Question: In python, how do I access name attribute in Author? That > > is, I'd like to kn

Access ManyToMany objects

2008-01-22 Thread nick
New to django and python. Just trying some basics here.I have the following model: class Author(models.Model): name = models.ForeignKey(User) def __str__(self): return self.name.username class Entry(models.Model): body_text = models.TextField()

Re: Help installing Psycopg2 and/or MySQL-python on OS X

2007-09-02 Thread Nick Fishman
On Sep 2, 9:37 pm, "Todd O'Bryan" <[EMAIL PROTECTED]> wrote: > Looks like you're missing some header files... > > Maybe postgres didn't put everything where it needed to be. You also may > need the dev packages for postgres. The problem is, indeed, in the development packages. There's a package

About django's ImageField type

2007-07-26 Thread nick feng
Imaging Library. When should we define the filed as ImageField? Best wishes, 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-users@google

Re: mod_python problem?

2007-07-22 Thread nick feng
n If you used mysite, mysite should always in your urls, the mod_python will not found the right view if you did not add mysite in the urls. Best wishes, Nick - Original Message - From: James McManus To: django-users@googlegroups.com Sent: Monday, July 23, 2007 12:35 PM

Re: About create a database table dynamicly

2007-07-14 Thread nick feng
Hi Carl, Thank you, I have resended the mail again, thanks . best wishes, nick - Original Message - From: "Carl Karsten" <[EMAIL PROTECTED]> To: <django-users@googlegroups.com> Sent: Sunday, July 15, 2007 12:33 AM Subject: Re: About create a database table dynamic

About create a database table dynamicly

2007-07-14 Thread nick feng
Hi, I had to create a table in the database according to the users' input imformation. Django seems has no topic about this, anyone has any idea on it?Thank you Best wishes, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed

About create a database table dynamicly

2007-07-14 Thread nick feng
Hi, I had to create a table in the database according to the users' input imformation. Django seems has no topic about this, anyone has any idea on it?Thank you Best wishes, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed

Which database is better for django, PostgreSQL or MYSQL?

2007-07-11 Thread nick feng
Which database is better for django, PostgreSQL or MYSQL? --~--~-~--~~~---~--~~ 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: No module named _md5

2007-07-05 Thread nick feng
It' seems that the md5 is not a middleware, but you have write it in the setting.py file's middleware setting part. - Original Message - From: "e-gor" <[EMAIL PROTECTED]> To: "Django users" Sent: Friday, July 06, 2007 2:59 AM Subject: No module named _md5

Re: An idea on DB migration

2007-07-04 Thread nick feng
The django has already provided the way to use SQL, I don't think this is needed. - Original Message - From: "Noam" <[EMAIL PROTECTED]> To: "Django users" Sent: Thursday, July 05, 2007 2:40 AM Subject: An idea on DB migration > > > Hello, > > I have

Re: newbie having difficulty with sqlite

2007-07-04 Thread nick feng
I think you should create the books file by yourself, the sqlite3 may not have the ability to create the file in your file system. - Original Message - From: "walterbyrd" <[EMAIL PROTECTED]> To: "Django users" Sent: Thursday, July 05, 2007 2:25 AM

Could you please share your django-based website source code with me?

2007-07-01 Thread nick feng
? Thank you very much! I promise that your codes is only used for my studying django. Best wishes, Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Doing query with 'ne' terms.

2007-06-14 Thread Nick
On Jun 15, 12:50 pm, "Nicholas Ding" <[EMAIL PROTECTED]> wrote: > but I wanna 'where column1 <> %s and column2 <> %s' > If I were using exclude, the SQL must be 'where not (column1 = %s and > column2 = %s), that's different.

Re: How do you get at a RadioFieldRenderer object from a template? (newforms)

2007-05-06 Thread Nick
I needed to do a similar thing... in my case I needed the radio inputs in separate table cells. The way I did it was to write a custom widget, but I'd also be interested to hear of another way to achieve the same thing. Cheers, Nick On May 7, 3:53 am, "Joseph Heck" <[EMAIL PROT

Re: Need guidance on multiple domain site configuration.

2007-04-24 Thread Nick Tidey
ren't many). Unfortunately it didn't work anyway. Django's escaping of the SQL arguments means you end with a table called "SCHEMA_PREFIX.model" in the public schema. I'll do it your way. Nick On Apr 25, 1:29 pm, Doug Van Horn <[EMAIL PROTECTED]> wrote: > On Apr 24, 5:59 pm, Nick Ti

Need guidance on multiple domain site configuration.

2007-04-24 Thread Nick Tidey
to host the sites on a WebFaction shared account. Thanks 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-users@googlegroups.com To unsubs

Re: Need guidance on multiple domain site configuration.

2007-04-24 Thread Nick Tidey
nly problem I can see is if you specify a different DB in > each settings.py, you'll need to create the same admin accounts in > each. > > -Robin > > On Apr 24, 7:22 am, Nick Tidey <[EMAIL PROTECTED]> wrote: > > > Hello all. > > > I'm creating a CMS/e-commerc

Re: about newforms

2007-04-09 Thread nick feng
Hi Christian, Have you read the www.djangobook.com? I think it's better for you to read www.djangoproject.com/documentation/ It's will help you with every case of your project. Best Wishes, Nick - Original Message - From: "Christian Hoppner" <[EMAIL PROTECTED]> T

Re: Many to many relationship with intermediate class and sorting

2006-08-11 Thread Nick Lane
ums_photo.rating') I had to prefix the table with the app name (as per docs), and also had to use select_related() since the default queryset didn't have the related fields selected. Thanks again Malcolm, your help is much appreciated. Cheers, Nic

Re: Many to many relationship with intermediate class and sorting

2006-08-11 Thread Nick Lane
t; WHERE ("albums_albumphoto"."album_id" = 1) ORDER BY "albums_albumphoto"."photo__rating" DESC Obviously I can't order by photo__rating like I was thinking. I'm getting the feeling I'm putting something in the wrong place. Should I be using managers like this?

Re: unbuffered output to client/end-user

2006-07-16 Thread Nick
On 7/16/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: Nick wrote:> Martin,Well, not exactly :-)Haha, shouldn't post with my eyes closed while waking up. > You mean if I access the model?Yes. By the time your response iterator starts working Django hasalready closed the database con

Re: unbuffered output to client/end-user

2006-07-16 Thread Nick
Martin,You mean if I access the model? I tried looking up a close() method for the DB api but couldn't find anything.Could you be more specific, maybe give an example, so I can write it down in case I ever need it. Currently trying to learn django, so I have a lot of newbie questions.-nick

Re: unbuffered output to client/end-user

2006-07-15 Thread Nick
Martin,Cool, this actually works with yielding, thank you very much.You don't seem to be THAT new too django:)Kind Regards,Nick ParrinOn 7/15/06, Martin Glueck <[EMAIL PROTECTED]> wrote: Nick,I'm new to Django so if I'm wrong here, I hope that somebody willcorrect me.> I'm

unbuffered output to client/end-user

2006-07-15 Thread Nick
trying to write a live traceroute in django, so that each line gets sent to the browser (client) directly, instead of having all the lines in a variable and returning that to the browser (client).Hopefully someone can help me, thanks in advance! Kind Regards,Nick Parrine-mail: [EMAIL PROTECTED

Re: Feasibility of postgis fields?

2006-06-15 Thread nick
afterwards with custom sql. Thanks, 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-users@googlegroups.com To unsubscribe from this g

Feasibility of postgis fields?

2006-06-15 Thread nick
Hi - as a person investigating django for managing metadata that will also have a spatial/gis component (lat/lon bounding boxes), would the reccommended approach be to create a new field for use in my models? Admittedly this would be specific to the postgres+postgis backend. I'd be looking to

Re: noobie db problems

2006-05-21 Thread Nick Hristov
I forgot to mention that I am using django point release 0.91. Nick On 5/21/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hey all, I am just starting with django; I think it is really cool, a big break from Java/Struts dev for me. Anyways, I am experimenting with a simple blog a

<    1   2   3   4   5   6   7   >