Re: Instantiate model object with dictionary?

2007-06-30 Thread Steve Bergman
as trying to do: m = MyModel(my_dict) instead of m = MyModel(**my_dict) Works now. :-) -Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send

Eroneous error with development server: 'module' object has no attribute 'urlpatterns'

2007-07-01 Thread Steve Bergman
x27;, 'DISPLAY': 'unix:1000.0', 'DJANGO_SETTINGS_MODULE': 'mgn.settings', 'GATEWAY_INTERFACE': 'CGI/ 1.1', 'GNOME_DESKTOP_SESSION_ID': 'Default', 'GNOME_KEYRING_SOCKET': '/ tmp/keyring-PZpbwV/socket', 'GTK_RC_F

Rendering a template to the browser on the fly using an iterator?

2007-07-04 Thread Steve Bergman
ble to render a template straight down the wire to the browser on the fly. Is this possible? Thanks for any assistance, Steve Bergman --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: Rendering a template to the browser on the fly using an iterator?

2007-07-04 Thread Steve Bergman
lways dealing with large sets of data and big tables. With iterative rendering (and if the Firefox guys would fix the performance issues with large tables) I'd be happy as a clam. -Steve --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: Building forms by hands

2007-07-07 Thread Steve Bergman
right? If your form instance is called 'form' and has fields lastname and firstname, you can put something like: {{ form.lastname }},{{ form.firstname }} in your template and have full control over the way the form looks. You don't have to accept the default arrangement that D

Re: Eroneous error with development server: 'module' object has no attribute 'urlpatterns'

2007-07-07 Thread Steve Bergman
I'm still seeing this with 5631. It is definitely after I hit a syntax errror in my code that I see the behavior. I'm wondering if I am the only one seeing this. Or if is perhaps expected behavior. Thanks, Steve Bergman --~--~-~--~~~---~--~~ You rec

Re: Eroneous error with development server: 'module' object has no attribute 'urlpatterns'

2007-07-07 Thread Steve Bergman
try to load the main page. That's when I get the above output. I would prefer that the development server either restart itself or abort completely so that I could have a shell script restart it as necessary. Thanks, Steve P.S. It also occurs to me that I should have switched to cut and paste

Re: Eroneous error with development server: 'module' object has no attribute 'urlpatterns'

2007-07-07 Thread Steve Bergman
This problem seems to occur whenever there is any syntax error in my code *anywhere*. I just introduced one about a hundred lines into my view function and triggered it. Here is a simple test case, complete with sample syntax error: === urls.py: from django.conf.urls.defaults import * from

Re: Eroneous error with development server: 'module' object has no attribute 'urlpatterns'

2007-07-07 Thread Steve Bergman
t the problematic one is running CentOS 4.4/Python 2.3.4 and the CentOS 5.0 box is running Python 2.4.3 and also happens to be running X86_64. Could this be a Python 2.3.x issue? -Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Integrating Django with existing site.

2007-09-04 Thread Steve Potter
jango without using the URL system? Thanks, Steve Potter --~--~-~--~~~---~--~~ 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: Integrating Django with existing site.

2007-09-04 Thread Steve Potter
Joomla system until I have finished converting all of the modules. Thanks, Steve Potter --~--~-~--~~~---~--~~ 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

Re: Integrating Django with existing site.

2007-09-05 Thread Steve Potter
having a hard time understanding is how the request is made from the php script to Django. Would it be best to make the request to the localhost using something like CURL? Thanks, Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Integrating Django with existing site.

2007-09-05 Thread Steve Potter
On Sep 5, 11:31 am, "Dorai Thodla" <[EMAIL PROTECTED]> wrote: > Steve, > This is a great idea that may work as a migration strategy from lot of other > portals/content management systems or even websites. I wonder whether there > is some wikispace where we can p

Django on Nokia 770?

2007-09-05 Thread Steve Bergman
Does anyone have comments about the possibility of running a django server on the Nokia 770? Is it possible? I have a simple app that I want to demo on it with both the django server and the browser running on the same device. --~--~-~--~~~---~--~~ You received

Re: Experimental port of Django to Java

