> Hah! Incredibly simple! I love Django!
I had a few moments like that in the past few days :-)
Regards,
Wayne
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
I am setting up a Django based web application for a client. I have a
test setup on my network at home. I am using Django 1.0.2, Apache
2.2.11, PostgreSQL 8.3.7.1, Python 2.6.2, mod_wsgi, psycopg. The app
is very simple. Users can log on, file in a few fields and get a code
number for activating s
Any solution may be dependent on how Django was being hosted. Neither
of you have actually said how you were hosting Django. Even if OP
worked it out, his solution may not be relevant to use due to you
hosting it differently.
Graham
On Jun 21, 1:50 pm, hiphoox wrote:
> Hi,
>
> I have exactly th
Hi,
I have exactly the same problem. Did you get any way to resolve it?
Regards,
Norberto Ortigoza
On Jun 12, 9:54 am, Francis wrote:
> Hi folks,
>
> I have set to instance of my server, one serving in http with admin
> disable and another one accessible throu https with admin enable.
>
> But
Thanks Antoni, for the link to your code. I'll check it out.
On Jun 20, 9:33 am, Antoni Aloy wrote:
> Look at:
>
> http://code.google.com/p/appfusedjango/
>
> You'll find some examples of uploading images both as an application
> and batch mode.
>
> 2009/6/20 django_jedi :
>
>
>
>
>
> > Hi Folk
Thanks for your responses. I think I did run setup.py install, but i
can't remember -- there were a few rounds of this. I will use this as
a guide to see what I did incorrectly.
Appreciate it,
On Jun 20, 10:31 pm, TiNo wrote:
> On Sat, Jun 20, 2009 at 02:18, 78fxs wrote:
>
> > All righty...n
On Sat, Jun 20, 2009 at 02:18, 78fxs wrote:
>
> All righty...not only am i new to django and python, i am new to using
> the terminal on my mac. so this is going to be mickey mouse stuff.
>
> i have a few things going on:
>
> 1. i think some of my confusion is knowing where these django and
> pyt
Hah! Incredibly simple! I love Django!
Thank you very much, Wayne!
On 21/06/2009, Wayne Koorts wrote:
>
>> I have a function that looks like this:
>>
>> def getBook(request, bookID):
>> book = Books.objects.get(id=bookID)
>> return render_to_response('book.html', {'book': book})
>>
>> Doe
All,
I noticed that putting single quote around include argument makes a
different, for example:
(r'^admin/', include(admin.site.urls)),
(r'^polls/', include('play_django.polls.urls')),
works. Where as:
(r'^admin/', include(admin.site.urls)),
(r'^polls/', include(play_django.polls.urls)),
yi
> I have a function that looks like this:
>
> def getBook(request, bookID):
> book = Books.objects.get(id=bookID)
> return render_to_response('book.html', {'book': book})
>
> DoesNotExist at /books/8
> Books matching query does not exist.
>
> How do I make it redirect to a 404 instead?
Ther
Does not matter where you install them
Did you run python setup.py install from inside django dir?
Sent from my iPhone
On 19-Jun-09, at 5:18 PM, 78fxs wrote:
>
> All righty...not only am i new to django and python, i am new to using
> the terminal on my mac. so this is going to be mickey mouse
I have a function that looks like this:
def getBook(request, bookID):
book = Books.objects.get(id=bookID)
return render_to_response('book.html', {'book': book})
bookID is a \d. In a url like this www.example.com/books/8 bookID will
be 8. And the the page response will be the 8th book in
>
> But a generic permissions system ought to be a solved problem* by now.*
> A search function ought (and apparently is) a solved problem *by now.
> *
>
If you repeat that enough times there would probably be a value of 'now'
that makes those statement true.
You just gotta be patient or/and help
For each Brother object, I'm trying to set the FilePathField attribute
pic.
from django.db.models import FilePathField
from brothers.models import Brother
p = '/media/images/BrotherImages/'
for bro in Brother.objects.all():
m = '%s/%s%s.jpg' % (bro.year, bro.first_name, bro.last_name)
bro
On Fri, Jun 19, 2009 at 5:15 PM, Joshua Russo wrote:
>
> When I installed Libiconv (1.9.2) and gettext (0.13) on my XP Pro
> machine and tried to run makemessages it initially gave me an error
> message saying that it could not find iconv.dll. I went to the install
> directory and I had a libicon
Greetings :)
Let's consider the following two models: -
class State(models.Model):
short_name = models.CharField(max_length=2, unique=True)
name = models.CharField(max_length=50, unique=True)
is_active = models.BooleanField(db_index=True)
def __unicode__(self):
return u'%
In case you're not already aware I thought I'd mention that there is a
tutorial for pyjamas on 29th June at Europython in birmingham. as
you're django users, you will have a much easier time getting set up
than other attendees. Pyjamas is a port of GWT to python: it is for
the development of pur
Look at:
http://code.google.com/p/appfusedjango/
You'll find some examples of uploading images both as an application
and batch mode.
2009/6/20 django_jedi :
>
> Hi Folks,
>
> I'm having a devil of a time trying to get image uploading to work.
> What I'd like to do is simply upload and image.
>
Hi Folks,
I'm having a devil of a time trying to get image uploading to work.
What I'd like to do is simply upload and image.
This works with:
my_object = ImageTest.objects.create()
...but if not with:
my_object = ImageTest.objects.get_or_create(user_id=7,
image=imagepath)
Any ideas?
Alter
Hi,
Suppose I had templatetags
{% tag_model tags.tag as tags with group=group.id %)
in my templatetags I define tag_model as a follow
def tag_model(parser, token):
bits = token.contents.split()
len_bits = len(bits)
name, value = bits[i].split('=')
w
I study Django 1.0.2 on Djangobook
Has read not all, but why that I can not find in this book the
information anywhere how to be with Image? In the book the example
with three models - Authors, Publisher and Books is resulted. And if I
want still the Image to books and that they were output in t
hi,
given a model like so:
Person:
name = charfield
hobbies = manytomany to the Hobby model
and a hobby model:
Hobby
name = charfield
to create a person instance from the command line I do:
newperson = Person.objects.create(name='myname')
and then to add 2 hobbies
hobbies = []
hobbies.append
22 matches
Mail list logo