Re:

2010-10-11 Thread sami nathan
just before getting u r message i tried that it worked!! whats the best editor for django -- 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,

Re:

2010-10-11 Thread sami nathan
ISORRY YA AGAIN i got problem of SyntaxError: 'return' outside function now my view code from django.http import HttpResponse def current_datetime(request): word = request.GET['word'] return HttpResponse(word) now my url code from django.conf.urls.defaults import * from flip.view

Re:

2010-10-11 Thread sami nathan
THANK U GUYS AT LAST I GOT WHAT I NEED AND ITS WORKING THANK U FOR U R RESPONSE GREAT YA THANKS!!! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re:

2010-10-11 Thread sami nathan
Sir, i got two way of suggestion s now i am bitter confused waht should i use now,now i will clearly tell my requirement http://m.broov.com/wap/di/sub?word=check=00=Submit pls visit this site and replace the word check with any word u like it will display some rsults below now i don't want that

Re:

2010-10-11 Thread sami nathan
HI Jirka Vejrazka sorry ya i am very new to this group and i am going through the python But it would be helpful to me if u convey me which part of python should i go throgh for time beingthank u -- You received this message because you are subscribed to the Google Groups "Django users"

[no subject]

2010-10-11 Thread sami nathan
my re reuested url is http://localhost/wap/di/sub?word=check=00=Submit I want to print the word "CHECK" which will be given by user my urls.py looks like this from django.conf.urls.defaults import

Re:

2010-10-11 Thread sami nathan
HI THIS IS MY REQUIRED URL http://localhost/flip/wap/di/sub?word=check=00=Submit here check should be displayed in my page we are using this for dictionary but my task is to just display that word check in my page , moreover its user defined my urls.py is looking like this urlpatterns =

Re: question about django url

2010-10-09 Thread sami nathan
http://local host/wap/di/sub?word=check=00=Submit i want to print word "check" and any word given in url pls give sugesstion pls -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

import error

2010-10-07 Thread sami nathan
Occured error while using url http://localhost/fllyp/ MOD_PYTHON ERROR ProcessId: 844 Interpreter:'192.168.1.116' ServerName: '192.168.1.116' DocumentRoot: 'C:/Program Files/Apache

Re: Change auth User display name in admin interface

2010-10-01 Thread Nathan
You, sir, are awesome. It worked perfectly. In case anyone else is wondering what I did: In models.py: # import the auth User from django.contrib.auth.models import User # Create the proxy model, inherits from User: class myUser(User): class Meta: proxy = True def

Change auth User display name in admin interface

2010-09-30 Thread Nathan
I'm using the django User authentication. I have a model that has a ManyToManyField which allows you to select several users to associate with that model. In the django admin site, it's set to use the filter_horizontal option. When adding a new instance of the model through the admin interface,

Re: Django wont display images on my CSS file

2009-03-28 Thread Nathan Reynolds
On Sat, Mar 28, 2009 at 7:17 AM, Ayaz Ahmed Khan wrote: > Furthermore, it stipulates that if the given URL path is > relative, the absolute path is derived at by combining that relative > path with a base URL which, for CSS style sheets, is the base URL for > the style sheet.

Re: Django install issues on Windows in Cygwin.

2008-09-17 Thread Nathan Dabney
I've found that mixing Windows/Cygwin binaries for Python/Django creates confusing problems. It's best to treat each environment like the other doesn't exist with respect to dependencies. It looks like you are using the Windows binary instead of the one compiled for cygwin. -Nathan On Wed

Re: problem with generic views (monthly archive) and different languages

2008-09-13 Thread Nathan Dabney
URL keyed off of numeric month instead of localized name. -Nathan On Sat, Sep 13, 2008 at 6:02 AM, Julian <[EMAIL PROTECTED]> wrote: > > hi there, > > in my settings.py there is the language specified as "de_de", wich > works well with things like: > &g

I get an error when using django and postgresql. ProgrammingError: invalid byte sequence for encoding

2008-05-31 Thread Nathan Zorn
I am using django and postgresql and get an error when I pass in unicode to filter. ProgrammingError: invalid byte sequence for encoding "UTF8": The documentation states that I can pass both in and that django detects what encoding the database uses. Should this be repoted as a bug?