2008-01-04 Thread Steve Lianoglou
> I have posted what I have so far on google code (http:// > code.google.com/p/javango) if anyone is interested. Interesting, for sure ... -steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django u

got unexpected keyword argument 'widget'

2008-01-06 Thread Steve Bergman
I have a model field that I want to change the attrs on when displayed by newforms. I thought I could do something like: class Timesheet(models.Model): date = DateField(widget=forms.TextInput()) and then define my attrs in the widget. But syncdb is complaining: TypeError: __init__() got a

Re: got unexpected keyword argument 'widget'

2008-01-06 Thread Steve Bergman
Never mind. Clearly, I was confusing my models with my forms. --~--~-~--~~~---~--~~ 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 fr

Status of iterative rendering?

2008-01-18 Thread Steve Bergman
e non-iterative behavior and am willing to live with that limitation.) Thanks, Steve Bergman --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: ajax toolkit suggest request

2008-01-20 Thread Steve Bergman
On Jan 20, 6:49 am, Artiom Diomin <[EMAIL PROTECTED]> wrote: > Seems like you want someone write it for you? > It costs money :) It's good that he provided a description of what he wanted to accomplish. What he wants does not really require ajax. A bit of javascript might make it nicer. To t

Re: Striped tables in Django

2008-01-22 Thread Steve Bergman
Look up the "cycle" template tag. It will do exactly what you want. --~--~-~--~~~---~--~~ 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 unsubscr

Re: How to integrate with admin?

2008-03-02 Thread Steve Potter
Take a look at chapter 17 of the django book http://www.djangobook.com/en/1.0/chapter17/ it covers exactly this. Steve On Mar 2, 1:53 pm, NoiZe <[EMAIL PROTECTED]> wrote: > Hi! > > I'm building an e-commerce site in Django and wonder how to add > functionality to the

Multiple form instances in context (newforms)

2008-03-03 Thread Steve Potter
ist }} Category: {{ site.form.category }} Notes: {{ site.form.category }} {{ endfor }} I guess I am just at a loss as to how I would create the appropriate instances of the form and make them available in the context. Any help would be apprecia

Re: Multiple form instances in context (newforms)

2008-03-03 Thread Steve Potter
view is taking care of pagination etc to reduce the queryset the a manageable size. Is it possible for the view to call a model method to create the form instance. Maybe I am making this way to complicated Steve On Mar 3, 9:04 pm, Michael <[EMAIL PROTECTED]> wrote: > This blog post

Re: Eliminating DRY violations in urlpatterns

2008-04-07 Thread Steve Potter
s('', > url(r'^order/(?P\d+)/$', order), > url(r'^orderentry/order/(?P\d+)/$', order), > ) > > What (if anything) am I doing wrong here? How can I get the first URL > to be like the second one? Steve --~--~-~--~~~

Re: Has anyone made an MS excel exporter in a django site yet?

2008-04-09 Thread Steve M
It it's just one table, you can write an HTML table and name the file with the .xls extension. Excel will open it just fine. Something like this: On Apr 9, 6:43 pm, Roboto <[EMAIL PROTECTED]> wrote: > I'm curious =P A couple of my users are requesting that I find a way > to export some data to e

Help with getting drop-downs to work

2008-04-13 Thread steve skelton
Trying to get admin on my system to load values based on related tables on db. I have set the FK on the papers table to tie with the PK of each look-up table and set models like so: class LuPaperContentEra(models.Model): paper_content_era = models.CharField(blank=True, maxlength=150) def

Re: Help with getting drop-downs to work

2008-04-13 Thread steve skelton
sorry I forgot to specify - am using 0.96.1 (django) and MySQL 5.0.51a (server) and 5.1.11 (client) and my local install is on Vista laptop with Apache and PHP also installed. On Apr 13, 8:24 pm, steve skelton <[EMAIL PROTECTED]> wrote: > Trying to get admin on my system to load values

Re: Help with getting drop-downs to work

2008-04-13 Thread steve skelton
Apr 13, 8:35 pm, Michael <[EMAIL PROTECTED]> wrote: > Try changing __unicode__ to __str__. The unicode merge was after .96 and > therefore it isn't looking for __unicode__ to define the name of the field. > > Hope that helps, > > Michael > > On Sun, Apr 13, 2008 at

