On Wednesday, June 6, 2007, at 01:58 PM, [EMAIL PROTECTED] wrote:
>
> I'm trying to push a beta build of an App I wrote to my Apache server
> but, I'm running into some problems (I'm pretty sure it's permission
> related)
> [code]
> [EMAIL PROTECTED] alpha1]# ls -al
> total 24
> drwxr-xr-x 3 the
On Wednesday, June 6, 2007, at 04:45 PM, ATLBeer wrote:
> Yeah... the directory structure is confusing but, I'm pretty sure I
> have it correct
>
> [snip]
>
> /home/thebest/TheBest/alpha1/TheBest
> /home/"username"/"container"/"build_version"/"django_project"
Well, then, there's your problem. Y
On Jun 11, 2007, at 3:22 PM, Mike Schinkel wrote:
> But I've found a workable solution (note the subject of
> my reply), so I can stay subscribed. I just know now not to ever ask
> for anything to be changed. ;-)
You previously mentioned that one-key filtering only works with
subject, body, o
On Jul 4, 2007, at 3:52 PM, Steve Bergman wrote:
> I'd like to be able to render a template straight down the wire to the
> browser on the fly.
>
> Is this possible?
This was discussed a few weeks ago on the developer list:
http://groups.google.com/group/django-developers/browse_frm/thread/
32
On Jul 12, 2007, at 6:03 AM, Jeremy Dunck wrote:
>
> You might want to check out DjangoAMF:
> http://djangoamf.sourceforge.jp/index.php?DjangoAMF_en
>
> It's specifically for Adobe XML messaging. It adapts Flex's requests
> to regular Django views.
Actually, AMF is a compact binary format that
On Aug 2, 2007, at 2:01 AM, Jens Diemer wrote:
>
> We have the shortcut get_or_create() [1], but whats about a
> create_or_update() ?
>
> [1] http://www.djangoproject.com/documentation/db-api/#get-or-
> create-kwargs
The shortcut already exists, it's called save().
http://www.djangoproject.c
On Feb 14, 2007, at 2:46 PM, James Tauber wrote:
> If the formatting could be applied to different classes, I'd use a
> filter. If the formatting only makes sense for Houses, I'd make it a
> method on House.
And you might even want to make it a __str__() method, I do that for
some of my models
On Feb 15, 2007, at 10:30 AM, Jakub Labath wrote:
> Hi,
>
> Thanks, but that is not what I'm looking for.
>
> I need to find out at runtime from within my code. Something like.
Since, you can't change modes during runtime, I would set an
environment variable when you start the server and test
On Mar 29, 2007, at 4:46 PM, Karen Tracey wrote:
>
> So actually the server continues to "run" but it is pretty useless
> given model validation failed. The annoying thing is that when I
> correct the error in my models.py file and re-save, the development
> server does not auto-reload the
Django's equivalent are signals. Here's a few links:
http://code.djangoproject.com/wiki/Signals
http://www.mercurytide.com/whitepapers/django-signals/
http://feh.holsman.net/articles/2006/06/13/django-signals
Don
On May 4, 2007, at 9:06 PM, Mambaragi wrote:
>
> I need to start a thread when Ap
I've dabbled in Flex with Django on the backend, using JSON as the
transport mechanism. It's not that difficult, you just skip all the
HTML template stuff and handle data requests and serve them
accordingly. No different than implementing AJAX in the traditional
way. I used the Cairngorm f
You stated you got a python traceback and yet you only show us the
error message. What Malcolm was trying to say was that it would be
helpful to print out that traceback, rather than your Apache
configuration, at least to start with.
When debugging a problem it's always best to start with t
On Tuesday, May 29, 2007, at 05:25 PM, Russell Keith-Magee wrote:
> The only other cause I can think of would be an error in the fixture
> file that might be getting eaten by the test process. Does the fixture
> load ok if you run './manage.py loaddata myfixture' (where myfixture
> is the name of
Well, just a follow up for future spelunkers to this list.
Updating my code to the changes in 5173 and 5211 worked (it now loads
fixtures that are not named initial_data.json). For some reason,
straight code from 0.96 doesn't work, I never figured out why.
And I patched get_sql_flush() to use
On Oct 3, 2007, at 7:55 AM, Xan wrote:
>
> In http://code.djangoproject.com/ticket/5534 there is a howto for
> doing that.
> But it's only when the script is in the root project directory.
> What happens if we want the script in other location? What line we
> have to add?
>
> Thanks a lot,
> Xan.
On Nov 7, 2007, at 2:08 PM, Todd O'Bryan wrote:
>
> Does anyone know if those of us with gmail clicking the Report Spam
> button connects back to Google Groups, or are we just protecting
> ourselves?
I usually go to the Google Groups web site for this and the dev group.
There is a link in each
> On Nov 7, 2007, at 4:45 PM, Don Arbow wrote:
>>
>> I usually go to the Google Groups web site for this and the dev
>> group. There is a link in each message that you can use to report
>> it as spam. I find that Google seems to be pretty quick to ban a
>>
On Nov 20, 2007, at 3:18 PM, Jeremy Dunck wrote:
>
> On Nov 20, 2007 3:26 PM, hajo <[EMAIL PROTECTED]> wrote:
>>
>> Thanks a lot; will defintely look into this one!
>> The other solution I looked at was to send an address to google (We
>> have a commercial deal with them; I work for a failry large
On Sep 21, 2006, at 1:17 PM, zehi wrote:
>
> Still not successfull
>
> When trying to install MySQLdb I'm getting this error:
>
> zehi:~/Desktop/MySQL-python-1.2.1_p2 zehi$ python setup.py build
> sh: line 1: mysql_config: command not found
> sh: line 1: mysql_config: command not found
> sh: l
On Sep 23, 2006, at 8:49 AM, Jon Atkinson wrote:
>
> Hi all,
>
> I've been looking for a copy of the Django cheat sheet (previous URL:
> http://www.dobbes.com/media/pdfs/django_reference_sheet.pdf), but that
> resource seems to have disappeared. Does anyone have a copy of this?
You can find a c
On Sep 25, 2006, at 5:48 PM, brad wrote:
>
> Exception Type: TypeError
> Exception Value:'tuple' object is not callable
> Exception Location: E:\dp1\mysite\..\mysite\urls.py in ?, line 10
>
> And line ten of 'urls.py' is the following:
>
> (r'^select/$', 'mysite.polls.views.sel
On Sep 26, 2006, at 6:06 PM, Greg Plesur wrote:Hi all,I'm a new subscriber to this list, and am having an issue that I'm hoping you can help me with (I also posted this as a trouble-ticket, because I'm not seeing any references to this issue anywhere and it seems buggy):It looks like my models are
This was answered here last month:http://groups.google.com/group/django-users/browse_frm/thread/f0e7d503401a7186/1d378aa769159983?#1d378aa769159983As Jay mentioned, you need to use the object value, not the formfield. The date filter requires a datetime instance, which the formfield is not and so
On Sep 28, 2006, at 7:08 AM, falcon wrote:
>
> Let's say I have two arrays:
> data=[["a",1,9],["b",2,8],["c",3,7],["d",4,6],["e",5,5]]
> type=['string','number','number]
>
> I iterate through the 'data' array (either with 'for' or 'range'
> loops)
> and render a with values from the array.
> ..
On Sep 28, 2006, at 6:26 PM, Sean Schertell wrote:
>
> (2) This is a biggie for me. I can't believe that the authentication
> module forces you to use hard coded urls for login/logout pages --
> that's just maddening! So if you want to do it your own way, you have
> to totally roll your own authen
On Sep 29, 2006, at 7:43 AM, mamcxyz wrote:
> - I dislike the indirection to run django class... the thing about run
> python manage.py shell to really touch the classes... is not very
> "pythonic", or mainly, convenient.
How can the python shell not be pythonic?
Don
--~--~-~--~~
On Sep 29, 2006, at 11:56 AM, Wilson Miner wrote:
>
> That was actually a conscious decision to keep from needing support
> images for the debug pages. I wanted them to be completely
> self-contained, which is why we used the unicode glyph for the
> disclosure triangle (a pretty universal UI indic
On Oct 3, 2006, at 9:30 PM, Patrick J. Anderson wrote:
>
> def main(request):
> posts = Post.objects.filter(is_approved =
> True).order_by('-time_added')[:5]
> t = loader.get_template('homepage.html')
> c = RequestContext({
> 'latest_posts': posts,
> })
> return H
On Oct 6, 2006, at 1:47 PM, Paul Barry wrote:
>
> The link on
>
> http://code.djangoproject.com/wiki/DjangoPoweredSites
>
> points to the blog. I guess that link should be updated.
Melt is the Django application (next to the link it says "social
networking *software*", not *site*), the link
On Oct 6, 2006, at 2:20 PM, MerMer wrote:
>
> Ray,
>
> The code is below. The RATINGS_CHOICES are defined inside the Model
> Class.
>
> MerMer
>
> RATING_CHOICES=(
> ('5', '5 stars'),
> ('4', '4 stars'),
> ('3', '3 stars'),
> ('2', '1 stars'),
>
On Oct 7, 2006, at 1:57 AM, Marco Amato wrote:
> I am not a big programmer , and I will found usefull sample of code.
> So, what about add a list of app and project for example?
What about this page at the django website?
http://code.djangoproject.com/
scroll down and you'll see a heading tha
On Oct 11, 2006, at 8:06 AM, orestis wrote:
> So I ask: How can access from the session object ALL visitors so I can
> display in my site:
Django sessions are stored in the database. I did this quick test
using the django shell, should be enough to get you started:
>>> from django.contrib.se
Note that Adrian posted a message some time ago about how he uses
geometry fields in Postgres and Django for his chicagocrime.org site.
His post is in this thread:
http://groups.google.com/group/django-users/browse_thread/thread/
1fbbaf710996a8aa/8b322b5b68b29fbb?
lnk=gst&q=postgis&rnum=1#8
On Oct 12, 2006, at 8:03 AM, MerMer wrote:
>
> my settings look like the following:-
>
> TEMPLATE_DIRS = (
> "c:/python24/lib/site-packages/django/bin/mysite/mytemplates",
>
> When I set up Django I just put in the full path in the belief that
> this would make things easier while I was testin
On Oct 12, 2006, at 12:29 PM, MerMer wrote:
>
> Don,
>
> Thanks for the advice - but it's not working for me.
>
> My full path is
> "c:/python24/lib/site-packages/django/bin/mysite/mytemplates" which
> works.
>
> I've tried "/mytemplates" and "mysite/mytemplates" as the TEMPLATE_DIR
> path but the
On Oct 13, 2006, at 2:58 PM, sdm wrote:
>
> Hi, I look in the documentation, but don't have found how can I
> send an
> email with html content, how can I do it?
That's because it's not a Django question, but a Python one. Here's a
link to a page showing how to send HTML emails using the Py
On Oct 15, 2006, at 3:18 PM, Marcus Mendes wrote:
>
> Hello all,
> what about if we put "[django-users]" (or something like this) string
> at the begining of subject of our e-mails? It will be more easy to
> identify all e-mails tha came from that list.
Why clutter the subject lines with redund
On Oct 16, 2006, at 1:30 PM, Rob Hudson wrote:
>
> On Oct 16, 1:00 pm, "Terry" <[EMAIL PROTECTED]> wrote:
>> Easiest way I've found to do it is to add the following as the first
>> two lines of the view function that you want to debug:
>>
>> import pdb
>> pdb.run_trace()
>>
>> Then, when y
On Oct 18, 2006, at 5:29 AM, Lucas Vogelsang wrote:
> ...[snip]...
> "/usr/lib/python2.4/site-packages/django/db/models/fields/__init__.py"
> in get_db_prep_save
> 446. value = value.strftime('%Y-%m-%d')
>
> AttributeError at /addressbook/new/
> 'str' object has no attribute 'strftime'
Ho
On Oct 19, 2006, at 7:35 AM, [EMAIL PROTECTED] wrote:
>
> Cycle is interesting (haven't used it), but here's how I do it: Works
> well, and it appears to me it may have some advantages over cycle.
>
>
Note that cycle is not restricted to just two rows, you can have as
many alternating colors
On Oct 19, 2006, at 5:03 AM, zenx wrote:
>
> I want to get the maximum and the minimum values of various
> numbers. Is
> the following method the best way to do it?
Python already has min and max functions available. Just feed as many
values in a tuple and it will return the min or max value
On Oct 19, 2006, at 3:21 PM, zenx wrote:
>
> hi,
>
> just tried this but doesn't work:
>
> q = ArtistaTag.objects.all()
> nums=['']
> for tag in q:
> num = tag.artista_set.count()
> nums.append(num)
>
> max_art = max(nums)
> min_art = min(nums)
>
> i get a TypeError unsuppo
On Oct 21, 2006, at 2:39 AM, [EMAIL PROTECTED] wrote:Just a quick question: has anyone tried to start a Django-poweredwebsite at this hoster (www.nearlyfreespeech.net) yet? If so, anycomments?I doubt it:What are the most common things that do not work on your system?Here are the things we are most
On Oct 21, 2006, at 1:47 PM, Ed wrote:
>
> Hello, currently url patterns are hard coded into urls.py, in the
> templates, and in some cases the views which return redirects. This is
> becoming a dangerous practice in our application development. If one
> url needs to be changed due to an update i
On Oct 22, 2006, at 9:29 AM, Adrian Holovaty wrote:With that said, I'm wondering whether we can completely disable thatfield. Any Trac experts around?Should be easily doable:http://trac.edgewall.org/wiki/TracTicketsMany of the default ticket fields can be hidden from the ticket web interface simply
On Oct 23, 2006, at 10:32 AM, orestis wrote:
>
> Thanks, but that will not do. I want the fields to show up in the
> admin
> list display. I don't want to add any new fields. I just want to view
> more fields in the list, and be allowed to sort on them (eg. to
> sort by
> date of creation etc)
On Oct 24, 2006, at 10:05 AM, orestis wrote:
>
> http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts
In addition, this question is asked very frequently, you can search
google groups and find a bunch of answers in just the last month or two.
Don
--~--~-~--~~~
On Oct 25, 2006, at 6:50 AM, MerMer wrote:
>
> I've looked through the official docs regarding sending an email but I
> can't find any explanation on how to point to a particular SMTP
> server.
In your settings file, you need to override the global setting
EMAIL_HOST. Look in the file globa
On Oct 26, 2006, at 3:24 AM, MerMer wrote:I am trying to get the Logout Method to work, but I keepgetting"Exception Value: maximum recursion depth exceeded!".The view is very straightforward, so I can't understand where I'm goingwrong.from django.contrib.auth import logout, authenticate, logindef
On Oct 26, 2006, at 6:12 AM, MerMer wrote:
> 1) I am able to add fields from the User class directly to a
> template.
> e.g. {{ user.email }}. However, I can't see a way to add the extra
> fields from the UserProfile class directly to the template, even
> though
> it has a one-to-one relation
On Oct 27, 2006, at 9:45 AM, Merric Mercer wrote:
>
> Many thanks Don. I figured it out, but because of issues with google
> have had problems posting back.
>
> It turns out that I don't even have to use get_profile. Something
> like
> {{ user.userprofile.postcode }} works fine, where userprof
On Oct 29, 2006, at 8:49 PM, Rares Vernica wrote:
>
> Where is the django function that does the "first_name" -> "First
> Name"
> transformation? (The function is used by the Admin interface.)
It's in the result_headers method in django/contrib/admin/
templatetags/admin_list.py. If you have
On Nov 1, 2006, at 4:19 PM, Shannon -jj Behrens wrote:Hi,I'm looking at ttp://code.djangoproject.com/browser/django/trunk/django/http/__init__.py#L199. It seems very natural to pass a value of False to the secure argumentinstead of None, but if you do this, it gets treated as if you passedsecure=Tr
On Nov 6, 2006, at 12:03 AM, Carl Holm wrote:
> Thanks. I should clarify that I am looking for the string "Site
> administration" which I did not find in the base_site.html
> template. Is should also mention that I am running the dev version.
The actual physical location of the string "Site adm
On Nov 8, 2006, at 12:13 AM, Pythoni wrote:
>
>
> Now when I try:
> words.get_list(order_by=('Word'))
>
> I will get the error:
> OperationalError: (1054, "Unknown column 'mimi_words.W' in 'order
> clause'")
This is a basic Python error. You have a tuple with only one item, so
you need t
On Nov 13, 2006, at 4:06 PM, Rob Hudson wrote:
>
> I'm building a rating system using AJAX (well, maybe AJAJ?) in Django.
> I've got it working and am doing some clean up and validation work. A
> few questions:
>
> 1. If a request is invalid, what is the appropriate or common thing to
> do? Send
On Nov 14, 2006, at 8:17 AM, benstewart wrote:
>
> I suppose nobody has the time to help... or maybe nobody has desire to
> help.
>
> This is sad since I have already searched and tried everything that I
> could find here, at the django project website, in the django book,
> and
> on the web. I
On Nov 15, 2006, at 9:58 PM, simonbun wrote:
>
> The problem with getting the last record's id and using it, is that
> someone might have inserted yet another record while you're still
> working on the previous one.
>
> For single user scenario's it's ok, or if you're using table level
> write loc
On Nov 19, 2006, at 11:29 AM, Jeremy Dunck wrote:
> In the simplest case, __init__.py can just be an empty file, but it
> can
> also execute initialization code for the package or set the __all__
> variable, described later.
it's also handy to store code where you don't want another namespace
On Nov 27, 2006, at 5:29 AM, favo wrote:
> I can't submit or change ticket, this block me to contrib. could we
> fix
> the problem of the ticket system? I heard someones have the same
> problem. thanks a lot.
Did you click the settings link at the bottom right of the page and
enter your info
On Nov 27, 2006, at 3:00 PM, [EMAIL PROTECTED] wrote:
>
> I understand Django should send an email when there's an error and
> debug=False.
>
> It doesn't. Not for me anyway.
Do you have an email server defined? If not, Django tries to use the
localhost to send. Do something like this in your
On Nov 27, 2006, at 4:59 PM, [EMAIL PROTECTED] wrote:
> I think that may be it, but something's still not right.
>
> I now have:
> DEBUG = False
> TEMPLATE_DEBUG = False
>
> ADMINS = (
> ('Tim Baxter', '[EMAIL PROTECTED]'),
> )
>
> MANAGERS = ADMINS
> EMAIL_HOST='mail2.webfaction.com' # webfa
On Nov 29, 2006, at 10:50 AM, Clint74 wrote:
>
> Hi,
>
> I need to send the password to the user(email), but how recover the
> raw
> password once the database stores in this format:
>
> hashType$salt$hash
> sha1$6070e$d3a0c5d565deb4318ed607be9706a98535ec7968
You cannot recover the password on
On Dec 7, 2006, at 8:15 AM, [EMAIL PROTECTED] wrote:
>
> Right off the top, I'd suggest alot of your slowdown is in the number
> of http requests. It appears you're making quite a few javascript and
> css calls. I'd see if i could pare that back.
>
>
> Also, temporarily remove your google analytic
On Dec 9, 2006, at 10:56 AM, mezhaka wrote:
>
> try
> {% extends "/blog/base.html" %}
> instead of
> {% extends "/blog/base" %}
In addition, he should remove the leading '/' from the path in the
extends clause. If you code a leading slash, os.path.join() ignores
the template path.
Don
-
On Dec 11, 2006, at 7:48 AM, Bob wrote:
>
> http://www.djangoproject.com/documentation/testing/ indicates that
> unittests can be run with
> ./manage.py test
>
> However, when I run it, "test" is not known as an action. I get this
> output:
> ---
> $ c:/Python24/Python manage.py test
On Dec 14, 2006, at 12:49 AM, MC wrote:
>
> Problem:
> I order dates and null values in ascending order under MySQL. To my
> surprise, null values are listed first, then actual dates. Turns out
> that in MySQL, null values are LOWER than non-null values, whereas
> Postgresql is the reverse. As out
On Dec 17, 2006, at 9:16 AM, Jamie wrote:
>
> Hello,
>
> I'm just wondering if there's a specific reason why IPAddressField is
> defined as a 15-character string instead of a 32-bit integer? Using an
> integer would reduce the storage size by 15 bytes to only four bytes
> and make it easier to cal
On Dec 17, 2006, at 12:22 PM, Ramdas S wrote:
> Hi,
>
> Is there anyone working on Django based web control panel/ or an
> extended user panel for simple network management
This was started as a replacement for webmin. Don't know how far
along the project is, though.
http://code.google.com/
On Dec 18, 2006, at 10:52 PM, Denis Frère wrote:
>
> I've just found a bug that made me searching for hours... I'll tell
> you
> the story in case it could help someone else.
>
> I got a strange behaviour with Django views recently : some pages of a
> website I'm developping were empty apart fro
On Dec 19, 2006, at 10:49 PM, James Bennett wrote:
...
So we generally recommend using a separate instance of Apache (with no
mod_python) or some other web server (lighttpd is very good at this)
to handle serving static CSS files, JavaScript, images, etc.; the
result is *much* more efficient use
On Dec 21, 2006, at 10:35 AM, Jeremy Dunck wrote:
Where does one find this tiny shim?
Well, the url is in the screencast:
http://aspen-commons.googlecode.com/svn/stephane/
Don
--~--~-~--~~~---~--~~
You received this message because you are subscribed to t
On Dec 22, 2006, at 10:21 PM, Russell Keith-Magee wrote:
Same result, different composition. Personally, given Guido's
predisposition to eliminating reduce() in Python 3000 [1], I'd be
avoiding using reduce in new code.
Python 2.5 has any() and all() to replace reduce(). So I believe you
co
On Dec 25, 2006, at 11:03 PM, Saurabh Sawant wrote:
I think this is the best place to ask this question because many a
times, the people who start saying negative things about a
framework is
when they find out it doesn't suit their need. If we can compile a
list
where another framework is b
On Dec 26, 2006, at 7:13 PM, Mike Tuller wrote:
I seem to have everything installed correctly, and the python paths
seem to be correct. I am going through the tutorial in the online
book, and I run into a problem. When I run the first application
http://127.0.0.1/now/ I get the following err
On Dec 26, 2006, at 7:46 PM, Adrian Holovaty wrote:
On 12/26/06, Don Arbow <[EMAIL PROTECTED]> wrote:
Read the comments in chapter 3 where it says "Let's edit this file
to expose
our current_datetime view:". According to people that have commented,
there's a small
On Dec 27, 2006, at 5:44 PM, Jason C. Leach wrote:
Specifically, I'm curious how you do it without putting SQL in the
view. From what I understand about the methodology of MVC this should
not be done.
I would only worry about that if you are concerned about
maintainability or want to avoid
What you are asking is how to use a variable as a key into a
dictionary, you cannot normally do this with Django template. You
can get around it by using a template tag or try this:
{% for date in date_list.items|dictsort:"0" %}
{{ date.1 }}
{% endfor %}
Here's an explanation of how the a
On Jan 17, 2007, at 12:19 PM, Jacob Kaplan-Moss wrote:
>
> I'm really excited about these changes; I think they'll really help
> us be more
> efficient.
Whoo, hooo! And with the upgrade, you fixed the Safari bug in the
ticket search results page, no more crashing when mousing over the
tit
On Jan 19, 2007, at 7:40 AM, LD 'Gus' Landis wrote:
If the spam can't be stopped, the unsubscribe is the only option I
guess, eh?
No, you go to the Google Groups web page and report the spam. In the
title of the message is a "Show Options" link, click that, then click
the "Report Abuse
On Jan 22, 2007, at 12:22 PM, ashwoods wrote:
>
> hmm... i guess everybody is tired of translation discussions :)
You might have better luck in the Django internationalization group:
http://groups.google.com/group/django-I18n/
Don
--~--~-~--~~~---~--~~
Y
On Jan 23, 2007, at 4:21 PM, speleolinux wrote:
>
> Hi all
>
> Having got the tutorial working I have been looking at the docs
> covering what's meant by a site, projects, apps etc. It looks like
> there is a lot to read there to really understand the framework.
> Anyhow
> what I'd like to do is
On Jan 27, 2007, at 8:57 AM, Filipe Correia wrote:
>
>>> Having to change the source code to debug it doesn't feel very
>>> right...
>> And adding print statements is...what?
>
> I agree :) And that's why, to me, neither seem the right way to go...
> (then again, using prints is the most effecti
On Jan 29, 2007, at 4:22 AM, innervision wrote:
>
> How can I tell the queryset to use an OR operator between the 'where'
> clause and the conditions set-up in the Q object?
http://www.djangoproject.com/documentation/models/or_lookups/
Don
--~--~-~--~~~---~--~~
On 1/29/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> C'mon guys... anyone?
I used to be a member of the Mac user group here in Seattle. Every
Saturday morning, they hold a "Cafe" where users can get together for
coffee and doughnuts, talk about Macs and people can bring in their
mach
On Jan 30, 2007, at 2:45 PM, Curtis W. Ruck wrote:
> We have a model with a DateTimeField, and two FloatField's. These
> three fields are unique_together in the database.
>
> Why when using get_or_create(datetimefield=someDatetimeObject,
> floatfield1=float(-34.2412), floatfield2=float(1.2432)
On Feb 1, 2007, at 4:05 PM, evenrik wrote:
>
> I have 2 domain names pointing to the same ip. I need to customize
> some of the content depending on which domain is used. How do I know
> in a view which one the user connected with?
request.META['HTTP_HOST'] should tell you the domain name that
On Feb 4, 2007, at 8:44 AM, Ramiro Morales wrote:
>
> On 2/4/07, Tom Smith <[EMAIL PROTECTED]> wrote:
>>
>> I have a model that looks roughly like this...
>>
>> class Client(models.Model):
>> name = models.CharField(maxlength=200, default='')
>>
>> class Competitor(models.Model):
>> clie
On Feb 12, 2007, at 6:30 AM, limodou wrote:
> I'v setup a demo site for open book platform project. So you can visit
> it : http://limodou.51boo.com
> This site is just for testing and demo, so don't put important
> things in it.
I would refrain from using other's images on your site (you too
On May 10, 2006, at 3:12 PM, Paulo wrote:
>>> I don't want to bother you all with my mundane, trivial questions
>>> but
>>> I still would love to jump head first into Django. I just can't
>>> get it
>>> working right. I have not been able to get past the first step of
>>> the
>>> tutorial.
On May 10, 2006, at 1:46 PM, Juancho wrote:
>
> Hello,
>
> I am trying to get a SelectField to render with a default value, i.e.,
> a pre-selected choice.
>
> With the current SelectField implementation, this is not possible. I
> see this issue has been addressed before but was closed as "wontf
On May 17, 2006, at 5:17 PM, Jay Parlar wrote:
>
> I'm not seeing 'inclusion_tag' in the docs anywhere, is it meant to be
> a public API function?
inclusion_tag is defined in django/template/__init__.py
and is explained here
http://code.djangoproject.com/ticket/625
Don
--~--~-~--~-
On May 18, 2006, at 3:22 PM, Jeremy Dunck wrote:
> Also, I tried to repro this issue, but I can't find a 2.3 Django egg
> for download (as in the initial Django-0.91-py2.3.egg ).
>
Mac OS X python installs have some sort of weird thing going on.
I originally downloaded 0.91 and ran setup.py (or
250.240])
by smtp3.pacifier.net (Postfix) with ESMTP id 37432827EB
for ; Sun, 21 May 2006 10:56:26 -0700
(PDT)
Mime-Version: 1.0
Content-Type: text/plain
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
Message-Id: <[EMAIL PROTECTE
On May 30, 2006, at 10:35 AM, Mark Striebeck wrote:
> what has been discussed for two months? that model inheritance will
> not
> longer be supported? or that there is a alternate way to support the
> concept?
What was discussed is that model inheritance is not yet ready for
prime time. Som
On Jun 4, 2006, at 8:15 PM, David Robinson wrote:Really, I've tried looking this one up myself (you wouldn't believe how many questions I *haven't* had to ask... (thanks for well-written docs everyone)). It seems almost obvious, but I am proving to be just dense enough to not get what is this "kwar
On Jun 6, 2006, at 10:25 AM, Ian Maurer wrote:
>
> IBM has just posted an article on mine on the IBM website (hasn't made
> it to the front page, yet):
>
> http://www-128.ibm.com/developerworks/linux/library/l-django/
Good job.
>
> If you notice any errors, kindly send them to me via email and
On Jun 6, 2006, at 9:53 AM, Umbrae wrote:
>
> If Django follows symbolic links on upload (and you're running linux),
> you could use a symbolic link in the directory that would point to
> wherever you'd like to store the files. Just make sure your apache
> configuration is set to not follow symb
On Jun 6, 2006, at 6:42 PM, Todd O'Bryan wrote:Does anybody have a best practice (or not-too-annoying practice) for testing?I think I'll use Selenium to test my site, but how should I change to a test database, populate the test database, etc.?If you want to test your model relationships, I find
I'm sure it just slipped his mind but Jeff Croft has a new website up
that allows LOST fans to comment on theories about episodes. I'm not
really a LOST fan, but the site is cool, and written in Django. The
even cooler part is you can download the source code.
According to his blog, it took
1 - 100 of 174 matches
Mail list logo