Re: TemplateDoesNotExist at /admin/

2008-02-03 Thread Nathan
Same error here on Mac OS X Leopard, having installed from the 0.96.1 tarball via setup.py. TemplateDoesNotExist at /admin/ admin/login.html Those folders are not present in: /Library/Python/2.5/site-packages/django/contrib/admin/ A manual copy + authenticate resolved the issue.

Re: Tableless models?

2007-12-13 Thread Nathan Fiedler
Hi Ned, Thanks for the response. I have found so far that I can create a simple "model" that has no fields and this seems to be alright during runtime, I don't need to set up a database. But, to run the tests at all, I have to set up a database. Thankfully, I can define "sqlite3" with an

Tableless models?

2007-12-12 Thread Nathan Fiedler
This topic has come up once or twice before, but it doesn't seem like a solution exists. Basically I'm looking for a recommended pattern for creating Django models that have no association with a database (i.e. "tableless"). Curiously, ticket #419 has to do with enabling tableless models, but it

Re: Admin & Models

2007-08-02 Thread Nathan Ostgard
list_display can use functions as their value... so, you can have: class Employee(models.Model): sub_dept = ForeignKey(SubDept) def company(self): return sub_dept.dept.company def dept(self): return sub_dept.dept class Admin: list_display = ('first_name, 'last_name',

Re: How do I echo template variables?

2007-07-30 Thread Nathan Ostgard
Try: {{ data|pprint }} On Jul 29, 10:42 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I'm coming from CakePHP and I would typically set a variable for use > in my view with a call to findAll. Since there is a lot of data in the > array, I typically do something like: > > > > > > This

Re: Is there any way to associate a view with a template?

2007-07-28 Thread Nathan Ostgard
I could be wrong, but I think the problem he's having is having to specify the menu variable in the context for every view, not the template end of it... To fix that, you will want to check out context processors:

Re: Looping through my POST data?

2007-07-28 Thread Nathan Ostgard
To illustrate with the Python shell: >>> 0 == "0" False >>> 0 == int("0") True On Jul 27, 11:10 pm, Sean Perry <[EMAIL PROTECTED]> wrote: > On Jul 27, 2007, at 10:36 PM, Greg wrote: > > > AssertionError at /rugs/cart/addpad/ > > [u'0'] > > > Does that mean that the value is 0? below is my view

Re: ifequal not working?

2007-07-28 Thread Nathan Ostgard
ifequal can't do filters, unfortunately. But you can do this: {% for item in menu_items %} {% if forloop.last%} class="last-item"{% endif %} {% endfor %} Or class="{{ forloop.first|yesno:"first," }} {{ forloop.last| yesno:"last," }}" On Jul 27, 11:42 pm, Eloff <[EMAIL PROTECTED]> wrote: >

Re: Looping through my POST data?

2007-07-27 Thread Nathan Ostgard
request.POST is a dictionary, not a list, so a for loop like yours is iterating over the keys of the dict. to get the values, you can do: for value in request.POST.itervalues(): to iterate over both keys and values: for a, value in request.POST.iteritems(): On Jul 27, 2:54 pm, Greg <[EMAIL

Re: Displaying the contents of a Dict (Using POST)...showing 'x' and 'y' keys?

2007-07-27 Thread Nathan Ostgard
You can define a list of valid keys to look for: keys = ['one', 'two', 'three', 'four', 'five'] for key in keys: if not key in request.POST: continue .. do stuff .. Or you can delete the keys you don't want before looping: for key in ['x', 'y', 'submit']: del request.POST[key] for

Re: Syndication with kwargs from url

2007-07-26 Thread Nathan Ostgard
You shouldn't be capturing the args yourself -- the syndication framework will automatically split up anything after the feed name and pass it to get_object on your Feed class. So, if "/feeds/latest/foo/ bar/" was requested, it would call your feed class with the bits ['foo', 'bar']. You can then

Re: Problems with i18n of field labels (newforms)

2007-07-25 Thread Nathan Ostgard
What import are you aliasing as _? You have three options for gettext calls: - ugettext, which translates as soon as it's *called*. - ugettext_lazy, which does not translate until the attribute is *accessed*. - ugettext_noop, which translates at the last possible moment, such as when the value

Re: Problem creating choices in Tutorial Part 1

2007-07-25 Thread Nathan Ostgard
As the error says, you're using self.question in the Choice model -- it should be self.choice. e.g., change this: class Choice(models.Model): # ... def __unicode__(self): return self.question to this: class Choice(models.Model): # ... def __unicode__(self): return self.choice

Re: Form_for multiple models

2007-07-24 Thread Nathan Ostgard
You can specify it upon form creation. Here is an example of how you could use prefixes for multiple model forms: In your views: from django import newforms as forms from django.http import HttpResponseRedirect from django.shortcuts import render_to_response from yourproject.yourapp.models

Re: Should I give up on dreamhost?

2007-07-23 Thread Nathan Ostgard
First, I've recently setup a Dreamhost account myself with no problems -- feel free to email me directly if you want some help, and I'll see what I can do. That said... Django and Python are still going through growing pains in the shared hosting department. The same thing was going on with

Re: Instant Django

2007-07-23 Thread Nathan Ostgard
Pretty sweet, good job! I would recommend echoing some info when one runs start.bat. I thought it wasn't working right at first because it just opened a normal command prompt. Just telling people a few of the Django commands that are available to them would probably be enough. On Jul 23, 8:14

Re: Some questions on Django's authentication system

2007-07-20 Thread Nathan Ostgard
Regarding the first question, you can do this by creating a middleware class which checks for authenticated users by default. You could also created a decorator to tag view functions as public. For example... in file yourproject/yourapp/middleware.py: from django.conf import settings from

Re: Newbie Question: Static Media With Development Server - Not The Same Old Question

2007-07-20 Thread Nathan Ostgard
Interesting! Didn't know document_root would figure out relative paths. Glad you got it working. Re. media -- yeah, sorry about that, I've taken to renaming the admin's to media_admin. On Jul 20, 12:26 pm, cjl <[EMAIL PROTECTED]> wrote: > Nathan: > > Thank you for your reply. &g

Re: Newbie Question: Static Media With Development Server - Not The Same Old Question

2007-07-20 Thread Nathan Ostgard
Assuming cwd is the projects folder: settings.py: import os.path MEDIA_ROOT = os.abspath('./media') urls.py: from django.conf import settings urlpatterns = patterns('', (r'^media/(?P.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), ) On Jul 20, 6:13 am, cjl

Re: shortcut for assigning values to model?

2007-07-20 Thread Nathan Ostgard
Python also allows you to use ** to unpack a dict into a set of kwargs: b = Book(**bf.cleaned_data) On Jul 20, 4:28 am, LaundroMat <[EMAIL PROTECTED]> wrote: > On 20 jul, 10:53, james_027 <[EMAIL PROTECTED]> wrote: > > > > > hi, > > > is there a short cut for assigning input data to model's

Re: Problem with image upload

2007-07-20 Thread Nathan Ostgard
Use forms.ModelChoiceField instead: immagine = forms.ModelChoiceField(queryset=Pics.objects.all().order_by('immagine'), cache_choices=False, label='Pic', required=False) On Jul 20, 1:15 am, ilDave <[EMAIL PROTECTED]> wrote: > I've a form that handles file uploading to the database: it works >

Re: setting up login required pages massly

2007-07-19 Thread Nathan Ostgard
You can define a custom decorator instead, specifying a custom login_url: from django.contrib.auth.decorators import user_passes_test my_login_decorator = user_passes_test(lambda u: u.is_authenticated(), login_url='/my/login/url') Then you can use: @my_login_decorator def someview(request):

Re: login() method conflict

2007-07-19 Thread Nathan Ostgard
You may find it easier to avoid these conflicts by doing: from django.contrib import auth Then use: user = auth.authenticate(username='foo', password='bar') auth.login(request, user) On Jul 19, 1:02 am, james_027 <[EMAIL PROTECTED]> wrote: > hi, > > i've been trying to get started with django

Re: django foreignkey

2007-07-19 Thread Nathan Ostgard
manage.py syncdb won't add new fields to the database if the table already exists. You'll have to do this yourself. See manage.py sqlall for some help. Otherwise, if you have: user = models.ForeignKey(User), then look for a field named user_id in your table. Nathan Ostgard On Jul 18

Re: Multiple URLconfs per app?

2007-07-19 Thread Nathan Ostgard
If you just want to specify the urls as listed, you could always create a urls folder in myapp, put an __init__.py in there, and create myapp/urls/feature1.py and myapp/urls/feature2.py. Nathan Ostgard On Jul 18, 7:37 pm, Collin Grady <[EMAIL PROTECTED]> wrote: > You'll need

Re: How do I know if fastcgi is installed correctly? (using dreamhost)

2007-07-19 Thread Nathan Ostgard
Django projects/apps installed under ~/django, and my Virtual Python installation in ~/python. Nathan Ostgard On Jul 18, 9:54 am, walterbyrd <[EMAIL PROTECTED]> wrote: > I am trying to follow jeff croft's tutorial for installing django on > dreamhost. > > http://www2.

Re: Picture in admin

2007-07-18 Thread Nathan Ostgard
Here's something on djangosnippets.org for displaying thumbnails in the admin list: http://www.djangosnippets.org/snippets/239/ Or do you mean on the page for editing a record? Nathan Ostgard On Jul 18, 2:11 pm, Naco <[EMAIL PROTECTED]> wrote: > Does anybody know how t

Re: newforms and models unique=True validation

2007-07-18 Thread Nathan Ostgard
forms.ValidationError('some error message') MyForm = forms.form_for_model(MyModel, form=MyBaseForm) Nathan Ostgard On Jul 18, 7:06 am, stereoit <[EMAIL PROTECTED]> wrote: > Hi, > I have model with field that has attribute unique set to True. I know > newforms are not

Re: MEDIA_URL MEDIA_ROOT problem.

2007-07-17 Thread Nathan Ostgard
You can also refer to this page in the documentation for more information: http://www.djangoproject.com/documentation/static_files/ Nathan Ostgard On Jul 17, 11:35 am, Dmitriy Sodrianov <[EMAIL PROTECTED]> wrote: > Hello everyone! > > Let me ask for help with the fo

Re: anybody help me! raise EnvironmentError

2007-07-17 Thread Nathan Ostgard
t variable DJANGO_SETTINGS_MODULE in your shell. If you don't know how to do that already, you should probably use one of the other two options. ---- Nathan Ostgard On Jul 17, 2:43 pm, Collin Grady <[EMAIL PROTECTED]> wrote: > If you don't use "manage.py shell" you must set your

Re: is there any host servers that supports Django based sites?

2007-07-14 Thread Nathan Ostgard
It's a question of value to the customer. Of course they don't necessarily care about Django -- they care about the product. It's up to you to illustrate to them, using Django, that you can deliver a better product to them than the competition, and that the costs are worth it. I've found that the

Re: JavaScript in template

2007-07-14 Thread Nathan Ostgard
If you're using an SVN copy (not 0.96), there is already a context processor for this. Add 'django.core.context_processors.media' to TEMPLATE_CONTEXT_PROCESSORS in settings.py and you will be able to use {{ MEDIA_URL }} in your templates. On Jul 14, 6:43 am, skam <[EMAIL PROTECTED]> wrote: >

Re: Template variable when None displays None

2007-07-11 Thread Nathan Ostgard
It's the default behavior of Python: >>> str(None) 'None' I don't agree that it should be the default. None and "" are two distinct values -- especially with a database. In databases, None (or NULL) normally represents a _missing_ value, whereas a "" is one that was intentionally specified to

Re: ForeignKey(User, list_display=full?

2007-07-11 Thread Nathan Ostgard
I really think you should define a custom field and override the choices. For example: from django.utils.encoding import smart_unicode class UserForeignKey(models.ForeignKey): def get_choices(self, include_blank=True, blank_choice=models.BLANK_CHOICE_DASH): "Returns a list of tuples used

Re: multiple inner joins in sql

2007-07-10 Thread Nathan Ostgard
On Jul 10, 2:58 pm, novice <[EMAIL PROTECTED]> wrote: > but I get error that the offers_offerprice.offerseller_id column > doesnt exist. I think you're missing an underscore. Your model has the field named offer_seller... shouldn't it then be offers_offerprice.offer_seller_id?

Re: ForeignKey(User, list_display=full?

2007-07-10 Thread Nathan Ostgard
ForeignKey fields use the Field.get_choices() method to build a list of options. Perhaps you could subclass the ForeignKey field and customize the method? On Jul 10, 10:30 am, Carl Karsten <[EMAIL PROTECTED]> wrote: > I am using the django User like so: > > # models.py > from

Re: Problem when filling the options of a Choice Field with information from the database

2007-07-10 Thread Nathan Ostgard
that this will return the primary key of an instrument for the value, rather than the name. Nathan Ostgard On Jul 10, 4:41 am, AnaReis <[EMAIL PROTECTED]> wrote: > Hi, > I have a form on my project which has a drop down list with several > options that are loaded from a tabl

Re: forms and designers

2007-07-10 Thread Nathan Ostgard
On Jul 8, 8:36 pm, Al Abut <[EMAIL PROTECTED]> wrote: > Nathan, thanks for those tips and that looks like a smart way to > attach js triggers and classes for css. What about all the other stuff > I could do to an html element though, like specify its initial value? > Or

Re: Remove a field from a form

2007-07-09 Thread Nathan Ostgard
Do this instead: PreventivoForm = form_for_model(Preventivo) del PreventivoForm.base_fields['codice'] f = PreventivoForm() f2 = PreventivoForm(auto_id='id_%s2') Nathan Ostgard On Jul 9, 2:33 am, ilDave <[EMAIL PROTECTED]> wrote: > Hi! > I have to show two identical forms in

Re: forms and designers

2007-07-08 Thread Nathan Ostgard
(someJavascriptFunction); }); As for classes, I've taken to applying them to a div surrounding my input elements. So I have something like: {{ form.whatever.label }} {{ form.whatever }} The CSS isn't much longer... form .red input { color: red; } Nathan Ostgard On Jul 8, 8:04 pm, Al Abut <[EMAIL PROTEC

Re: cross-table unique_together?

2007-07-06 Thread Nathan Ostgard
umentation/model-api/#unique-together) This creates the appropriate unique index for your table. However, this means you can only enforce uniqueness for fields within an individual model. Nathan On Jul 6, 11:30 am, "Todd O'Bryan" <[EMAIL PROTECTED]> wrote: > I'm writing an app to dea

Re: Constraints to a model

2007-05-17 Thread Nathan Harmston
Is it easy to then enforce this in admin, so if an attempt is made to save a post with no article or gallery then the admin page stages whoops and does the highlighting of fields like it would do normally? Many Thanks Nathan On 16/05/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>

Constraints to a model

2007-05-16 Thread Nathan Harmston
. Is there anywhere to add a constraint to force there to be either an article or gallery associated with a post in the actual declaration of the model? Many Thanks in advance, Nathan --~--~-~--~~~---~--~~ You received this message because you are subscribed

Shopping cart application for django

2007-05-16 Thread Nathan Harmston
shopping cart as a dictionary in session where it is simply { product_id:amount }, is this a good way to proceed or do you believe there are some problems with this approach? Many Thanks in advance Nathan --~--~-~--~~~---~--~~ You received this message because you

Re: create/drop individual table

2007-04-04 Thread Nathan R. Yergler
There's no Django magic there; just do it like you normally would using your database. On 4/4/07, John <[EMAIL PROTECTED]> wrote: > > Hi, new to django, getting familiar w/ it. So far, love what I've > seen. One question: how do I create/drop an individual table, > preferably not from the

Re: Ordered list of objects?

2007-04-04 Thread Nathan R. Yergler
On 4/4/07, Atilla <[EMAIL PROTECTED]> wrote: > > On 04/04/07, Nathan R. Yergler <[EMAIL PROTECTED]> wrote: > > > > I'm working on an app for a client, and one of the requirements is > > that they be able to re-order objects in the admin inter

Ordered list of objects?

2007-04-03 Thread Nathan R. Yergler
, and then updating that to contain the relative order of objects. So... am I missing something obvious here that will let me do with with a minimal amount of pain? Thanks, Nathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Nested Sets for trees - any models been made before?

2007-03-27 Thread Nathan Harmston
l of the query work...as well as making changes to save and delete. Does this seem like the right idea? I m just checking before I jump in. Many Thanks Nathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dja

Re: Application for Google Summer of Code

2007-03-23 Thread Nathan R. Yergler
On 3/23/07, Tim Chase <[EMAIL PROTECTED]> wrote: > > > I've started to write an application for Google Summer of > > Code, and I would LOVE any feedback you can possibly give me. > > Please comment on both language and content. > > I guess my first concern/interest/question would be "what makes >

Re: Integrating web services with django

2007-03-21 Thread Nathan Harmston
lient process" and Django both share the same models and "talk" using the database? Is there any problem with this that anyone can see? Would this work? Many Thanks in advance, Nathan --~--~-~--~~~---~--~~ You received this message because you are

Problem importing models in custom data import scripts

2007-03-20 Thread Nathan Harmston
setup and how to fix it? Many Thanks in advance Nathan --~--~-~--~~~---~--~~ 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 unsubscri

Re: Django & Web Services Api

2007-03-19 Thread Nathan R. Yergler
ElementTree is great, and included with Python 2.5; lxml (http://codespeak.net/lxml) is a super-fast ElementTree + xpath + xslt + lots library implemented on top of libxml2. On 3/19/07, johnny <[EMAIL PROTECTED]> wrote: > > I need to create a simple web api for my project. Basically they make >

Re: WHAT IS DJANGO?

2007-03-14 Thread Nathan R. Yergler
I think you've found the wrong Django. This Django is a Python web framework for building web applications. On 3/14/07, DICK <[EMAIL PROTECTED]> wrote: > > I AM NEW TO THIS SITE AND THE REASON I AM POSTING THIS IS BECAUSE I > WANTED TO DOWLOAD SOME SHEET MUSIC AND TABLATURE AT THIS LINK: > >

Integrating web services with django

2007-03-13 Thread Nathan Harmston
in advance Nathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Re: Apache2 displays django app as a file list

2007-03-11 Thread Nathan R. Yergler
I don't do tons of mod_python, but one thing that I immediately notice is that you're mod_python to handle the "/' location, but requesting the "/python" location. Does it work if you do http://mydom.net/ ? On 3/11/07, Mikey <[EMAIL PROTECTED]> wrote: > > I have mod-python working - I got a

Re: dojo problem

2007-03-08 Thread Nathan R. Yergler
edia/js/admin? (note the *media* directory) > > > > On Mar 7, 3:06 pm, "Nathan R. Yergler" <[EMAIL PROTECTED]> wrote: > > On 3/6/07, Mary <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > here is my model : > > >

Re: New framework configuration

2007-03-08 Thread Nathan R. Yergler
trivial (or at least sane). FWIW. NRY > On Mar 7, 10:37 am, "Nathan R. Yergler" <[EMAIL PROTECTED]> wrote: > > I'm not sure I fully understand the question, but why not just build > > Python from source in something like /usr/local/python244? > > &g

Re: dojo problem

2007-03-07 Thread Nathan R. Yergler
On 3/6/07, Mary <[EMAIL PROTECTED]> wrote: > > here is my model : > text = models.TextField(help_text='Rich Text Editing.') > class Admin: > js = ['js/admin/AddRichTextEditing.js'] > > list_display = ('title','owner','time_created') > > i have added the dojo folder in my

Re: published permission

2007-03-01 Thread Nathan R. Yergler
prove of their edits. It also means that the permission system, while powerful, has no support for limiting access on a per-object basis. If you trust someone to edit their own stories, you trust them not to edit anyone else's without permission. Nathan --~--~-~--~~~---

Re: how can i find a full source code for complete django

2007-02-28 Thread Nathan R. Yergler
On 2/28/07, Mary <[EMAIL PROTECTED]> wrote: > > thank you for the quick reply > I went the 1st link in the search which was > http://www2.jeffcroft.com/blog/2007/feb/25/two-new-django-sites-both-source-available/ > and i found that there is no source code on the site may be i am > stupid and i

Uploading large files

2007-02-19 Thread Nathan R. Yergler
e I expect that the Django developers will support large file uploads eventually, at which point the need for this will go away. Nathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Django over modpython

2007-02-16 Thread Nathan R. Yergler
mod_python and Django. Nathan On 2/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Maybe this is a stupid question. > I have been looking for a hosting which supports modpython to run > django. > One of them (bluehost) told me that they support it through CGI. I >

Re: catalog of django apps?

2007-02-15 Thread Nathan R. Yergler
ls enabled tools. Nathan On 2/15/07, James Tauber <[EMAIL PROTECTED]> wrote: > > On 15/02/2007, at 8:48 PM, James Bennett wrote: > > > > > On 2/15/07, James Tauber <[EMAIL PROTECTED]> wrote: > >> Has anyone give much thought to building a "Cheesesho

Re: best "right now" solution for large file uploads?

2007-02-12 Thread Nathan R. Yergler
permission from my client to write this up, but realistically I won't have it in shape for posting until later this week. If you can wait until then, maybe it'd be useful. Regardless I'll post it here when I have it put together. Nathan On 2/12/07, Bram - Smartelectronix <[EMAIL PROT

Re: Installation Question

2007-02-11 Thread Nathan R. Yergler
See http://www.djangoproject.com/documentation/install/ for installation information and requirements. Your PHP information doesn't matter in the least, since Django isn't PHP based. Nathan On 2/11/07, Tavernaci <[EMAIL PROTECTED]> wrote: > > Hello > > I was searching fo

Re: apply a patch

2007-01-15 Thread Nathan R. Yergler
If you're on Windows you might look into using Cygwin (http://cygwin.com) which provides a Unix-like environment for windows (where patch -p0... does work). NRY Picio wrote: Thanks Russell, but I'm on windows (sorry if I've not told you before..) I knew about the unix way > patch -p0 <

Question about models

2007-01-13 Thread Nathan Harmston
dest_type = models.ForeignKey(Node_Type) dest = models.FoeignKey() edge_type = models.ForeignKey(Edge_Type) edge = models.ForeignKey() I m sorry if this isnt the best explanation. Any help would be gratefully appreciated. Many Than

Re: dividing up views.py into multiple files

2007-01-10 Thread Nathan R. Yergler
Did you add a file named __init__.py to the views directory you created? This file tells Python to treat the directory as a package and allow traversal into the view file. NRY Stefan Foulis wrote: > I searched around the django documentation and didn't find anything > about this... > > what

Re: Another print_r() to {% debug %} question...

2006-12-19 Thread Nathan R. Yergler
radioflyer wrote: > ...I'm new to Python and still thinking like a PHP user I'm afraid... > > I've found a number of posts about dumping debug info to a template, > but I'm still a little confused. Maybe I don't understand the nature > of the 'context' returned from my view. > > If I have this

Re: Getting values from a Drop Down menu

2006-12-15 Thread Nathan R. Yergler
Don't you need to specify a name for the select element? If you're trying to get the selection with the key "value", I think you need to do: . . . NRY MattW wrote: > Dear All, > > A newbie with Django, but seem to be doing with some basics so far, but > seem to be a bit stuck on getting

Re: Property overrides

2006-12-12 Thread Nathan R. Yergler
eract with having the posted model field effectively masked by the new property, so you might want to call your property w/ extra set functionality something different. YMMV. Nathan > > ...and any time you set the "posted" attribute, it would call > set_posted() behind the sc

Re: Problem on Display Image

2006-12-12 Thread Nathan R. Yergler
to specify: MEDIA_URL = "http://127.0.0.1:8000/upload/; Nathan [1] http://www.python.org/doc/lib/module-urlparse.html wangml wrote: > Hi, > > I meet a problem with ImageField when display the image it contains. > > > I defined an ImageField in myobject

Re: Problems with MEDIA_URL

2006-12-01 Thread Nathan R. Yergler
the final component. NRY On Thu, 2006-11-30 at 11:30 -0500, Nathan R. Yergler wrote: > I'm using an ImageField in my model, and am having problems with the > get_FOO_url() functionality. > > For example, with a model such as: > > class MyModel(models.Model): > >head

Re: Database error only for certain models?

2006-12-01 Thread Nathan R. Yergler
I've seen something similar to this happen when I run syncdb, change a model slightly, and then forget to drop the tables and re-sync. So Django finds the database fine, and only the tables relating to the changed model cause problems. Hope that helps, Nathan On Sat, 2006-12-02 at 01:48 +

Re: best place to put dispatcher.connect code?

2006-11-29 Thread Nathan R. Yergler
I don't think manage.py does much with the path, since the INSTALLED_APPS are given in Python package path syntax, and therefore must be resolvable on the PYTHONPATH (ie, no additional information is given for paths). The only thing I've noticed that it may twiddle is adding the directory

Re: models as a package, admin functionality

2006-11-27 Thread Nathan R. Yergler
Uh, nevermind... I was doing: import realFile instead of: from realFile import realClass in __init__.py On Mon, 2006-11-27 at 15:37 -0500, Nathan R. Yergler wrote: > I wrote to the list a while ago about implementing models as a package > (ie, a "models" subdirectory with

models as a package, admin functionality

2006-11-27 Thread Nathan R. Yergler
recognize the models and create DB tables. However, they're still not showing up in the Admin interface, despite the presence of: class Admin: pass within each. I assume this is yet another weirdness with multi-file models. Suggestion

Re: django admin : "unique" field option error with models.BooleanField

2006-11-12 Thread Nathan R. Yergler
By definition there are only two possible values for a BooleanField: True and False. And if you add the unique=True constraint (which says each row must be unique), well, two is all you get. Maybe unique=True isn't exactly what you want? Nathan On Sun, 2006-11-12 at 02:41 -0800, david83 wrote

Re: Re: Models as a Package

2006-11-10 Thread Nathan Yergler
On Thu, 2006-11-09 at 15:49 -0600, James Bennett wrote: > On 11/9/06, Nathan Yergler <[EMAIL PROTECTED]> wrote: > >class Meta: > > app_label = 'app_name' > > Yeah, that's a huge wart that comes out of the way the metasystem > works right now. Anybody

Re: Models as a Package

2006-11-09 Thread Nathan Yergler
Nevermind, I figured it out... I was forgetting the annoying class MyModel(models.Model): ... class Meta: app_label = 'app_name' Sigh... On Thu, 2006-11-09 at 15:57 -0500, Nathan Yergler wrote: > Any reason that making models.py into a package seems to make the models > inv

Models as a Package

2006-11-09 Thread Nathan Yergler
oesn't seem to see the models. Thoughts? Nathan --~--~-~--~~~---~--~~ 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 th

Re: What must I do to get this to work?

2006-10-18 Thread Nathan R. Yergler
I don't think I've ever seen something like that work in a standard browser. Are you using Django for this? Nathan On Wed, 2006-10-18 at 14:11 -0700, carlwenrich wrote: > I have a python file (hello.py) with the tkinter demo code in it. I > found an example of someone doing somethin

Re: import models doesn't work in a script

2006-08-25 Thread Nathan R. Yergler
Because the environment variable (DJANGO_SETTINGS_MODULE) needs to point to the Python module in Python package syntax (ie, dotted path syntax). So the package ("mysite" in the example below) must be on the Python path (which is what sys.path.append does below). On Fri, 2006-08-25 at 11:52

Connecting FCKeditor's Image Browser to Django

2006-08-23 Thread Nathan R. Yergler
/fckeditor_connector/__init__.py. It still needs some work -- in particular support for the quick upload interface, but this release is in a usable state for the image browser, uploader, etc. Suggestions, patches, bug reports all welcome. Nathan R. Yergler

Re: libraries for common tasks, tinymce, mochikit

2006-08-20 Thread Nathan R. Yergler
packages. So I will remove the libs folder on > installation now. Take a look at setuptools (http://peak.telecommunity.com/DevCenter/setuptools), an extension for distutils that specifically handles this situation (namespace packages: http://peak.telecommunity.com/DevCenter/setuptools#namespace-p

<    1   2   3   >