Re: Help with getting drop-downs to work

2008-04-13 Thread steve skelton
]> wrote: > On Sun, Apr 13, 2008 at 9:28 PM, steve skelton <[EMAIL PROTECTED]> > wrote: > > > > > sorry I forgot to specify - am using 0.96.1 (django) and MySQL 5.0.51a > > (server) and 5.1.11 (client) and my local install is on Vista laptop > > with Apache a

Re: Help with getting drop-downs to work

2008-04-13 Thread steve skelton
ting. It's a bit frustrating because if I could get this one last issue resolved I have gone quite a ways towards finishing this little job. This is my very first Django project, BTW. Thanks for all your help! On Apr 13, 9:26 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: >

Re: Help with getting drop-downs to work

2008-04-13 Thread steve skelton
acch!-- idiocy located and destroyed. there was a null field in the countries list. Yahoo!! thanks! On Apr 13, 9:26 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Sun, Apr 13, 2008 at 9:48 PM, steve skelton <[EMAIL PROTECTED]> > wrote: > > > > >

unsubscribe

2008-04-16 Thread steve skelton
STOP SENDING EMAILS TO [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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 e

ForeignKey = True invalid

2008-04-27 Thread steve skelton
i am setting up an app based on existing data and have several drop- downs on the admin page to display various standard choices. i do not want to require an entry if possible. is there a way to set ForeignKey to allow blank or, alternately, a way to provide a default on save? TIA --~--~---

Re: ForeignKey = True invalid

2008-04-27 Thread steve skelton
never mind! figured it out - just moved blank=True after the FK name. sorry! On Apr 27, 11:13 am, steve skelton <[EMAIL PROTECTED]> wrote: > i am setting up an app based on existing data and have several drop- > downs on the admin page to display various standard choices. i do n

displaying subsets of data from an existing model in the admin panel

2008-04-27 Thread steve skelton
I have created a django app that loads and displays all the data from the db from the papers link on the admin panel. i'd like to add links that just display subsets of the db but have not figured out quite how to do this -- some views do work but what i need is to allow the user to view and chan

Value Error after update to latest Django

2008-06-13 Thread Steve Potter
I just updated the the latest version of Django and I started getting the following error in the admin interface: Caught an exception while rendering: invalid literal for int() with base 10: 'None' It seems to be the result of a model I have with a DateTimeField with both null and blank set to T

Re: Value Error after update to latest Django

2008-06-14 Thread Steve Potter
On Jun 13, 7:47 pm, Steve Potter <[EMAIL PROTECTED]> wrote: > I just updated the the latest version of Django and I started getting > the following error in the admin interface: > > Caught an exception while rendering: invalid literal for int() with > base 10: 'No

Re: Value Error after update to latest Django

2008-06-14 Thread Steve Potter
en Thanks for pointing out the bug report. The original poster of the bug report seems to have narrowed down the problem. I will see what I can do to fix it. Thanks, Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &

Re: ugh, TypeError: Cannot resolve keyword err ...

2008-06-20 Thread Steve Potter
BySelector.js', > '/admin/media/filebrowser/js/AddFileBrowser.js', > '/media/js/tiny_mce/tiny_mce.js', > '/media/js/TinyMCEAdmin.js', > '/media/js/admin.js', > ) > > def __u

Re: CSV updater, 2 saves in one function. Problem?

2008-07-10 Thread Steve Potter
ink of is maybe you have a mix of white- space characters in your file. You should use either tabs, or spaces to indent your code, not both. Does your editor offer an option to show tabs and spaces so you can see if you have a mix? Steve --~--~-~--~~~---~--~~ You re

Re: Which ajax framework django will support in the upcoming 1.0, prototype/dojo/jquery?

2007-04-10 Thread Steve Bergman
To me, that does not seem very DRY. Even after the developer decides upon a javascript library to use, there is still a lot of boilerplate involved to do common things like populating one widget based upon what the user selects in another widget. I often need to populate one widget based upon w

id IntegrityError with create_update.create_object

2007-04-23 Thread Steve Hershman
models.CharField(maxlength=100)) timestamp = models.DateTimeField('Date Posted', auto_now=True, blank=True) Thanks in advance for your help. Best, Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: id IntegrityError with create_update.create_object

