o the .egg
file. Delete that reference. You can then delete the .egg file itself.
What's probably happening, is that the .egg is showing up on sys.path
before the new 'django' directory.
Jay P.
--~--~-~--~~~---~--~~
You received this message because yo
On 4/10/07, brian mckinney <[EMAIL PROTECTED]> wrote:
>
> Thanks Jay, this worked perfectly.
>
> Can anyone shed some light on the purpose of the easy-install.pth
> file? Is this just adding django to the system path?
Very briefly: There is a large movement in the Pyt
eys()
And then used customer_keys in both of your for loops. That saves a
function call.
Again, these are all just little things, but depending on how many
'address' keys there are, and how likely the key is to appear in
'data', it might make a difference.
Jay P.
--~--~--
he HTML that they're coming from the same server. Are you having
Django serve them, or your web server?
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
On 4/16/07, Roboto <[EMAIL PROTECTED]> wrote:
>
> Hey Jay, yeah, I noticed somethign similar to that affect as well. It
> seems like it does some sort of caching or something, and if it hasn't
> cached in a while it takes a while to load. I'm running mod_python,
On 4/16/07, Roboto <[EMAIL PROTECTED]> wrote:
>
> serving directly from apache.
Well, I'm out of ideas then :) Probably, you should start putting up
some of your more relevant config information (Apache config files),
because you haven't given too much inform
not be a way to do it at this time,
> which is a shame.
>
In the past, you had to create a wrapper around the generic view, but
the TRUNK now contains named URLs:
http://www.djangoproject.com/documentation/url_dispatch/#naming-url-patterns
Jay P.
--~--~-~--~~~---
ned as two people trying to access the site :)
Jay P.
--~--~-~--~~~---~--~~
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
achine X, and machine X tries to do something the object that
requires a call to the database?
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
of that documentation matches the project
documentation quite closely (and in many places is much better), and
as it's done in a book format, it's presented in the order you'd want
if you were learning Django the first time.
And it has a Table of Contents :)
Jay P.
--~--~--
enforces a limit of one instance of this model in the
db. They can go in and change whatever the current details are for
that special, but they can't delete it, and they can't add new ones.
Not the greatest solution in the world, but it works. Anyone have any
better methods?
Jay P.
owse yet? :)
Is that what Adrian's going for? I briefly tried out databrowse the
other day, and couldn't quite see the point (realizing of course that
it's brand new).
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscr
s "hardcore c/c++",
doing real-time embedded devices. ie., as far away from web
development as you can be :)
Django fit my brain quite well, and if you're proficient in C/C++,
then Python won't be too hard to learn (you'
ng
justification for the first one is the hardest but once it's an
'existing' technology it's an easier sell for new projects.
Thanks in advance.
...
Jay Graves
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
On Apr 19, 12:18 pm, Michael K <[EMAIL PROTECTED]> wrote:
> On Apr 19, 12:40 pm, jay graves <[EMAIL PROTECTED]> wrote:
> application on Windows using ODBC? If so, you're not necessarily
> stuck with Windows Server, as there are ODBC solutions for Linux/BSD,
> mea
server.
Your post reinforces that decision.
Thanks for your insight.
...
Jay
--~--~-~--~~~---~--~~
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@googlegr
written using spaces, not tabs.
The community tends to write with spaces, not tabs. The PEP says not
to mix the two, and if a mix happens, convert all your code to use
spaces, not tabs. So be wary if you ever plan on plugging someone
else's Django application into your project.
If you thin
fault()])[0]
>
> TypeError at /admin/polls/poll/1/
> 'int' object is unsubscriptable
>
>
What stage of the tutorial, exactly, did this error occur at? Could
you also please copy and paste the contents of your models.py file
with your response?
Jay P.
--~--~
utorial 2 step by step, checking that the Admin looks like it
does in the tutorial, after each change, or did you just put in all
the code and try it? It'd be helpful to know what the last part was
that still worked, and what change caused it to break.
Jay P.
--~--~-~--~~~--
get screwed up recently
in SVN. I'd try myself, but I've run out of time for the evening.
Also, in the code you posted, the indents seem to be quite strange.
Maybe it's just the way Gmail formats it, but it looks like you're
using indent levels of 5 and 3 in different places. Try t
ting
> OpenIDs with Django user accounts.
>
Simon, thank you for this! Your screencast was the first time I really
understood what OpenID is all about, and I've been hoping for awhile
that you would release the implementation you use for your site.
Very cool, thank you!
Jay P.
--~--~--
esn't seem like the place for 200 line things with
> several files.
Most people create Google Code projects, prefixed with "django-". See
http://code.google.com/p/django-openid/ and
http://code.google.com/p/django-template-utils/ for examples.
Jay P.
--~--~-~--~~-
27;. I
> think I'm going to have to implement some type of JavaScript file to
> accomplish this.
Django can already do this for you. See the SlugField documentation:
http://www.djangoproject.com/documentation/model-api/#slugfield
Jay P.
--~--~-~--~~~---~--~~
On 5/6/07, gsmith <[EMAIL PROTECTED]> wrote:
>
> Jay,
> I've already added my SlugField. Here is a look at the table I
> created
>
> class news(models.Model):
> title = models.CharField(maxlength=200)
> theslug = models.SlugField(prepopulate_from=(&quo
d1, a max of 3 Apache processes will run, so you can run a site
on each process. I might be completely wrong on that though.
Jay P
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
Are the other lists powered by Google Groups? Are they as active as
Django's list?
Perhaps you should direct your complaints to Google, as I don't think
the people on this list (or even the owners of the list) can do much
about it (aside from moderating every new user/post).
Jay
On Dec 10, 2007 2:43 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> Or perhaps I'm reading into this too much. If I distribute the .pyc
> files minus the .py files, would that work? Is this machine-
> independent (IE: I "compile" the source on an x86, it'll be ok on a 64-
> bit or other arch
states that you have to have MySQLdb already installed. It also
provides a link to where you can get MySQLdb. It's up to you to go to
that link and download/install the package.
In short, you'll download it, go to the download directory insi
> >
> > Not sure what's wrong?
>
>
The MySQL on OS X installs some binaries into /usr/local/mysql/bin.
Make sure that directory is on your PATH before running the setup.py
install.
Jay P.
--~--~-~--~~~---~--~~
You received this message because
is
looking for the wrong thing. It could also mean that the object isn't
being setup properly, meaning the getattr can't find what it's
supposed to be looking for.
I know this doesn't really solve your problem (in a long-term useable
way), but hopefully it can give the core
go.views.generic.list_detail.object_list', dict(ammonite_dict,
template_object_name="products",
template_name="products/products_list.html",
extra_context={"title":"Glassware"})),
Then in the template, you can have
{% block title %}{{title}}{% endb
On 9/24/06, Alfonso <[EMAIL PROTECTED]> wrote:
>
> Thanks Jay but for some reason django doesn't like that - nothing is
> output in the view??
Do you have objects in the database?
And I just noticed that you were using .get(pk=1). You should be using
.all(). .get() retur
on.com
(formerly python-hosting.com), and they even natively support Django
(whereas you have to "do it yourself" with Dreamhost).
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djan
way, and the system is installed.
Although a Macports version would be nice for some of the dependencies
(MySQL and PostgreSQL bindings, etc.) There was a thread a few days
ago about peoples' issues with getting installed on OS X, and Macpor
our database installation. Make sure the
> appropriate database tables have been created, and make sure the
> database is readable by the appropriate user."
>
> Does anyone know what is going on?
That's a fairly generic error. You need to give us you
defines the base template. I
also have templatetags created in articles/templatetags and
events/templatetags
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send em
Nevermind, found thread: http://groups.google.com/group/django-users/browse_thread/thread/96442d089932d521/5e6bdd3ef0926641?lnk=st&q=FilterSpec&rnum=2#5e6bdd3ef0926641
Please disregard.On 9/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]
> wrote:Evening all,I was looking at filterspecs last night becau
ge date format in view from dd.mm. but I doubt it's the
> best way to do such things.
Using the 'date' filter, you can format the output however you want,
within templates.
For example, to format a date as "September 17, 2006", you would do
the following in
On 9/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> No one know about this?
>
I believe that the word from on-high is that the current release date
for the book is... wrong. Expect it later rather than sooner, Adrian
et. al. are still workin
o developed sites,
and many of them will provide their code.
Other than that... This group is phenomenal when you need help, as is
the IRC channel.
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djang
return self.category_name
> class Admin:
> pass
>
The reason the first was didn't work, but the second did, is because
of order in the file. A model has to already be declared before you
can make reference to it. So when you wrote
categories = models.ManyToManyField(Category)
On 10/4/06, MerMer <[EMAIL PROTECTED]> wrote:
>
> Thanks Jay and Rajesh,
>
> I've just discovered this myself by switching the code around. This
> is a real GOTCHA and not immediately obvious for a newbie like me. I
> can't see anything in the documentation th
ht be going wrong?
>
Using Safari, by any chance? A few months ago, I was playing around
with MochiKit and the js=[...]. The returned HTML would have the
correct Javascript references in it, and the admin pages would work
fine with Firefox. But for wh
Dreamhost was doing RAM upgrades on a bunch of machines this
afternoon. I *highly* recommend you subscribe to the Dreamhost RSS
feed, as they're quite good about warning you beforehand when
something like this will happen:
http://www.dreamhoststatus.com/feed/
runk,
but that won't happen without more people playing around with it. And
like me, I know a lot of people are short on time these days. I would
worry that Chris might lose interest if there's no movement (as anyone
in his position might do.
Jay P.
--~--~-~--~~~---
ed.
>
You'll have to do an 'svn switch' to the branch, then a 'manage.py
syncdb' to add the new tables that POP requires.
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Dja
On 10/23/06, orestis <[EMAIL PROTECTED]> wrote:
>
> Anyone ?
>
Maybe this is too much, but with it you can extend the User module and
add whatever fields you want:
http://www.b-list.org/weblog/2006/06/06/django-tips-extending-us
eople do occasionally post it here, but Ian Holsman has setup a
dedicated site, http://gypsyjobs.com/, for Django job postings.
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
been a *very* recent thing). 1.0 certainly
won't come before it's ready, with the code being solid.
Of course, that's just me spouting my mouth off. All folks with commit
privileges are welcome to come and contradict everything I just said
:)
Jay P
--~--~-~--~~---
etter as http://asme.seas.ucla.edu/members/karen-chang
Otherwise, looks great!
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
postcode }} works fine, where userprofile is the
> name of the one-to-one class.
The advantage though of 'get_profile' is that you don't *need* to know
the name of the OneToOne class. So if you change it to something else,
or maybe reuse the templates in a different application,
ally using
whatever view causes this template to get rendered?
My initial guess would be that the template is being rendered with
some 'object', but the 'object' is not in fact a 'Story' object, as is
required.
And definitely try Malcolm's suggestion of using
peak their mind on
the issue, which gives you another perspective on the issues at hand.
Jay
Panos Laganakos wrote:
> I'm going to work a small photo managment app for an LAN site here, and
> I wanted to hear some opinions.
>
> >From what I've seen people tend to store im
haven't used it myself, but I think it'd be something like:
{% for line in lines %}
{% ifchanged %} line.name {% endifchanged %}
{% endfor %}
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"
You have to email Tom Tobin ([EMAIL PROTECTED]) for whitelist requests.
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to dj
user = models.ForeignKey(User)
> name = models.CharField(maxlength=30)
> create_date = models.DateTimeField()
>
> class Category(MyEntity):
> pass
> [snip]
Django doesn't support model inheritance at this time. Hopefully soon,
but not right now.
Jay
using your original models.py, plus the new urls.py from
the webpage? Or did you completely scrap your original database, and
start fresh with what's on the webpage?
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the G
the code and write a physical view it works perfectly.
Could you try starting up the Python interpreter ('python manage.py
shell'), and access the model from there? Does that show the entries?
Jay P.
--~--~-~--~~~---~--~~
You received this message because y
nd what
>
>
> Info on the active branches:
> http://code.djangoproject.com/wiki/ActiveBranches
I've tested Row Level Permissions quite a bit. After various fixes
from Chris Long, it's working quite well now (for me).
Jay P.
--~--~-~--~~~---~--~~
You
if you're feeling adventurous and you have an itch that needs
> scratching, dive in and help.
>
I don't think the SQLAlchemy branch has actually had any work done on
it yet. The trunk keeps getting merged into it, but tha
Could you write your own filter to clean up the output to an acceptable level?
That's maybe not an ideal solution from your point of view, but it should work.
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
in x:
...: print each
...:
...:
a
b
According to a comment by Adrian on the template documentation page,
what you want isn't possible without writing a simple tag or filter.
Jay P.
--~--~-~--~~~---~--~~
You received this message because you
On 11/10/06, Jay Parlar <[EMAIL PROTECTED]> wrote:
> When you iterate over a dictionary, you're iterating over the *keys*
> in the dictionary, not the values.
>
> ie.
>
> In [1]: x = {"a":1, "b":2}
>
> In [2]: for each in x:
>...:
On 11/10/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
>
> On 11/10/06, Merric Mercer <[EMAIL PROTECTED]> wrote:
> >
> > Jay, that works! Many thanks. Though I don't quite understand why - or
> > where 'values' come from. Could you explain.
>
return object_list(request, qs, paginate_by=10, allow_empty=True)
If it helps, take a look for yourself in
django/views/generic/list_detail.py, look at the 'object_list'
function, and you can see that it's just taking keyword arguments, the
same arguments listed in the documentation.
Ja
= True,
> template_name = 'scripts/operations_archive_month.html', num_latest =
> '20', allow_future = True)),
> )
>
> When i try
> http://127.0.0.1:8000/budget/2006/08/
>
> i get all august operations, but also operations of september
#x27; folder as a
relative URL. Look at the request, it's trying to get:
GET /budget/2006/08/media/css/budget.css
which isn't what you want. Your HTML should probably be:
(ie. I added a '/' in front of 'media')
Jay P.
--~--~-~--~~~-
ould be able to just do a
'touch' on your .fcgi file.
Really though, you should be doing development with the built-in dev
server, and then when you have your models and everything working,
move to lighttpd.
Jay P
--~--~-~--~~~---~--~~
You received this
is:
Event.objects.filter(end_date__gte=datetime.now()).order_by('end_date')
Notice also that the 'upcoming_events' extra context is returned by a
function. The reason for this is that I want datetime.now() to be
called everytime the URL is accessed, not jus
x27;s not in the development version's trunk, but in the "
<http://code.djangoproject.com/browser/django/branches/boulder-oracle-sprint>boulder-oracle-sprint"
branch.
Jay
--~--~-~--~~~---~--~~
You received this message because you are subscrib
r some file
> > entries, so it needs to be a link to file. Any idea how this should be
> > done?
You might also be able to use the 'js' option to add some custom
JavaScript to the page, and add the button via that.
Jay P.
--~--~-~--~~~---~--~--
my
production server.
>From there, I have an svn checkout. Go there, do my 'svn up'. Then, I
do 'svn export --force ...' to make a pristine copy of the contents of
the svn checkout into the directory that contains my actual running
website.
I'm sure there are better
ger-, String- and ForeignKey-Fields. Manually changing the fields
> in the db solved the problem.)
blank=True is *only* for admin level validation, it has no effect on
the db. You want null=True
Jay P.
--~--~-~--~~~---~--~~
You received this message because
You could also set a 'default' value for the field, something like
default="http://";
Then it will be prepopulated, which would help a little.
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
list member is even the one that created
TextDrive's screencast). Maybe you can get some answers that way.
For better or worse, I use Dreamhost, so I'm afraid I'm not much more
help to you.
I'm just worried that no one else is reading this th
e WHERE RAND()
> 0.9 ORDER BY RAND() LIMIT 10, but I didn't see much added benefit
when running it on my own large tables (same Explain result too as the
previous one).
Give those a shot though and see if they help anything. You may have to
take this into the applica
On 12/1/06, Noah <[EMAIL PROTECTED]> wrote:
>
> I'm not in charge of such decisions. I only write the code.
Doesn't remove the moral obligation on your part to do something about
it, or refuse the work.
Jay P.
--~--~-~--~~~---~--~~
You
t; Traceback (most recent call last):
> ...
> DoesNotExist: UserProfile matching query does not exist.
>
> The Question:
> How do I get the userprofile created with each user? (I tried the
> OneToOne model and that didn't work either).
>
>
above to see how I select upcoming events from the
database, namely:
def get_upcoming():
return
Event.objects.filter(end_date__gte=datetime.now()).order_by('end_date')
If you don't understand what's going on there, you'll need to read the
documentation more.
Hope
to store the file on disk during the
upload, instead of RAM, which is supposed to help quite a bit.
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this gr
se correctly. :) None of the generic views combine an "object
> detail" with "object list."
But it's very easy to pass in the object list as 'extra_context' to
the generic view, which I think people sometimes forget about.
Jay P.
--~--~-~--~~-
e more information about the position, please contact
> me directly at jim.fritchman (at) gmail (dot) com.
>
> Please feel free to pass this along to anyone you know that might be
> interested.
>
Don't forget to post this over at http://gypsyjobs.com/, where they
s
nection to the
> internet. I answered yes, and saw a short burst of traffic.
>
> What was not found, and what do I do about it?
Are you running behind a proxy server, by any chance? urllib2 can get
tripped up in that situation.
Jay P.
--~--~-~--~~~---~--~~
On 12/14/06, kbochert <[EMAIL PROTECTED]> wrote:
>
> Not that I am aware of. Windows 2000, Sygate personal firewall. Comcast
> cable.
> Plain vanilla I think.
>
Could you paste in the full text of the traceback?
Jay P.
--~--~-~--~~~---~--~---
oved at one point, don't know if that's
true anymore). So this won't be a problem in the future.
You just happened to be one of the few people running Python2.5 and
Django 0.95. Most people running 2.5 are probably running Django out
of SVN, where this isn't an issue.
Let me kno
it"
button would immediately bring the engineer to a new page, and I could
keep them up to date on the status as the separate server did its
processing.
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"
d from http://media.djangoproject.com
For a better explanation, see:
http://www.djangoproject.com/documentation/static_files/
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post
though. I know Adrian has been doing occasional trunk mergers of
it, as Chris Long, the original author, seems to have stopped
development on it.
I'd say it's as close to merge ready as any of the branches, but there
were never enough people testing it to push i
my site's code here:
http://svn.jayparlar.com/website/trunk/awwca/
Jay P.
--~--~-~--~~~---~--~~
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
T
.
For my site, for example, one of the .jpgs have the link:
http://media.awwca.ca/site_media/stockphoto/2006/09/17/HPIM1621a.JPG
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To p
ing up a 'proper' server while in development.
Hmm, that MEDIA_URL worries me. Can you try setting that to something
more concrete?
> For my site, for example, one of the .jpgs have the link:
> http://media.awwca.ca/site_media/stockphoto/2006/09/17/HPIM1621a.JPG
Is this taken f
d a default install - I thought perhaps 'photos' was
causing the problem).
Can you paste the full traceback for the string index error?
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Djan
er that,
"stockphoto/2007/01/17/newser.jpg" is roughly the correct path to the
actual file. BUT, that path should be a child of the media directory,
not of the admin edit page.
The problem is most likely with your MEDIA_URL. Make sure it ends with a '/'
Jay P.
--~--~---
On 1/17/07, Isaac Alston <[EMAIL PROTECTED]> wrote:
> The problem is most likely with your MEDIA_URL. Make sure it ends with a '/'
Thank you very much. That seems to be it fixed :-D. First I had
MEDIA_URL set to:
' ' then
'127.0.0.1:8000', then
'127.0.0.1:8000/' then
'/', then finally
'/smedia
times in
this list. If you search through, you should be able to find one or
two solutions. None of them are great, but they're all that's
available.
Many moons ago, I submitted a patch that allowed custom upload_to. No
idea if it would work a
ch the djangobook.com
domain.
So do "site:djangobook.com adrian" to find all the occurrences of
"Adrian" on the site.
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To
estion.
> L.
>
Even if you reconfigure your Apache, your CPU is going to get maxed
out. Read through the archives, there is a patch or two out there to
change the way Django handles uploads, to allow for big files.
Jay P.
--~--~-~--~~~---~--~~
You received this mess
for me. Luckily the site doesn't need any major changes (and
won't anytime soon), or I'd have some issues.
Jay P.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users"
n is too busy with the newforms
branch right now.
Jay P.
--~--~-~--~~~---~--~~
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 unsubscrib
AGE_CODE is in
base.html
When I load firmware/ in the browser and look at the source, the
LANGUAGE_CODE didn't get populated, it was just replaced with empty
strings. However, it works fine for firmware/success
Is there something about render_to_response that makes it that
LANGUAGE_CODE do
101 - 200 of 501 matches
Mail list logo