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,
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
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
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
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"
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
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 =
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
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
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
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,
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.
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
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 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?
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.
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
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
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',
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
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:
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
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:
>
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
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
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
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
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
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
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
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
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
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
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
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
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
>
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):
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
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
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
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.
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
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
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
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
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
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:
>
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
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
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?
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
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
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
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
(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
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
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]>
. 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 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
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
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
, 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
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
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
>
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
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
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
>
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:
>
>
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
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
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 :
> > >
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
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
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
--~--~-~--~~~---
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
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
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
>
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
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
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
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 <
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
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
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
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
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
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
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
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 +
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
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
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
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
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
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
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
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
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
/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
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
101 - 200 of 207 matches
Mail list logo