2007-04-23 Thread Steve Hershman
Never mind. I had somehow destroyed my DB. I destroyed and remade it and the problem went away. On Apr 24, 12:10 am, Steve Hershman <[EMAIL PROTECTED]> wrote: > Hi, > > I'm a Django noob, but I don't think this question has been asked > b

Re: Broken pipes with HttpResponseRedirect and Firefox / Trouble in paradise

2007-05-26 Thread Steve Freitas
to confirm that it was Firefox's fault, but I did know IE didn't do it. Perhaps you could file a bug against Firefox? Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Django deployment options

2007-09-19 Thread Steve Potter
I currently have a dedicated server running a Cpanel installation with several virtual hosts. I would like to install Django on this server and as far as I can tell, I have several options. 1. Add mod_python to existing Apache installation 2. Add FastCGI to existing Apache installation 3. In

Re: Django deployment options

2007-09-19 Thread Steve Potter
> > 5. Use a different server. > > Unless you are on what cPanel calls the bleeding edge, you're running > Apache 1.3 which is useless for serving Django. That leaves you with > either #3 or #4. #3 has issues because cPanel wants to bind Apache to > all IP addresses. I had issues (though I didn't

Re: Django deployment options

2007-09-19 Thread Steve Potter
> > Django can be run fine under Apache 1.3 using mod_wsgi. > > The only issue is whether they do really allow you to add additional > Apache modules to the installation. > > Graham This is interesting... It is possible to install additional modules with cpanel, it just makes updating for new r

Strange error, trying to deploy Django with mod_wsgi

2007-09-24 Thread Steve Potter
I am in the process of trying to deploy a Django site using mod_wsgi. I had no problems installing mod_wsgi. However I did run into a few problems when trying to set the site. The first thing I ran into is that i forgot to install Mysql-python. So, I downloaded the source and did the following:

Re: Strange error, trying to deploy Django with mod_wsgi

2007-09-24 Thread Steve Potter
to when it says 'module' object? I looked through the view.py file for my app, and the only occurrence to the word 'models' I could find was in an import statement. Steve --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: Strange error, trying to deploy Django with mod_wsgi

