Re: Django Produces Python?

2017-03-26 Thread Ed Sutherland
I now understand the purpose and worth of Django. What, then, are the questions I need to ask potential hosts? I'm leaning toward Linode, but would also like affordable managed hosting. On Sun, 26 Mar 2017 04:16:52 -0400 Lachlan Musicman wrote If you take

Re: Django Produces Python?

2017-03-25 Thread Ed Sutherland
ways done it this way." - Grace Hopper On 26 March 2017 at 14:19, Ed Sutherland <e...@tburgnews.com> wrote: -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emai

Django Produces Python?

2017-03-25 Thread Ed Sutherland
Forgive me if this question is too basic, but I'm a relative newbie to programming frameworks. As I understand it, a framework is built to abstract common tasks within the native language (Python, PHP, Ruby, etc.) When development using a framework is complete, will the production version of the

Re: Migrations

2017-03-10 Thread Ed Sutherland
I certainly do. After a serious migration foul-up, I restarted the project. I'm now hoping there won't be a repeat. I wish there was a better way. On Fri, 10 Mar 2017 15:17:11 -0500 Matthew Pava wrote Does anyone else get a migraine when working migration

Re: Django Migrations?

2017-03-01 Thread Ed Sutherland
Sopacua wrote On Wednesday 01 March 2017 13:27:37 Ed Sutherland wrote: > I am a relatively new Django coder. I'm building a small custom CMS. > Whenever I get deep into development, I run into a migration problem: > an old error keeps halting newer migrations. I long ago fixed

Django Migrations?

2017-03-01 Thread Ed Sutherland
I am a relatively new Django coder. I'm building a small custom CMS. Whenever I get deep into development, I run into a migration problem: an old error keeps halting newer migrations. I long ago fixed the original error, but the migration continues to stop due to a now non-existent error. I know

Admin Portal Help (Django Tutorial)

2015-01-21 Thread Ed Volz
I've been following the Django tutorial and cannot get the Admin portal to work. Django is running via passenger in a shared environment on a virtual env with Python 2.7. The main page and admin portal load static resources (from static_url) just fine. Logging in with correct credentials yiel

Strange Behavior from the Django Admin (following tutorial on a shared server)

2015-01-21 Thread Ed Volz
Hi all, New to Django so I was following along with the tutorial and can get to the point of logging into the Administration portal (the main page works as well). Django is running with passenger in a virtualenv (python 2.7) on a shared host. I immediately receive a ERR_EMPTY_RESPONSE when

CSRF Failing after server upgrade.

2014-12-16 Thread Ed Rahn
is, I have not been able to reproduce it locally. This started happening after I upgraded from Ubuntu 14.04 to 14.10. Can anyone help me debug this? thanks Ed -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: Where does django store auth migrations?

2014-11-10 Thread Dr Ed
and a separate problem revealed this to me. I've included a stack trace below though. Cheers, Ed Running migrations: Applying auth.0002_customer_payingcustomer_projectmanager_staff...Traceback (most recent call last): File "./manage.py", line 10, in execute_from_command_

Re: Where does django store auth migrations?

2014-11-10 Thread Dr Ed
Yep, agreed. This is what I've done. Thanks for the reply! Cheers, Ed On Sunday, 9 November 2014 15:16:51 UTC+1, Cal Leeming [iops.io] wrote: > > Sounds like a bit of a weird edge case, I've had all sorts of problems > previously when moving to custom user models from a

Re: Where does django store auth migrations?

2014-11-10 Thread Dr Ed
On Sunday, 9 November 2014 14:50:54 UTC+1, Daniel Roseman wrote: > > On Sunday, 9 November 2014 13:40:12 UTC, Dr Ed wrote: >> >> Okay, I'm confused. I found it, in here: >> /Users//.virtualenvs//lib/python2.7/site- >> packages/django/contrib/auth/m

Re: Where does django store auth migrations?

