Re: django ORM memory leaks in standalone script

2010-06-04 Thread Dj Gilcrease
On Fri, Jun 4, 2010 at 6:44 AM, yakovenko wrote: > import os > import sys > os.environ['DJANGO_SETTINGS_MODULE'] = 'md.settings' > sys.path.append('/md/lib') > from django.db import close_connection, reset_queries > from md.mddata.models import Info > def test(): >  for i

Re: hello django users, I have one doubt. I am doing one django project. It shows one SyntaxError in the line(if not created:) in views.py file.I attached the particular in that. I want the reason o

2010-06-04 Thread Dj Gilcrease
syntax error is because of capitol 'I' in if -- 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

Re: Looping through models

2010-06-01 Thread Dj Gilcrease
On Tue, Jun 1, 2010 at 12:57 PM, Luca Casagrande wrote: > Is there a way to create a loop changing only the model name? geo_models = [model1, model2, model3, ...] for m in geo_models: m.objects.filter(geom__intersects=fs[0].geom) -- You received this message

Re: Uploaded File Security

2010-05-20 Thread Dj Gilcrease
On Thu, May 20, 2010 at 12:38 AM, Lee Hinde wrote: > This is going to be a hosted solution and if I add LDAP maintenance to the > new things they have to do, I think they'll go back to shuffling Excel files > back and forth via email. > One Apache log-in and then one Django

Re: Is it possible to add a table on my database with a django code ?

2010-05-19 Thread Dj Gilcrease
On Wed, May 19, 2010 at 8:18 AM, Pep wrote: > Hi everybody ! > > I would like to know if it's possible to add automatically a table on > my database when, for example, a new member subscribe on my website ? > > I mean, if I would like to do it manually, I'll have to change

Re: Problem_Inline_max_num

2010-05-10 Thread Dj Gilcrease
On Mon, May 10, 2010 at 3:29 PM, Javier Guerra Giraldez wrote: > On Mon, May 10, 2010 at 11:23 AM, carlos wrote: >> I'm sorry but this is a translation of google > > even worse, it's a google translation of a text without punctuations. It isnt all

Re: permissions at per specific object instance

2010-05-05 Thread Dj Gilcrease
On Wed, May 5, 2010 at 4:09 PM, zweb wrote: > I need to build "permissions at per specific object instance" for my > app. > > Anyone has already done it ?  Also it says django developers are > already discussing it.. > > You can please refer me to the threads or blog posts

Re: django_audit 0.0.2