2007-09-25 Thread Steve Potter
> > This sort of odd error can sometimes come up if you have chosen names > for directories/modules which clash with standard Python module names. > > Where you have in your WSGI script file for mod_wsgi something like: > > sys.path.append('/usr/local/django') > sys.path.append('/usr/local/django

Re: Strange error, trying to deploy Django with mod_wsgi

2007-09-25 Thread Steve Potter
On Sep 25, 8:27 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Sep 26, 3:59 am, Steve Potter <[EMAIL PROTECTED]> wrote: > > > > > > This sort of odd error can sometimes come up if you have chosen names > > > for directories/modules whi

Deployment issues: ViewDoesNotExist error

2007-09-26 Thread Steve Potter
I have been working on trying to deploy a simple app that I created and works fine with the development server. Deployed it using apache and mod_wsgi. After working through a few initial permissions issues I am left with the following error: ViewDoesNotExist: Tried index in module projectsmt.im

Re: Deployment issues: ViewDoesNotExist error

2007-09-26 Thread Steve Potter
On Sep 26, 9:36 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 9/26/07, Steve Potter <[EMAIL PROTECTED]> wrote: > > > ViewDoesNotExist: Tried index in module projectsmt.imglog.views. Error > > was: 'module' object has no attribute '

Re: Deployment issues: ViewDoesNotExist error

2007-09-26 Thread Steve Potter
On Sep 26, 10:02 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 9/26/07, Steve Potter <[EMAIL PROTECTED]> wrote: > > > user = models.ForeignKey(auth.models.User) > > > It appears that the django.contrib.auth is missing the models > > attri

Help with httpd.conf for mod_wsgi and media directory

2007-09-28 Thread Steve Potter
ideas? Thanks, Steve ServerAlias www.missedventures.com ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/missed/public_html ServerName missedventures.com User missed Group missed BytesLog /usr/local/apache/domlogs/missedventures.com-bytes_log CustomLog /usr/local/apache/domlogs

Re: Help with httpd.conf for mod_wsgi and media directory

2007-09-29 Thread Steve Potter
e nugget of information. I simply moved the AddModule mod_wsgi.c line to before the one for mod_alias. BTW, this might be worth mentioning on the mod_wsgi site. Thanks again, Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Templates for Custom Template Tags

2007-09-30 Thread Steve Potter
eems to be working for other template files, just not the ones from my custom tag. Is it possible that this is because I placed the custom tag in the base.html that was in the root template directory rather that used in one of the app's template files? Any clarification would be great.

Re: Templates for Custom Template Tags

2007-09-30 Thread Steve Potter
I was misunderstanding where the app_directories loader looks for files. It makes sense now. Thanks, Steve On Sep 30, 3:58 pm, AndrewK <[EMAIL PROTECTED]> wrote: > You need to place your tag templates into the subdirectory called > "templates" of your application dir

Re: upload_to dir in ImageField

2007-10-05 Thread Steve Potter
te place? Personally when I specify an upload_to path I omit the beginning and end slashes. Also, I believe the upload_to path is only appended at the time of upload. So, if you already had the aforementioned entry in the database before you set the upload_to path you may get the result you are se

Re: pagination documentation unclear

2007-10-11 Thread Steve Potter
; > What is dict(info_dict) do? > > what is objects in "(r'^objects/page(?P[0-9]+)/$'", model name? Johnny, This example is just trying to demonstrate that you can either paginate urls by using http://www.example.com/somepage/?page=2, or you can use something like

Custom middleware for logging

2007-10-19 Thread Steve Potter
r how response.set_cookie() works. If I set a cookie in the middleware during a request, will it be passed to the client on the next response? Thanks, Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gr

Re: Custom middleware for logging

2007-10-20 Thread Steve Potter
On Oct 19, 8:43 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote: > On 10/19/07, Steve Potter <[EMAIL PROTECTED]> wrote: > > > > > I would like to put together a piece of code that will test the > > referer for each request and if it matches a prede

Re: Getting image field in a template

2007-10-24 Thread Steve Potter
generic views I would need to see the relevant sections of your models.py and views.py to tell you what you need. Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

Re: Request for Leopard users

2007-10-31 Thread Steve Lianoglou
territory][.codeset]) I don't have any custom setting in ~/.bashrc (or similar) that's exporting $LANG into the environment, so ... if I'm not misunderstanding what's going on here, it might be a mistake on the poster's part. -steve --~--~-~--~~~-

Getting a sum using an active QuerySet?

2007-11-09 Thread Steve Freitas
ves the rest of the functionality there. Any help would be much appreciated. Thanks, Steve P.S. Tangent: getting distinct values by doing... [k['field'] for k in q.values('field').distinct()] ...sure is ugly. I know there's been work on getting aggregation going since earl

Re: Getting a sum using an active QuerySet?

2007-11-09 Thread Steve Freitas
e time after that. :-) Now to look at how to make my own Manager with its own sum(field) method, mmm... Thanks again, Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

check for request.META keys

2007-11-15 Thread Steve Potter
I'm working on a project that involves logging large amounts of information about each visitor to the site. I understand that the contents of request.META cannot be depended upon, but I would like to log things like REMOTE_ADDR and HTTP_REFERER. I am finding myself writing a lot of code that loo

Re: check for request.META keys

2007-11-16 Thread Steve Potter
On Nov 16, 12:01 am, Matt McClanahan <[EMAIL PROTECTED]> wrote: > On Nov 15, 8:51 pm, Steve Potter <[EMAIL PROTECTED]> wrote: > > > It just seem that there should be a better way of doing this. I was > > thinking about a method that would perform the test fo

mod_python delivering form data to wrong Django instance?

2007-11-16 Thread Steve Freitas
t database. I've verified in the logs that their URLs are correct deployment URLs, so it's not that. To fix the problem, I had to set 'DJANGO_TEST_MODE' to 0 in the deployment VirtualHost entries, and modify settings.py to check its value explicitly. Is this something that happens wh