2014-11-09 Thread Dr Ed
Okay, I'm confused. I found it, in here: /Users//.virtualenvs//lib/python2.7/site- packages/django/contrib/auth/migrations Why are app related migrations being stored in this location? Cheers, Ed On Friday, 7 November 2014 09:50:47 UTC+1, Dr Ed wrote: > > Hi all, >

Where does django store auth migrations?

2014-11-07 Thread Dr Ed
However when I do this, I get "TypeError: Staff cannot proxy the swapped model 'emailcustomuser.User'. " We don't actually need the proxy users, so I tried deleting them, but this didn't change anything (possibly because of these migrations I can't fi

Re: Django 1.4 tutorial part 1 seems broken at the superuser creation stage.

2013-06-17 Thread Ed
ng: (undefined) Number formatting: 123456789 is 123456789 3.14 is 3.14 $ On Monday, 17 June 2013 04:02:43 UTC-7, Tom Evans wrote: > > On Sun, Jun 16, 2013 at 8:06 AM, Ed > > wrote: > > Hello Dear Django Group. > > > > My first day with Django, I just got it insta

Django 1.4 tutorial part 1 seems broken at the superuser creation stage.

2013-06-16 Thread Ed
Hello Dear Django Group. My first day with Django, I just got it installed on my computer, and am trying to follow along with the first tutorial: https://docs.djangoproject.com/en/1.4/intro/tutorial01/ I have Django's development server up, and I'm able to see the "It worked!" Django welcome p

Re: Django tutorial

2012-04-10 Thread Ed McLaughlin
g for localhost. Not used with sqlite3. 'PORT': '', # Set to empty string for default. Not used with sqlite3. } } On Apr 10, 4:27 am, Ejah wrote: > Can you post the db part of your settings file? > > On 10 apr, 06:05, Ed McLaughlin wro

Re: Django tutorial

2012-04-09 Thread Ed McLaughlin
thon_mys... > > Otherwise, you can always use SQlite for dev environment until you go to > production. I find it a lot easier to manage. > > On 10 April 2012 10:54, Ed McLaughlin wrote: > > > > > > > > > Hello! I am working through the Django tutorial ( &g

Django tutorial

2012-04-09 Thread Ed McLaughlin
Hello! I am working through the Django tutorial ( https://docs.djangoproject.com/en/1.4/intro/tutorial01/ ) and I have hit a roadblock in the 'database setup' portion of part 1. When I enter the command 'python manage.py syncdb' I get the error below. I believe I properly installed MySQL Community

Re: foreign key select widget with "add" link

2012-01-25 Thread Ed
http://www.hoboes.com/Mimsy/hacks/replicating-djangos-admin/ -- 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.com/d/msg/django-users/-/-SBv03JcdswJ. To post to this group, send emai

Re: problem with BooleanField form

2011-07-22 Thread ed
Ok. That last one actually worked. Just needed to a browser refresh to re-load the script. That's a total noob mistake. My bad. Thanks all :) On Jul 21, 10:49 am, ed wrote: > You mean like this: > >         var data = { >                 url: item.find("#id_url").val

Re: problem with BooleanField form

2011-07-21 Thread ed
; Tried it. 'share' is still showing up false... On Jul 21, 1:29 am, Daniel Roseman wrote: > On Thursday, July 21, 2011 4:00:55 AM UTC+1, ed wrote: > > > I'm using the following javascript, so I can't check the HTML, can I? > > How would I go about

Re: problem with BooleanField form

2011-07-20 Thread ed
I'm using the following javascript, so I can't check the HTML, can I? How would I go about debugging this? function bookmark_save() { var item = $(this).parent(); var data = { url: item.find("#id_url").val(), title: item.find("#id_title").val(),

problem with BooleanField form

2011-07-20 Thread ed
I'm learning Django by following the turorials in Django 1.0 Website Development by Ayman Hourieh. I've been banging my head for a while on this and I know it's probably something really simple that I'm missing. I'm using the following form: class BookmarkSaveForm(forms.Form): share = fo

Re: Django installation error: Cannot install Django in Python site-package

2011-07-06 Thread Ed Castano
You hit the nail on the head. The command import django executed in the Python interpreter. Getting started seems like a giant uphill battle, but fortunately I am quite determined. It also helps to have helpful people like you supporting my learning. Thanks again! -Ed On Jul 6, 2:44 pm

Django installation error: Cannot install Django in Python site-package

2011-07-06 Thread Ed Castano
in python Any help will be immensely appreciated. Thanks, Ed I also tried manually changing the file permissions by unchecking "Read only". -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

GeoDjango issue with pysqlite

2011-06-15 Thread Ed
Hi, I have followed the installation guide to the letter but am still having issues when trying to syncdb. I get the following error "The pysqlite library does not support C extension". I have installed pysqlite with the following setup.cfg [build_ext] #define= include_dirs=/Library/Frameworks

Django News Site Resources

2011-04-08 Thread Ed Sutherland
Can anyone point me to some resources for building a Django-based news site? -- 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 djang

Custom management commands from the admin interface

2010-12-24 Thread Ed
I am having difficulty getting my custom command to run on schedule. I'm using django-chronograph, but I can't seem to get it to run like it can (successfully) from the command line. Before I go into the background of this problem, I will state my question: H*ow might I run a custom management

Override data validation on one django form element

2010-12-02 Thread Ed
I have a select list dropdown box on my form that is populated with data from a Model (Directors). The value of this dropdown doesn't need to be saved; it is really only used to dynamically trigger another element of the form (a dropdown titled Films). So when the user chooses a Director, it dynami

Use Django's url template tag with special characters

2010-11-21 Thread Ed
I'm using django's url tag to move from one view to another: Read more here For most "items" this works perfectly. But I have an "item" with a / character: Sci-Fi/Fantasy. In this instance, I get an error Caught NoReverseMatch while rendering: Reverse for 'wiki_view' with arguments '(u'Sci-fi/Fa

Re: Dynamic user-filtered search

2010-11-15 Thread Ed
x27; ] = 2005 That is fed into the query: query_set = Film.objects.filter(**incdict) Ok, I hope that was clear. What I ask now is how to protect against the unscrupulous user who seeps to bypass/exploit the input. Do I need to escape special characters? Data validation? What is the best way to

Re: Dynamic user-filtered search

2010-11-12 Thread Ed
Cool. I'll to some work on this and check back to make sure it's not insecure. On Nov 12, 7:27 am, Masklinn wrote: > On 2010-11-12, at 13:20 , Ed wrote: > > > > > It seems simple from a SQL point of view, but I'm wondering what the > > best implementation

Dynamic user-filtered search

2010-11-12 Thread Ed
I'm brainstorming a search function for the user that is similar to iTunes Smart Playlists. I can currently display all of the release years for all of the films in the database. A user can pick a year and see all of the films released in that year. Or I can show all of the genres of movie. A user

Re: Exclude form field when calling form from view

2010-11-09 Thread Ed
request.POST/ FILES? Thank you for your help so far, Ed On Nov 9, 3:33 am, Knut Ivar Nesheim wrote: > The problem is here: > >  if request.method == 'POST': >                form = UploadFileForm(request.POST, request.FILES) > > You need to make sure you always pass in

Re: Exclude form field when calling form from view

2010-11-08 Thread Ed
# custom upload and validation code here > > class ThumbnailUploadForm(UploadForm): >     pass > > class UploadFileForm(UploadForm): >     title = ... > > As for your current approach, it looks correct. I've done the same > several times and it works as expected. Make sure yo

Exclude form field when calling form from view

2010-11-08 Thread Ed
I have an image upload form that takes a title and a file for its field. I have two uses for it. Most of the time I call it, I need both a title and the image itself. But when I call it simply to grab a thumbnail, I don't need the title. In fact, the form data is saved to a different model that doe

Re: Query field across multiple django models

2010-10-26 Thread Ed
, bruno desthuilliers wrote: > On 26 oct, 15:48, Ed wrote: > > > I do like this a lot.  If I use post_save, is there a way to grab the > > field that is altered? > > Nope, you have to use "pre_save" for this, load another (yet > unmodified) copy of your model

Re: Query field across multiple django models

2010-10-26 Thread Ed
I do like this a lot. If I use post_save, is there a way to grab the field that is altered? I know the admin page seems to be able to determine the changed field. . . On Oct 26, 9:41 am, bruno desthuilliers wrote: > On 26 oct, 13:25, Ed wrote: > > > > > > > > >

Re: Query field across multiple django models

2010-10-26 Thread Ed
ust expose a method on each model that returns a sortable value > that is consistent across all the models. (Or write a dedicated > function to use instead of the lambda above, whichever makes more > sense.) > > On Oct 26, 7:25 am, Ed wrote: > > > > > > > > > I want

Query field across multiple django models

2010-10-26 Thread Ed
I want to create a "What's New" section that lists all of the database changes in the last day. I've added an "updated" field to my models: class Film(models.Model): . . . updated = models.DateTimeField(auto_now=True) class Actor(models.Model): . . . updated = models.DateT

Re: Expense of django query

2010-10-20 Thread Ed
Brilliant. Thanks! On Oct 20, 9:41 am, Javier Guerra Giraldez wrote: > On Wed, Oct 20, 2010 at 7:59 AM, Ed wrote: > > what is the purpose of ifchanged? > > since the images are sorted by film, if you just show the film for > every image it would be repeated.  with {% ifch

Re: Expense of django query

2010-10-20 Thread Ed
Thanks for the suggestion. Javier's was exactly what I needed. The one question I have is why what is the purpose of ifchanged? I'm aware of the command but I don't see the purpose of it within a loop. On Oct 20, 5:18 am, Daniel Roseman wrote: > On Oct 19,

Re: Expense of django query

2010-10-19 Thread Ed
Thanks for the answers. I thought that the view was already pulling the data. I didn't realize it gets pulled when called in the template. I was able to rewrite the view to provide the data more efficiently. I have another related question on the topic of query expense. What is the best practi

Expense of django query

2010-10-19 Thread Ed
I have a table for Actor that I query and populate the result in actor_list to pass to the template. I installed the Django Debug Toolbar to check the queries hitting the database and found some strange behavior. If I iterate through the actor_list, only one SQL query is created, as expected: {% f

Re: Forms and 'prefix' parameter

2010-08-04 Thread Ed Schofield
On Aug 5, 2:23 pm, Karen Tracey wrote: > On Thu, Aug 5, 2010 at 12:10 AM, Ed Schofield wrote: > > Hi everyone, > > > I'm trying to use a view with multiple forms under Django 1.2.1. I'm > > puzzled that the prefix parameter seems to screw up validation. Here

Re: Forms and 'prefix' parameter

2010-08-04 Thread Ed Schofield
On Aug 5, 2:23 pm, Karen Tracey wrote: > On Thu, Aug 5, 2010 at 12:10 AM, Ed Schofield wrote: > > Hi everyone, > > > I'm trying to use a view with multiple forms under Django 1.2.1. I'm > > puzzled that the prefix parameter seems to screw up validation. Here

Forms and 'prefix' parameter

2010-08-04 Thread Ed Schofield
= forms.IntegerField(required=False) >>> field2 = forms.IntegerField() >>> >>> f1 = MyForm(data={'field1': 1, 'field2': 2}) >>> f2 = MyForm(data={'field1': 1, 'field2': 2}, prefix='p') >>> >>&

NullBooleanField save error in Admin

2010-03-09 Thread Ed Hagen
Hi, I have a model field defined thus: benefit = models.NullBooleanField() In django 1.1 and 1.2 pre-alpha, nulls were displayed with a "?" icon in list view. In the Admin change form, a pop-up menu appeared with 3 options (Unknown, Yes, No). Setting to "Unknown" and saving did not generate any

RE: showing user data in a view

2009-10-13 Thread Ed Kawas
write a wrapper around it if you wanted. def x_edit(request, x_id): x = X.objects.get(id = x_id) if x.user != request.user: return HttpResponseRedirect('/you cant edit that/') return update_object(request, model = X, object_id = x_id,) On Oct 12, 1:51 pm, "Ed Kawa

RE: showing user data in a view

2009-10-12 Thread Ed Kawas
You can split that into multiple views if you want, but the idea is to do the check before saving the object. On Oct 12, 1:25 pm, "Ed Kawas" wrote: > That works for retrieving information, but how can I save information too? > > Thanks for your patience, > > Ed

RE: showing user data in a view

2009-10-12 Thread Ed Kawas
d- in-users-that-pass-a-test On Oct 12, 11:40 am, Ed wrote: > Hi All, > > I am completely lost. I *think* that I have read most of the doc that > i can find and I must be pretty dense, because I cannot figure this > one out ... > > Let me outline what i have and where i want

showing user data in a view

2009-10-12 Thread Ed
Hi All, I am completely lost. I *think* that I have read most of the doc that i can find and I must be pretty dense, because I cannot figure this one out ... Let me outline what i have and where i want to go! model: # an X class X(db.Model): user = models.ForeignKey(User, unique=True) nam

Re: Database connection closed after each request?

2009-09-01 Thread Ed Menendez
Just to throw my two cents in. My background is high-traffic fantasy sports websites (a different sort of geekness) and I've dealt with connection pooling and connection persistence separately on other ancient platforms. I will +1 Alex's observation that connection pooling and persistent connectio

Watercrest - Technology Contractor Solutions

2009-07-20 Thread Ed
start with an excellent chance of extension. Location is downtown Toronto. If it’s not for you, maybe someone you know? Cheers, Ed Rix Resource Planning Watercrest "Bridging People with Technology" (888) 244-7550 ext.110 e...@watercrest.net --~--~-~--~~~---~--

django + rest

2008-12-29 Thread Ed Summers
er way. Or perhaps there's a more django-y way of doing it? Any info/pointers/tips would be appreciated. //Ed --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group

Re: Specify that syncdb not create a table for a Model

2008-10-08 Thread Ed Anuff
On Oct 7, 6:32 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > >  On the roadmap? > > Yes. Should certainly be in 1.1. Probably land in a few weeks. Awesome, couldn't ask for more, thanks :) --~--~-~--~~~---~--~~ You received this message because you are subs

Specify that syncdb not create a table for a Model

2008-10-07 Thread Ed Anuff
he same table, which works, but I also want to eventually use syncdb to create the database and want it to be able to handle the situation correctly. Still not possible? Something I can easily hack Model to do myself? On the roadmap? Ed --~--~-~--~~~---~--~~ You r

Re: django web hosting

2008-09-03 Thread Ed Wong
Thanks all for your advice. You have given me great info. I too have heard good things about webfaction. I will research more into them. Thanks again! :) On Sep 3, 11:57 am, "Abdallah El Guindy" <[EMAIL PROTECTED]> wrote: > Google app engine provides free hosting, with Django support > > Link

django web hosting

2008-09-02 Thread Ed Wong
hi all, i am looking for a good web host for my django website. does anyone suggest a good host? thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to d

Re: Problems Pickling Querysets

2008-07-18 Thread Ed Menendez
Ticket #7813. Let me know if I messed up the ticket report!! :-) Thanks, - Ed On Jul 18, 11:43 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2008-07-18 at 09:34 -0700, Ed Menendez wrote: > > I saw a previously closed ticket 7506 for a related (no pun intended)

Problems Pickling Querysets

2008-07-18 Thread Ed Menendez
in _reduce_ex raise TypeError, "can't pickle %s objects" % base.__name__ TypeError: can't pickle function objects Is this supposed to be supported? Did we just get lucky when it used to work in a previous version? Let me know if you need more info! - Ed --~--~-~-

Re: psycopg2

2008-06-25 Thread Ed McCaffrey
Even if it had the most beautiful site in the world, and that was enough to get permission to use it, a responsible developer would write some unit tests and check the items that he asked in his original question. His highly-qualified scientists probably won't have any idea that a database driver

Will Django be upgraded to Python 3.0 after the 1.0 release?

2008-06-24 Thread Ed McCaffrey
Hello, My project consists of a couple of stand-alone applications that gather and process the data that the eventual Django-powered site will serve. I'm seeing at least 6-8 months until work on the site will begin. Is there a plan for upgrading Django to Python 3.0? Thanks. --~--~-~--

Re: problem with forms with db access

2008-06-15 Thread ./ed
empty_label key as None but now it works! ./ed On Jun 15, 5:16 pm, "./ed" <[EMAIL PROTECTED]> wrote: > Thanks a lot! > i had the feeling it was a class/instance issue > it should work fine now > > Thx again > > ./ed > > On Jun 15, 4:53 pm, "James

Re: problem with forms with db access

2008-06-15 Thread ./ed
Thanks a lot! i had the feeling it was a class/instance issue it should work fine now Thx again ./ed On Jun 15, 4:53 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On Sun, Jun 15, 2008 at 7:58 AM, ./ed <[EMAIL PROTECTED]> wrote: > > the problem is that wh

problem with forms with db access

2008-06-15 Thread ./ed
like that. As anyone an idea how I can fix this problem because I can't allow users to 'touch' the python files Thanks ./ed --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&qu

Re: building distributed systems with django?

2008-06-08 Thread Ed McCaffrey
Twitter isn't a good candidate for simply creating a cache and replicating your database. I'll just post a link, since it goes along with my own thoughts. http://ayende.com/Blog/archive/2008/06/03/Architecting-Twitter.aspx On Sun, Jun 8, 2008 at 12:32 PM, lgr888999 <[EMAIL PROTECTED]> wrote: >

Re: Is there any Django module like ViewCV for svn repositories?

2008-06-03 Thread Ed McCaffrey
I don't know if Trac is Django powered, but you may be able to port parts of it for what you need. On Tue, Jun 3, 2008 at 11:52 AM, The Code Janitor <[EMAIL PROTECTED]> wrote: > > I want to have a source code repository view on my Django site. I can > not find any such module available. Mostly I

Re: How nicely does django play in a distributed environment?

2008-06-02 Thread Ed McCaffrey
I'm new to Django, as well, so don't take this reply as authoritative. Chapter 20 of The Django book -- www.djangobook.com -- details various deployment scenarios, including ones distributed among several servers. It suggests that it is relatively easy to scale Django across several tiers (web ti

Re: American Idol game developed in Django

2008-02-18 Thread Ed Menendez
http://aigame.wwudo.com/ Seems like that other URL is not working for everybody... Thanks everyone for all the info (on the group and on the sites!). The documentation for this framework really makes a difference. On Feb 18, 12:41 pm, Ed Menendez <[EMAIL PROTECTED]> wrote: > This was

American Idol game developed in Django

2008-02-18 Thread Ed Menendez
http://aigame.digitalhaiku.com/ Special thanks to Eric Florenzano who gave us our introductory class in Django. Hope this motivates some developers that are on the fence on using Django. - Ed --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: Newbie: How to create different person models that share a profile model?

2007-08-25 Thread Ed Hagen
That will work -- assigning roles to Users makes sense. But, using your setup, is there any way to enforce a single role per User? As it is now, a single User could be assigned both a student and teacher role. Many thanks for your help. Ed

Newbie: How to create different person models that share a profile model?

2007-08-24 Thread Ed Hagen
After finally realizing that in django one cannot subclass models, and then reading as much as I could find on alternative approaches, I think I am close to a solution to the following problem, but I can't quite seem to get all the way there on my own: In simplified terms, I want multiple types

How to preload all object fields for a QuerySet? (GenericForeignKey and select_related())

2006-11-29 Thread Ed
Hello, is there a way to force the django db model to load all fields for a particular model _including_ any generic foreign keys (it doesn't seem to do this by default). Currently: Account.objects.select_related() will load all 'simple' fields like IntegerField, CharField, etc, but not GenericFo

OneToOneField

2006-11-28 Thread Ed
= models.IntegerField() >>> client = Client.objects.get(pk=1) >>> len(connection.queries) 1 >>> client.account.balance 400 >>> len(connection.queries) 2 >>> client.account.balance 400 >>> len(connection.queries) 3 Is this a bug or a is there some co

Wrapping dispatcher/signal functionality

2006-11-17 Thread Ed
Hi django users, I'd like to write a decorator for connecting functions like such: def connect(sender, signal): def _connect(fn): dispatcher.connect(fn, signal=signal, sender=sender) return _connect ... @connect(Account, signals.post_save) def reset_account_balance(sender, instance, sig

Template inclusion tags, include once

2006-11-05 Thread Ed
Is it possible to create a constraint that only allows a template tag to be used only once? This would be useful for a template inclusion tag that includes inline javascript. Thanks, Ed. --~--~-~--~~~---~--~~ You received this message because you are

Re: Returning an average from a Related Field.

2006-10-24 Thread Ed
Hi John, thanks for your introduction to django dispatchers. I think this is a greatly overlooked facility and has many applications. > 1- signals. Benefits: it works with all dbs (supported by django), the > fields are sortable using the api. Drawbacks: you can't use non-django > code to do dat

Using django.core.urlresolvers

2006-10-21 Thread Ed
n the view. So my question is how do I go about using the urlresolvers module with generic views? Is it even possible, or should I not be using this module at all? thanks. Ed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Using django.core.urlresolvers

2006-10-21 Thread Ed
n the view. So my question is how do I go about using the urlresolvers module with generic views? Is it even possible, or should I not be using this module at all? thanks. Ed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: URL generation, symbolic referencing possible?

2006-10-21 Thread ed chan
at 1:47 PM, Ed wrote:>> Hello, currently url patterns are hard coded into urls.py, in the> templates, and in some cases the views which return redirects. This is> becoming a dangerous practice in our application development.  If one > url needs to be changed due to an update in

URL generation, symbolic referencing possible?

2006-10-21 Thread Ed
Then in a template, refer to url as (using some fictional 'url' templatetag): link Or in a view as: return HttpRedirectResponse(urlhelper.get(URL_VIEW_RESPONSE, x.id, y.id)) Please advise, thanks. Ed. --~--~-~--~~~---~--~~ You received this message bec

Re: PostgreSQL Schemas.

2006-04-16 Thread Ed Epstein
port? I just looked at the online technet docs for it and I couldn't find any mention of it anywhere. I have a very old copy of SQL Server 7 that I could use to test with-- does that version support schemas in the same manner as the most recent ones? --Ed --~--~-~--~~~

Re: PostgreSQL Schemas.

2006-04-15 Thread Ed Epstein
emas? If the latter, why? I find them very useful. --Ed --~--~-~--~~~---~--~~ 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

Re: PostgreSQL Schemas.

2006-04-14 Thread Ed Epstein
tch for adding schema support: > > http://code.djangoproject.com/ticket/1051 > > That's on an older version of Django but may give you some ideas. It did give me some ideas, but I really think that schemas should be a per-app setting (which I suppose is more accurately called a per-mo

Re: PostgreSQL Schemas.

2006-04-14 Thread Ed Epstein
Well I managed to get introspectdb working with schemas, but I don't know if it's the right solution. What I'm doing right now is modifying the schema search path. If you think it's a good idea, I'd probably suggest looking at adding a per project per app setting that specifies a schema. It would

PostgreSQL Schemas.

2006-04-14 Thread Ed Epstein
figure out where these sorts of calls are made, but this will be the first time that I've looked at the Django source, so I thought I'd just ask in case I can get an answer here sooner. --Ed --~--~-~--~~~---~--~~ You received this message because you a