This is the error i get now
InvalidURL at /index
nonnumeric port:
On Mon, May 24, 2010 at 10:51 AM, ravi krishna wrote:
> sorry the VIEW.py is:
>
>
>
> conn=httplib.HTTPConnection("www.python.org")
> conn.request("GET", "/index.html")
>
> r1 = conn.getresponse()
> print r1.status, r1.reason
sorry the VIEW.py is:
conn=httplib.HTTPConnection("www.python.org")
conn.request("GET", "/index.html")
r1 = conn.getresponse()
print r1.status, r1.reason
data1 = r1.read()
conn.close()
On Mon, May 24, 2010 at 10:30 AM, ravi krishna wrote:
> Hi,
> I want to retrieve data from wikimapia api. Fo
Hi,
I want to retrieve data from wikimapia api. For this i am using httplib
function of python.
this is my VIEW.py file( just the httplic() )
conn=httplib.HTTPConnection("www.python.org")
r1 = conn.getresponse()
print r1.status, r1.reason
data1 = r1.read()
conn.close()
Initially i gave the wikima
Hi!
I must develop a django app that receives XML and returns XML.
What's the best way to do this? Create a view that receive the XML and parse
it to return a template with the XML resultant?
I'm newbie in django and need your tips :)
Regards,
Álex González
--
Please, don't send me files with
Just wondering if anyone has found a "recipe" anywhere that advices a
good way to add an intermediate (after they enter new Registration
info) ..."New User, you Have to Agree to these risks, etc.."
pages, where they have to click on "Agree" before it takes them to the
opening page of their new
I have been reading up on Unicode with Python and Django and I think I
have my code set to use UTF8 data when saving or updating an object
but I get an error on model.save()
My database and all of its tables are UTF8 encoded with UTF8 collation
(DEFAULT CHARSET=utf8;)
The data I am inputting is un
I have 2 tables/models, which for all practical purposes are the same
as the standard Author/Book example, but with the additional
restriction that in my application each Author can only write 0 or 1
books. (eg, the ForeignKey field in the Book model is or can be a
OneToOneField, and there may be a
Chris Withers wrote:
queryset = TicketStatus.objects.filter(active=True)
if user_id:
queryset = queryset.filter(owner=User.objects.get(id=user_id))
queryset = queryset.filter(ticket__event=event)
return list_detail.object_list(
request,
queryset =
queryset
Hi Daniel,
I think this will solve this problem
if i have a boolean field in my model and if I would like to display
only if that fileld id true to the non-super users and otherwise
always show the boolean field.
But my question was
how to disable the select all widget from the admin panel if t
My bad. Turns out it was a problem with multiple versions of python
installed. Fixed it.
On May 23, 7:43 pm, Tor Nordam wrote:
> Hello,
>
> I run into a problem when installing django 1.2 on my Mac. I follow
> the recipe on the web page, i.e. I download django-1.2.tar.gz, unpack
> it, and install
Okay, so I noticed that it's the following code, and it's only when I
filter on user *end* event:
Chris Withers wrote:
queryset = TicketStatus.objects.filter(active=True)
if user_id:
queryset = queryset.filter(owner=User.objects.get(id=user_id))
queryset = queryset.filter(ti
Hello There,
I'm using the custom field StdImageField which automatically create a
thumbnail and resize the image
(http://code.google.com/p/django-stdimage/).
It works pretty fine in a "standard" model context. But when I use it in
a model which inherit an other one, the field behave just like
m
Sorry My opera mail downIt makes sth wrong to send out 3 mails I'm too
late to stop it
Thanks for helping me
在 Mon, 24 May 2010 02:08:34 +0800,Daniel Roseman
写道:
On May 23, 6:39 pm, 伟泓 徐 wrote:
class People(models.Model):
GenderChoice=(
(u'M', u'Male'),
(u'F', u'F
2010/5/23 Daemoneye :
[...]
> why I cannot use such sentense:
> s=People.objects.filter(Position='A')
> s.comment_set.all()
>
> The django says that the queryset does not have the attribution
> comment_set.Why?
_set is an attribute of model instances.
s=People.objects.filter(Position='A')
p1 = s[0
On May 23, 6:39 pm, 伟泓 徐 wrote:
> class People(models.Model):
> GenderChoice=(
> (u'M', u'Male'),
> (u'F', u'Female'),
> )
> PositionChoice=(
> (u'S',u'Student'),
> (u'A',u'Admin'),
> )
> Schoolnum=models.IntegerField(primary_key=True)
> Gend
class People(models.Model):
GenderChoice=(
(u'M', u'Male'),
(u'F', u'Female'),
)
PositionChoice=(
(u'S',u'Student'),
(u'A',u'Admin'),
)
Schoolnum=models.IntegerField(primary_key=True)
Gender=models.CharField(max_length=100,choices=GenderChoi
class People(models.Model):
GenderChoice=(
(u'M', u'Male'),
(u'F', u'Female'),
)
PositionChoice=(
(u'S',u'Student'),
(u'A',u'Admin'),
)
Schoolnum=models.IntegerField(primary_key=True)
Gender=models.CharField(max_length=100,choices=GenderCh
Hello,
I run into a problem when installing django 1.2 on my Mac. I follow
the recipe on the web page, i.e. I download django-1.2.tar.gz, unpack
it, and install by running sudo python setup.py install.
After installing, django seems to work fine, but if I delete the
directory I installed it from,
class People(models.Model):
GenderChoice=(
(u'M', u'Male'),
(u'F', u'Female'),
)
PositionChoice=(
(u'S',u'Student'),
(u'A',u'Admin'),
)
Schoolnum=models.IntegerField(primary_key=True)
Gender=models.CharField(max_length=100,choices=GenderChoic
Hello Danfi!
There is a syntax mistake. I changed the &pag={{num_pag}} by ?
pag={{num_pag}} and the problem was solved.
One thing to point out is that there is a method with the HttpRequest
objects called get_full_path() that returns the URL with the params. I
used it inside a session to track the
Hi All,
I have the following models:
class Event(models.Model):
name = models.CharField(max_length=100)
price = models.DecimalField(max_digits=4,decimal_places=2)
class Ticket(models.Model):
number = models.IntegerField(db_index=True)
event = models.ForeignKey(Event)
class Tick
Hi folks --
I'm putting together a simple API to allow a separately-hosted but
trusted site to perform a very limited set of actions on my site. I'm
wondering whether the design I've come up with is reasonably secure:
- Other site gets an API key, which is actually in two parts, public
key and p
Supercaptcha removes it's hash and text code from cache to prevent
using same hash and code many times. If you really need to use it with
formwizard - you'll have to invent mechanism which will prevent
supercaptcha from cleaning cache and clean it manually after all forms
are validated. I'm not usi
On May 23, 7:47 am, irum wrote:
> Hi,
>
> Thanks:)
> However, sorry I am a newbie with this stuff. I have gotten some hands
> on Django during this project and have taken some understanding of
> cron by googling but I am still sort of lost with it.
>
> The problem is that if I fire manage.py scrip
def unique_file_gallerythumb(instance, file_name):
# split the file_name into dir and filename
# then split the filename into name and ext
dirname, filename = os.path.split(file_name)
prefix, suffix = os.path.splitext(filename)
smallfilename, extension = os.path.splitext(prefix)
Visual paradigm is nice, and free for personal use.
On May 23, 11:05 am, Jon wrote:
> Hello,
>
> Trying to include some graph tool for managing and sharing data models
> visually.
>
> Testes mysql workbench, dia, graphivz and recently read some about
> argoUML..
>
> ¿Do you know and recommend any
Try reinstall django .
Set first name of database
Use python manage.py syncdb to set user and more .
See corect steps here :
http://www.webmonkey.com/2010/02/install_django_and_build_your_first_app/
On Apr 6, 7:29 am, yangyang wrote:
> I followed the tutorial and set up the database engine as S
Hello,
Can you run multiple apps in one view, and what would be the best way
to do that.
Let's say I have two apps and I want to display some items from app1
and some from app2 in the same view. I understand that it would be a
good idea to create a third app, but I don't want to violate the dry
p
Hello,
Trying to include some graph tool for managing and sharing data models
visually.
Testes mysql workbench, dia, graphivz and recently read some about
argoUML..
¿Do you know and recommend any visual tool for model design? Better if
database independent
thanks in advance !!
--
You received
29 matches
Mail list logo