Re: mod_python delivering form data to wrong Django instance?

2007-11-16 Thread Steve Freitas
. Ah ha, thanks very much for the explanation, Graham. Yeah, it doesn't strike me as particularly desireable, but at least now I know how to work around it. Thanks! Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Stupid template question

2007-12-13 Thread Steve Freitas
a variable. I'm sure there's some easy way to do this, but I'm missing it. Any help would be appreciated. Thanks! Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

How do generic views determine for field sizes?

2007-12-27 Thread Steve Bergman
first place? I'd like for it to size the field to fit what can go in it on its own. I'm using the latest from subversion. Thanks, Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&

autoreload files stored on SMB share

2006-09-25 Thread Steve M
racts with file stats. Anyone know whether my setup is misguided? Or is a fix possible? Thanks, Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send e

IE ignores Content-disposition on Apache but not development server

2006-10-06 Thread Steve M
I want my view to respond with a file for downloading, so that the browser pops up the download/file save dialog. I am using the 'Content-Disposition' header to specify the name of the file. When I use the django development server, it works perfectly in Firefox and IE6 (latest versions). When I s

ChangeManipulator

2006-10-06 Thread Steve Wedig
like date_join_time, etc). How can I validate only the relevant/changed fields? I could put all of the other fields into the form as hidden inputs, but there must be a better way :) Thanks! Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Re: Still really struggling with JOINS

2006-10-10 Thread Steve M
Hi, I myself am learning this, but I'd like to take a crack at your question. Based on the DB API document, you need to employ both select_related() (to go from a model with a FK to the objects related by that FK), and somefield_set (to go the other way). (Note it seems select_related is a method

Model Reuse

2006-10-16 Thread Steve Wedig
worry about where/how it is used/contained. Thanks! - Steve --~--~-~--~~~---~--~~ 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: Model Reuse

2006-10-16 Thread Steve Wedig
set = property(thread_set) class GroupThread(models.model): # m-1 relationship thread = models.OneToOneField( Thread ) location = models.ForeignKey( Location) Thanks, Steve On 10/16/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Mon, 2006-10-16 at 02:44 -0700, S

Re: django embedded web server

2006-10-18 Thread Steve M
I've been following this and related threads with some interest. I think it would be nice to have a pure python (requiring no setup of, e.g., Apache) webserver included with Django that was more capable than the current Django development server. I recently stumbled across this: http://pythonpast

Re: Model Reuse

2006-10-18 Thread Steve Wedig
oreignKey( Thread ) location = models.ForeignKey( Location) # using the function Location.threads = property( span_table('location', 'thread', LocationThread, Location, Thread) ) so now myLocation.threads returns a query set Best, - Steve On 10/16/06, Steve Wedig <[E

Null Query Set

2006-10-27 Thread Steve Wedig
I'm interested in returning a Null (empty) query set. I guess this is like the Null Object pattern. So it has to be a QuerySet implements the interface (.count, .all, etc) that always returns nothing. Does anyone know how to do this? Thanks! -

Template Apply

2006-11-04 Thread Steve Wedig
{% apply "t2.html" object %} {% endfor %} Thanks, Steve --~--~-~--~~~---~--~~ 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: Null Query Set

2006-11-04 Thread Steve Wedig
When I say id=None, it returns all of the items. My guess is that if a field is set to none, it just ignores that argument. However filter( id=-1) does the trick. Thanks for the tip. However django should probably have a way to do this without pinging the db (i think :) - Steve On 10/27/06

Cursor Delete Not Committing

2006-11-16 Thread Steve Wedig
d calling connection._commit(). Since its a private attribute, I assume I'm doing something wrong though. Is that the case? Thanks, Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Strange Template/Model Error

2006-11-27 Thread Steve Wedig
"."created","thread_post"."creator_id","thread_post"."body","thread_post"."tit= Exception Location: C:\Python25\lib\site-packages\django\db\backends\util.py in execute, line 15 Anyway, this all works fine in the python she

Re: Strange Template/Model Error