2010-05-05 Thread Dj Gilcrease
On Wed, May 5, 2010 at 10:49 AM, Gustavo Narea <gna...@tech.2degreesnetwork.com> wrote: > On May 5, 3:45 pm, Dj Gilcrease <digitalx...@gmail.com> wrote: >> I also think Euan Goddard has already registered django-audit on pypi >> (http://pypi.python.org/pypi/django-au

Re: [ANN] django_nav 0.6

2010-05-05 Thread Dj Gilcrease
Now in PYPI http://pypi.python.org/pypi/django_nav/ -- 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

Re: django_audit 0.0.2

2010-05-05 Thread Dj Gilcrease
On Wed, May 5, 2010 at 10:06 AM, Gustavo Narea wrote: > Hello, > > I would suggest you try to register "django_audit" on PYPI and see if > it allows you to do so. > > We had already registered the package"django-audit" (note the hyphen > instead of an underscore,

[ANN] django_nav 0.6

2010-05-05 Thread Dj Gilcrease
Code @ http://code.google.com/p/django-nav/ This is a bug fix release to make conditionals work again. Before 1.0 is ready to go I want to add the ability to dynamically generate nav manus either via a DB, Config file, Cache, etc. -- You received this message because you are subscribed to the

Re: django_audit 0.0.2

2010-05-04 Thread Dj Gilcrease
On Tue, May 4, 2010 at 4:21 AM, Euan Goddard wrote: > This is all very well, but should either of these projects get to pypi > there's going to be some serious trouble. Since I'm the main author of > the "noSQL" django-audit, please let me know how you want to

Re: django_audit 0.0.2

2010-04-30 Thread Dj Gilcrease
On Fri, Apr 30, 2010 at 9:28 AM, Gustavo Narea wrote: > Sorry, but did you know there's already a project with that name? > https://launchpad.net/django-audit Ya I saw the announcement on it the day I pushed my code to google, hence my remark about not being tied

Re: How to filter a query set based on a calculated date value?

2010-04-30 Thread Dj Gilcrease
On Fri, Apr 30, 2010 at 6:26 AM, Derek wrote: > MyModel.objects.filter( (my_date_field + relativedelta(months = > +my_month_field))__lt = today ) wouldnt that be the same as my_date_field__gt=(today - relativedelta(months=my_month_field)) my_date_field + my_month_field <

[Ann] django_audit 0.0.2

2010-04-29 Thread Dj Gilcrease
ments very well, if it does not fit yours I may or may not be willing to modify it so it does. Dj Gilcrease -- 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 unsubsc

[ANN] django_nav release 0.5

2010-04-21 Thread Dj Gilcrease
Django Nav (http://code.google.com/p/django-nav/) extensible, non intrusive, fast system for generation navigation groupings. New in this release: Conditionals to show hide a nav option based on the result of a function call. There are 3 included conditionals to use as examples. arg and kwarg

Fwd: Immediate requirement, Sr Python Developer,NY

2010-04-16 Thread Dj Gilcrease
I am forwarding this to the django users list since they keep bugging me to try and find more django developers for them. The job is for Open Crowd (http://www.opencrowd.com/) in NY and I am getting $60/h. Relocation is required. -- Forwarded message -- From: Richard Aldrich

Re: How do I manually set the "GROUP BY" for a django queryset?

2010-02-15 Thread Dj Gilcrease
On Mon, Feb 15, 2010 at 1:43 PM, Greg Brown wrote: > The queryset giving the problem is > > UserProfile.objects.values( >        'ird_number', 'user__first_name', 'user__last_name', 'user__pk', >    ).annotate( >        Max('user__application__creation_date'), >    

Re: Accesing a foreign key parent model attribute from a related class

2010-02-05 Thread Dj Gilcrease
On Fri, Feb 5, 2010 at 12:39 PM, eaman wrote: > I'd like to upload the Photos (models.ImageField(upload_to='foto') ) > to ``dir / foto``, with 'dir' taken from the class Gallery. > My question is: how can i build the  path "(upload_to='foto')"  with > Gallery.dir ?

Re: [App Idea] Django-CDN

2010-01-26 Thread Dj Gilcrease
On Tue, Jan 26, 2010 at 3:28 PM, Bill Freeman wrote: > Three messages in, and I still don't know what "CDN" stands for, other than > "Canadian", which doesn't seem to fit. As Sam Lai said it is a Content Delivery Network. Django has always recommended you serve your

Re: [App Idea] Django-CDN

2010-01-26 Thread Dj Gilcrease
libcdn api brainstorm, my intent is not to support all the features of each cdn but only to support those that would be used by django-cdn for now. This will be a separate project so if other people want to make it more feature rich thats fine by me, I'll add you to the project. class

Re: [App Idea] Django-CDN

2010-01-26 Thread Dj Gilcrease
So after looking though the libcloud docs and API it seems to be missing two key features. 1) Ability to upload files to the cloud host 2) Set custom headers for a file That coupled with the fact that most of the providers supported by libcloud offer a separate CDN service with it's own

[App Idea] Django-CDN

2010-01-24 Thread Dj Gilcrease
ler (http://code.google.com/p/closure-compiler/) yui compressor jsmin cssutils gzip Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Editors of choice

2009-09-08 Thread Dj Gilcrease
On Mon, Sep 7, 2009 at 9:55 AM, Samuel Hopkins wrote: > Hello Django peeps, > > I am a Django newbee. I have had my eye on Djanjo for a year or so now but > held off because I had limited python experience. However, after a summer of > python and watching Django's

Re: Embedd VIM in Django Application

2009-09-07 Thread Dj Gilcrease
On Mon, Sep 7, 2009 at 9:09 AM, Chris Babcock wrote: > >> How can i embedd vim in my django application? http://gpl.internetconnection.net/vi/ maybe? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Zip multiple files into a zipped folder for download?

2009-09-04 Thread Dj Gilcrease
Here is how I do it http://dpaste.com/89530/ I am using a View class that I wrote to make my life easier so it wont directly translate to a standard view function but it should give you enough details to get you started --~--~-~--~~~---~--~~ You received this

Re: Filter based on dates

2009-08-12 Thread Dj Gilcrease
On Wed, Aug 12, 2009 at 12:02 PM, When ideas fail wrote: > def months_archive(request, year, month): >    blog_posts = Post.objects.all().order_by("-post_date") blog_posts = Post.objects.filter(post_date__year=year, post_date__month=month).order_by("-post_date")

Re: How do I minimize memory usage with WSGI and Apache?

2009-08-10 Thread Dj Gilcrease
On Mon, Aug 10, 2009 at 6:43 AM, Graham Dumpleton wrote: > These values for min and max threads are a bit dubious because you > have a single process and that will have fixed 25 threads. Usually > these are defined in multiples of ThreadsPerChild and not less like >

Re: How do I minimize memory usage with WSGI and Apache?

2009-08-10 Thread Dj Gilcrease
On Sun, Aug 9, 2009 at 4:17 PM, Graham Dumpleton wrote: > On Aug 10, 6:07 am, Jumpfroggy wrote: >> I'm hosting a bunch of django apps on a shared host with 80MB of >> application memory (Webfaction in this case).  I've got a bunch of >> apps

Re: Static content protection

2009-08-05 Thread Dj Gilcrease
On Wed, Aug 5, 2009 at 7:28 PM, TheIvIaxx wrote: > > Hello, I have a question that probably spans a few different groups. > However I know this setup is familiar withing the django community. > > I have apache handling all django/python stuff and have lighttpd > handling the

Re: Django on Hostmonster shared hosting

2009-08-04 Thread Dj Gilcrease
On Sun, Aug 2, 2009 at 1:10 PM, Tim wrote: > > Hello > > I have been trying to get Django working with Hostmonster.com shared > webhosting with FCGI. > > From what I gather from the HM forums, this is possible, but I've been > hitting some issues. I was with HM for 5 years

Re: permalink don't works

2009-07-28 Thread Dj Gilcrease
On Tue, Jul 28, 2009 at 7:26 AM, gentlestone wrote: > Thank for the quick answer. It is nice to know the forum is alive and > helpful :-) > But I'm sorry, I've tried this lookup too. So the code > > #     def get_absolute_url(self): > #         return

[ANN] django-nav 0.1

2009-07-17 Thread Dj Gilcrease
Examples and code can be found at http://code.google.com/p/django-nav/ Goals: Create a extensible, non intrusive, fast system for generation navigation groupings. Reason: While there are several systems already out there for crating navigation menus, tabs, etc, they all (That I have found)

Re: syncdb doesn't updated database after adding null=True to an IntegerField

2009-07-15 Thread Dj Gilcrease
On Wed, Jul 15, 2009 at 8:33 PM, Ben wrote: > Is syncdb supposed to fully sync the database to the model > definitions? If so I would call this a bug. You would need to delete the tables and run syncdb again to get it to add any model level changes OR look up

Re: send_mail error

2009-07-04 Thread Dj Gilcrease
On Sat, Jul 4, 2009 at 1:04 PM, Guri wrote: > Any missing string here. You have the following set correctly in your settings.py? EMAIL_HOST EMAIL_HOST_USER EMAIL_HOST_PASSWORD --~--~-~--~~~---~--~~ You received this message because you are

Re: can you have a flatpage with url of "/" when Debug=True?

2009-06-14 Thread Dj Gilcrease
On Sat, Jun 13, 2009 at 7:24 PM, Michael wrote: > On Sat, Jun 13, 2009 at 1:30 PM, josebrwn wrote: >> >> If Debug = True, you can have a flatpage with URL = "/" that is >> handled by FlatpageFallbackMiddleware: >> >> MIDDLEWARE_CLASSES = ( >>    ... >>  

Re: The best hoster to install Django

2009-06-06 Thread Dj Gilcrease
Webfaction Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Sat, Jun 6, 2009 at 5:44 PM, Bro<coolpari...@gmail.com> wrote: > > Hi Everyone, > > I ask a question : What is the best hoster to install Django ? > Because Django is a very cool project, I

Re: Flup:Unhandled Exception

2009-02-08 Thread Dj Gilcrease
On Sun, Feb 8, 2009 at 11:17 PM, madhav wrote: > checked the lighttpd logs, all I see is "Interface Error/Connection > already closed." Its only occuring when my applicaiton is running in > FCGI mode. so the problem is with how flup is actually dealing with my >

Re: urlresolvers.reverse() breaks when given exactly one arg of more than one character

2009-01-27 Thread Dj Gilcrease
Thats because of an anouing thing with tuples where args=('12') is identical to args='12', you would need to do args=('12',) to make it work right Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Tue, Jan 27, 2009 at 7:07 PM, Fluoborate <motoy...@gmail.com> wrote: > &g

Re: Strange Model behavior

2009-01-25 Thread Dj Gilcrease
What do you need to do in __init__ Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.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: Cannot serve static files

2009-01-22 Thread Dj Gilcrease
Sorry that should be {{MEDIA_URL}} Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Thu, Jan 22, 2009 at 9:30 AM, Puneet Madaan <puneetmad...@gmail.com> wrote: > beside you need to correct settings.py to > > SETTINGS_FILE_FOLDER = os.path.dirname( os.path.a

Re: Cannot serve static files

2009-01-22 Thread Dj Gilcrease
change to Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Thu, Jan 22, 2009 at 8:53 AM, john <johnwalla...@gmail.com> wrote: > > No matter what i do i can't get my css to load. 100% Frustrated with > Django. My index page loads when i request http:/

Re: Port large webapp from PHP to Django: tips, experiences, links needed

2009-01-22 Thread Dj Gilcrease
On Fri, Jan 2, 2009 at 6:17 AM, Berco Beute wrote: > - Stack. What would currently be a good combination webserver/protocol/ > database? Possible options: Lighttpd, Cherokee, apache, FastCGI, > mod_python, wsgi, mysql, progress... I realize there is no 'best' > solution, but I

Re: building a blog site

2009-01-19 Thread Dj Gilcrease
On Mon, Jan 19, 2009 at 2:58 AM, joti chand wrote: > > anyone knows is there any blog site development example in django There are lots and lots of blog apps for django http://getbanjo.com/ http://code.google.com/p/django-basic-apps/ http://byteflow.su/

Re: What am i doing here

2009-01-19 Thread Dj Gilcrease
On Mon, Jan 19, 2009 at 1:55 AM, joti chand wrote: > > Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] > on > win32 > Type "help", "copyright", "credits" or "license" for more information. from mysite.polls.models import Poll, Choice >

Re: how to enforce uniqueness

2009-01-18 Thread Dj Gilcrease
On Sun, Jan 18, 2009 at 4:34 AM, Malcolm Tredinnick wrote: >> Right now, that is only enforced by the admin interface, > > I should have extended this to also say "and ModelForms", since if you > create a ModelForm from a Model, unique and unique_together are >

Re: reverse() problems (NoReverseMatch)

2009-01-15 Thread Dj Gilcrease
try from django.conf.urls.defaults import * urlpatterns = patterns('', url(r'^FaceSearch/search/$', 'facesearch.views.start_search', name="face-search'), ) from django.core.urlresolvers import reverse reverse('face-search') Dj Gilcrease OpenRPG Developer ~

Re: reverse() problems (NoReverseMatch)

2009-01-15 Thread Dj Gilcrease
whats your start_search function look like Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Thu, Jan 15, 2009 at 5:00 PM, Ian Cullinan <ian.culli...@nicta.com.au> wrote: > I'm trying to use django.core.urlresolvers.reverse in the url method of a > custom storage manager

Re: Printing elements to template as they happen

2009-01-15 Thread Dj Gilcrease
On Thu, Jan 15, 2009 at 2:05 PM, elspiko wrote: > > Thanks for your reply Bruno, my plan was to use AJAX anyway, as I > thought this would be the only method, I should have probably > mentioned this before, I apologise. > > In which case I'm still stuck as to how to

Re: Pickling a dictionary into a PostgreSQL database?

2009-01-15 Thread Dj Gilcrease
I would not use a dict like that, just uses more memory, I would create a ArticleVote models, something like http://dpaste.com/hold/109437/ I also show how I would use it in the views Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Thu, Jan 15, 2009 at 9:17 AM, teth <godsin

Re: need urls help

2008-12-29 Thread Dj Gilcrease
This would be best dealt with by creating a inclusion template tag http://docs.djangoproject.com/en/dev/howto/custom-template-tags/ Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Mon, Dec 29, 2008 at 7:41 AM, Bobby Roberts <tchend...@gmail.com> wrote: > > hi group

Re: Need Drop down menu code

2008-12-18 Thread Dj Gilcrease
Do you mean a select form item or a mouse over drop down menu? If you mean a select dropdown an example http://dpaste.com/hold/100463/ Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com --~--~-~--~~~---~--~~ You received this message because you

Re: Looking up a field's values against another model

2008-12-07 Thread Dj Gilcrease
my_choices = [(bo.id, bo.name) for bo in Business.objects.all()] business = models.ManyToManyField('Business', choices=my_choices) But can I ask why you are trying to set the choices value on a ManyToMany relationship? The admin will already automaticly only let you select from the Business

Re: Django is changing my html!

2008-12-04 Thread Dj Gilcrease
that what ever Doc-Type you are setting does not allow to be a child of the tag. Try moving your link inside the and see if it still produced unexpected results. Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Thu, Dec 4, 2008 at 7:58 PM, Malcolm Tredinnick <[EMAIL PROTECTED]>

Re: simple reverse( ) errors

2008-11-23 Thread Dj Gilcrease
should match one and only one url Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.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: Syncing two django applications via cURL

2008-11-13 Thread Dj Gilcrease
Is there a profound reason you are not using the same DB for all the sites, and just using django.contrib.sites to keep the content separated between them? Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com --~--~-~--~~~---~--~~ You received this message

Re: Is it possible to output JSON like this?

2008-11-07 Thread Dj Gilcrease
On Fri, Nov 7, 2008 at 12:17 AM, Darthmahon <[EMAIL PROTECTED]> wrote: > > Hi guys, I'll give both a try tomorrow when I am near my dev box > again. Can't really do it in the template as I just want to dump out > JSON only, but I'll give them both a go :) I use templates for all my JSON output,

Re: Is it possible to output JSON like this?

2008-11-06 Thread Dj Gilcrease
' : '{{ event.location }}', 'id' : '{{ event.id }}' }, {% ifchanged event.date %}]},{% endif %} {% endfor %}] Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Thu, Nov 6, 2008 at 2:21 AM, Alex Koshelev <[EMAIL PROTECTED]> wrote: > It's strange. I've just try this example and it is good: &g

Re: Django's decoupling apps but template should couple them together, right?

2008-11-04 Thread Dj Gilcrease
The point of decoupling the apps is so that you can share them with others without having to give them all of your site, and it make it ALOT easier to maintain since if you want to make changes to the way the menu works you dont have to read though hundred of lines of code dealing with the rest

Re: Python package names

2008-11-03 Thread Dj Gilcrease
On Mon, Nov 3, 2008 at 6:59 AM, Valts Mazurs <[EMAIL PROTECTED]> wrote: > Usually Django applications are specific to Django and are not really usable > outside Django. That's why seeing "tagging" in my site-packages directory > might confuse me as I could think that this package supports some

Re: Python package names

2008-11-03 Thread Dj Gilcrease
On Mon, Nov 3, 2008 at 4:24 AM, Steve Holden <[EMAIL PROTECTED]> wrote: > Why not just add .../site-packages/django_apps to your PYTHONPATH, > making direct imports from that directory possible? That seems much > easier than modifying the source, and it's a standard Python mechanism. Cause I

Re: Django's decoupling apps but template should couple them together, right?

2008-11-03 Thread Dj Gilcrease
On Mon, Nov 3, 2008 at 2:48 AM, ilmarik <[EMAIL PROTECTED]> wrote: > I've got controllers made as logical apps (controllers named > particularly) and whenever I need f.e. menu inside base layout, I > simply put {#menus/show/1} which means - return here compiled > controllers(menus) method(show)

Re: Python package names

2008-11-03 Thread Dj Gilcrease
l imports (eg. "from django_apps.tagging.fields import TagField") Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Django's decoupling apps but template should couple them together, right?

2008-11-02 Thread Dj Gilcrease
Yes exactly. http://dpaste.com/hold/88396/ is the inclusion tag that I use for my navigation menu @ http://www.gustafsonandassociates.com/ Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Sun, Nov 2, 2008 at 6:57 PM, ilmarik <[EMAIL PROTECTED]> wrote: > > a

Re: Django's decoupling apps but template should couple them together, right?

2008-11-02 Thread Dj Gilcrease
Once you get each working individually, I would make inclusion tags for the items that will be on every page (Menu, NewsList, Footer, Survey). The contents in the middle is what is shown by a view (At least in my setup) Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com

Re: looping to create an array of category breadcrumbs

2008-10-29 Thread Dj Gilcrease
list Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Wed, Oct 29, 2008 at 4:28 AM, coderb <[EMAIL PROTECTED]> wrote: > > hi Thomas, > > thanks for all the details, actually my post was not really clear on > what I have. > the category model looks like

Re: where is the error ?? dictionary update sequence element #0 has length 1; 2 is required

2008-10-24 Thread Dj Gilcrease
url(r'^auction/(?P\d+)/bid_history/$', 'assignment3.auction.views.bid_history' , {}, name='bid_history'), try that Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Fri, Oct 24, 2008 at 5:38 AM, Net_Boy <[EMAIL PROTECTED]> wrote: > > I change it to : (r'^a

Re: CSS link problem(how to call css)

2008-10-24 Thread Dj Gilcrease
{% block stylesheet %}{{ MEDIA_URL }}/css/gaslog.css{% endblock %} Should work Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Fri, Oct 24, 2008 at 1:10 AM, srini <[EMAIL PROTECTED]> wrote: > > Hi All, > i created one page template where i am trying to use

Re: ViewDoesNotExist: Even though it does

2008-10-23 Thread Dj Gilcrease
On Thu, Oct 23, 2008 at 7:20 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > On Wed, 2008-10-22 at 00:09 -0700, JonathanB wrote: >> Getting a very erratic Exception: >> >> ViewDoesNotExist: Could not import supplier.views. Error was: cannot >> import name Buyer My guess is something in

Re: Django Suitability

2008-10-23 Thread Dj Gilcrease
On Wed, Oct 22, 2008 at 9:51 PM, Matthew Talbert <[EMAIL PROTECTED]> wrote: > Could you share approximately how big your project is? I know it's > hard to find a real measure for this, but how about number of database > tables? A project I worked on over the summer used a Database that was 130

Re: Security Trimming and Roles

2008-10-21 Thread Dj Gilcrease
http://docs.djangoproject.com/en/dev/topics/auth/?from=olddocs#id6 http://docs.djangoproject.com/en/dev/topics/auth/#the-permission-required-decorator might be a good place to start reading Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com

Re: Get External IP Address

2008-10-17 Thread Dj Gilcrease
request.META.get('REMOTE_ADDR') Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.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: ldapauth and TLS

2008-10-16 Thread Dj Gilcrease
}, 'LDAP_DEBUG': True, } Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.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@google

Re: django on apache looses all styling

2008-10-16 Thread Dj Gilcrease
server just for static files), but more common setups would be MEDIA_URL = 'http://my.site.com/media/' ADMIN_MEDIA_PREFIX = MEDIA_URL + 'admin/' Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Thu, Oct 16, 2008 at 2:20 PM, William Purcell <[EMAIL PROTECTED]> wrote: > I see th

Re: ldapauth and TLS

2008-10-16 Thread Dj Gilcrease
Ahh yes, been a while since I messed with my settings for that file but I think this is what you need LDAP_OPTIONS = {'OPT_X_TLS_DEMAND': True} Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Thu, Oct 16, 2008 at 12:43 PM, Daniele Procida <[EMAIL PROTECTED]> wrote: > >

Re: ldapauth and TLS

2008-10-16 Thread Dj Gilcrease
LDAP_OPTIONS = 'ldap.OPT_X_TLS_DEMAND: True' should be LDAP_OPTIONS = {ldap.OPT_X_TLS_DEMAND: True} I would think Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Thu, Oct 16, 2008 at 12:04 PM, Daniele Procida <[EMAIL PROTECTED]> wrote: > > On Thu, Oct 16, 2008, J

Re: recursive relationship in model

2008-10-16 Thread Dj Gilcrease
that just take out the 3 fields that are used for generic relations. Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Thu, Oct 16, 2008 at 10:52 AM, coderb <[EMAIL PROTECTED]> wrote: > > hi all, > > I'm having trouble with a category table when trying to add rows

Re: Legacy databases

2008-10-16 Thread Dj Gilcrease
django and have, after digging into the internals enough to understand what I would need to do, decided to wait and follow the "Proposal: user-friendly API for multi-database support" thread on django-developer and wait for an official API Dj Gilcrease OpenRPG Developer ~~http://www.o

Re: RESTful API or SOAP in pre-magic

2008-10-15 Thread Dj Gilcrease
http://code.google.com/p/django-rest-interface/ Might be helpful to you Dj Gilcrease OpenRPG Developer ~~http://www.openrpg.com On Tue, Oct 14, 2008 at 10:03 PM, James Bennett <[EMAIL PROTECTED]> wrote: > > On Tue, Oct 14, 2008 at 10:39 PM, [EMAIL PROTECTED] <[EMAIL PR

Re: Problems using cron to run a python script

2008-03-04 Thread Dj Gilcrease
On Tue, Mar 4, 2008 at 4:55 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I'm trying to use a cron job to run a python script that updates feeds > on an aggregator site I'm building. But I'm getting trackback errors > telling me it can't import the module feedparser. Here's the error: >

Re: Django-AssetPackager

2008-02-25 Thread Dj Gilcrease
On Mon, Feb 25, 2008 at 7:11 AM, isolationism <[EMAIL PROTECTED]> wrote: > That said, I've come across a few bugs -- need to capitalize 'True' on > csstidy.py line 448. Opps, will fix > There is also something more serious afoot, as recompressing a > previously-compressed file results in a

Re: wordpress hooks and actions system in django?

2008-02-21 Thread Dj Gilcrease
On Thu, Feb 21, 2008 at 9:13 AM, Bram - Smartelectronix <[EMAIL PROTECTED]> wrote: > I was looking at that before, but... aren't django signals mostly for > one-sided communication? I.e. I signal something, someone else catches > it and does something. > > In wordpress it's very much 2-sided

Re: wordpress hooks and actions system in django?

2008-02-21 Thread Dj Gilcrease
On Thu, Feb 21, 2008 at 6:23 AM, Bram - Smartelectronix <[EMAIL PROTECTED]> wrote: > Basically plugins can register with the host app and say "I want to be > plugged in here or there" (the hook). The host app in various places has > calls which "apply" whatever is hooked into that location. >

Re: Django hosting service running Os C

2008-02-18 Thread Dj Gilcrease
On Feb 17, 2008 3:12 PM, Flavio Curella <[EMAIL PROTECTED]> wrote: > > Hi, > > I developed a small application using django and CoreGraphics library > as a school project. I'm wondering to put it online and I googled > around looking for a web hosting solution (shared or VPS) running on > Os X

Re: Head swimming - JavaScript libraries

2008-02-16 Thread Dj Gilcrease
On Feb 16, 2008 2:36 PM, Michael Hipp <[EMAIL PROTECTED]> wrote: > But actually I was hoping someone would come back with an answer like > "Just use XYZ, it's great and here's why..." I use jQuery and here's why... Because it is simple for me to understand and work with while allowing me to

Re: Using the sites-system with a twist - is it possible?

2008-02-15 Thread Dj Gilcrease
On Thu, Feb 14, 2008 at 12:41 PM, Johan Liseborn <[EMAIL PROTECTED]> wrote: > I tried your suggested approach, wrote a small middleware class, and > I actually got it working quite quickly, thanks! > > The thing I am thinking about now is if there is a way to make the > filtering part more

Re: reverse( ) and template tag 'url' fail when pattern has include

2008-02-13 Thread Dj Gilcrease
File "c:\django\trunk\django\core\urlresolvers.py", line 297, in > > > reverse > > > return iri_to_uri(u'/' + get_resolver(urlconf).reverse(viewname, > > > *args, **kw > > > args)) > > > File "c:\django\trunk\django\core\urlresolvers.py"

Re: FckEditor vs TinyMCE

2008-02-02 Thread Dj Gilcrease
On Feb 1, 2008 9:49 AM, Cull <[EMAIL PROTECTED]> wrote: > > We're just starting to consider text editing. > What is our easiest path here? TinyMce or FckEditor. The latter has > been our choice previously, but is there a post somewhere that > discusses who to do it? I haven't been about to find

Re: url tag and reverse()

2008-02-01 Thread Dj Gilcrease
On Feb 1, 2008 12:17 AM, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > Strange, I had thought that wasn't working, but I guess it must be. So > with that change this gets the right URL: > reverse('entry', > kwargs={'translatorName':'johndoe','entryName':'blogentry'}) > > But trying to use the