2006-11-27 Thread Steve Wedig
" in templates. I knew that implicit behavior would upset me someday :P I guess thats why we usually prefer explicit over implicit. - Steve On 11/27/06, Steve Wedig <[EMAIL PROTECTED]> wrote: > Hello, > > I am using multiple inheritance on a model. I'm just subclassing

Re: Schema Evolution code

2006-12-12 Thread Steve Hutton
t in any replies. I'm kind of surprised at this, since I think its a pretty frequently requested feature. Does anyone here who has tried the schema evolution branch care to comment? Does it have a realistic chance of being accepted into core if it's found to be bug free? Is it full

Re: Schema Evolution code

2006-12-14 Thread Steve Hutton
nth, so it > should apply cleanly to trunk. Victor, thanks very much for your efforts on this. I will be starting a new project soon and would like to test schema evolution. Can you explain the differences between your patch and the schema evolution branch itself? Are you proposi

Re: Schema Evolution code

2006-12-15 Thread Steve Hutton
On 2006-12-14, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On 12/13/06, Steve Hutton <[EMAIL PROTECTED]> wrote: > >> Does it have a realistic chance of being accepted into core if it's found >> to be bug free? Is it fully documented? Is the desig

Re: Schema Evolution code

2006-12-16 Thread Steve Hutton
lution branch has not been actively updated lately or championed make me disinclined to spend time testing it. Perhaps your patches could form the basis of an alternative schema evolution branch? Steve --~--~-~--~~~---~--~~ You received this message because you are

Re: Schema Evolution code

2006-12-16 Thread Steve Hutton
ing just that in the coming weeks. However I'm not sure yet if I'll be trying Victor's alternative implementation or the existing branch. Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

Re: Schema Evolution code

2006-12-16 Thread Steve Hutton
t and/or clean up and integrate your code. The fact that you've already tried the existing schema evolution branch and spent this much effort so far on an alternative implementation certainly makes me lean towards your code. But it would be nice from a logistical

Re: Schema Evolution code

2006-12-16 Thread Steve Hutton
ne command produces a migration script, you tickle your version number, and the syncdb runs the migrations" Steve [1] http://code.djangoproject.com/wiki/SchemaEvolution --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Django meetup in San Francisco this Thursday?

2006-12-18 Thread Steve Hutton
; >> Adrian > > Ooh, a meetup would be awesome. Depending on the time of day (I'm > booked through the early evening), I'd love to meet and treat you to a > beer or other drink of your choice: ><http://code.djangoproject.com/ticket/1634#

Re: Your Approach to Schema Evolution?

2006-12-27 Thread Steve Hutton
code is *not* being actively maintained or championed for inclusion in the Django trunk. Victor Ng has stepped forward with an alternative implementation, which is good news, but essentially we are back to square one... Steve --~--~-~--~~~---~--~~ You received

Re: Schema Evolution code

2006-12-27 Thread Steve Hutton
ma evolution branch, or better - > open up a new branch from trunk so that we can start hacking away at > this problem? Sounds great to me. Any core devs care to open a new branch for this? Thanks, Steve --~--~-~--~~~---~--~~ You received this message

Passwords in Control Panel

2007-01-18 Thread Steve Wedig
it appears that my user's passwords are stored in plaintext in the control panel. for example, as an admin, i can go through and see their plaintext passwords. is there a way to hide them? Thanks, - Steve --~--~-~--~~~---~--~~ You received this message be

Re: Using Object Relational Mapper

2007-01-22 Thread Steve M
I have a similar but not the same need. I do use the full Django stack, but I need to write helper programs that can interact with the database but have nothing to do with the web. This matters because I already have a normal Django project and some apps set up, but you may need to make a dummy pr

Generic Create with Url Parameters

2006-07-21 Thread Steve Wedig
s.py... (r'^create/(?P\d+)/$', 'django.views.generic.create_update.create_object', {'model':Conversation), Thanks! - Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To p

Re: Any good Python book recommendations?

2006-07-26 Thread Steve Wedig
by David on ibm developerworks. I have o'reilly's python standard library book, but don't actually use it too much. Its often easier just to google something. You probably only want o'reilly's programming python if you have an interest some of the specific topics it covers.

<    1   2   3   4   5   6   7   8   >