On 3/05/2012 2:30pm, orschiro wrote:
Anybody?
On May 2, 11:07 am, orschiro wrote:
I want to represent a price in my model in the form of 0,00. This is
the part of my model.
price = models.DecimalField(max_digits=5, decimal_places=2,
default=Decimal('0.00'))
However,
Anybody?
On May 2, 11:07 am, orschiro wrote:
> I want to represent a price in my model in the form of 0,00. This is
> the part of my model.
>
> price = models.DecimalField(max_digits=5, decimal_places=2,
> default=Decimal('0.00'))
>
> However, prices such as 2.10 are
Ok thanks your reply.
So what should i do now ?.
I'm using bluehost.com.
On Wed, May 2, 2012 at 10:09 PM, Marcin Tustin wrote:
> This is not a django question. It relates to your deployment setup. Ask at
> the forums for your host. In addition, this does not contain
There is a difference between 'localhost' and the empty string. 'localhost'
translates into 127.0.0.1 and is sent using the internet. The empty string
means to use local sockets for communication. At least with PostgreSQL. (It
might be different with MySQL.)
In short, this is not a bug.
I found the solution.
hop_headers are renamed to hoppish in Django 1.4
And the location of codes are not in the django directory.
It is in the /XXX/python2.6/wsgiref/util.py
And I deleted the related keys from the dictionary.
_hoppish = {
'proxy-authenticate':1, 'proxy-authorization':1,
Expanding on Jonathan's suggestion, you could create a simple middleware
function to redirect a user to the EULA page if they haven't accepted it
yet. And you don't need to put the restriction into every view: it's
automatic.
Have you looked into something like Backbone.js (
http://documentcloud.github.com/backbone/) or Spine (http://spinejs.com/)?
I know this may not exactly be what you're after, but it does allow you to
define models and manipulate them asynchronously (with data being pushed to
the server via AJAX).
On Fri, Apr 27, 2012 at 11:02 AM, Tom Evans wrote:
> On Thu, Apr 26, 2012 at 4:20 PM, Sherif Shehab Aldin
> wrote:
> > Hi All,
> >
> > I am developing some django apps, mostly they are adds to the django
> admin
> > interface... What I need to do
That's what I have. The problem is that you then have to restrict
access on every page of your site to those who've accepted the EULA.
What I would rather do is create a profile and only allow access to
the EULA acceptance page once the person is registered and until they
accept the EULA. I'm just
I'm sure I'm missing something obvious here...
I want to produce a form which is a list of objects in my model, with
a checkbox to select some of the objects, so that the posted data is
the list of selected objects. Just like you get on the listviews in
the admin interface, in fact.
It seems
You could store the Eula as a boolean field on a user profile model and manage
it that way.
Sent from my iPhone
On May 2, 2012, at 3:34 PM, BGMaster wrote:
> Hi,
>
> I'm trying to implement acceptance of a EULA into my site registration
> form. The EULA acceptance is on
Hi,
I'm trying to implement acceptance of a EULA into my site registration
form. The EULA acceptance is on a separate page from the rest of the
registration form. I'm trying to figure out a way to prevent the user
from accessing the rest of the site without accepting the EULA. Every
path I go
Assuming I understand you correctly, this is an HTML limitation.
Browsers do not support multiple-file upload prior to HTML5. And even
then, AFIK only webkit-based browsers will give you a way to select
directories instead of individual files.
_Nik
On 5/2/2012 11:53 AM, fanchyna wrote:
> I have
Hi everybody,
I've got a problem while accessing a model in the Django Adminpanel.
I uploaded the models file, i hope this makes it easier for you to
understand my problem.
When I try to add or view a *Region *in the adminpanel, the server usually
gives me an 500 server error.
This is what i
I have a question on django which has been bothering me for a while. I
tried to search it from the web but could not get an answer.
What I want to do is to select a "directory" (only the path, not
including file) from the local file system.
When I was designing my models.py (actually, I use
With ya. Let me get done with my exams, and hopefully I'll be able to
contribute(and use, obviously) :)
PS: Why the name Broke?? :O
On Wed, May 2, 2012 at 9:45 PM, DvD wrote:
> Actually, I already put together some code that works on node.js inspired
> by Django, have a
I have been around a long time but I keep on learning new things
On Wed, May 2, 2012 at 11:09 AM, M Hussain wrote:
> Hello
>
> me too a newbie ;) but Gerald you seems like a veteran from your site.
> I hope we are't spamming.
>
> Regards
> Hussain
>
>
>
> On Wed, May 2, 2012
See that's what I thought but I was corrected by mr Tustin
On Wed, May 2, 2012 at 11:31 AM, Joel Goldstick wrote:
> On Wed, May 2, 2012 at 12:24 PM, Gerald Klein wrote:
> > ? I am not sure what that means.
> >
> >
> > On Wed, May 2, 2012 at 11:19 AM,
ok thanks I will give that a look.
On Wed, May 2, 2012 at 11:35 AM, Joel Goldstick wrote:
> On Wed, May 2, 2012 at 11:50 AM, Gerald Klein wrote:
> > Hi, I have been through a couple of tutorials including the one on the
> site,
> > the one thing that
Hence the question I always seen that as short for new-be
On Wed, May 2, 2012 at 11:29 AM, Marcin Tustin wrote:
> Try translating it with: http://translate.google.com/ (It works!)
>
> On Wed, May 2, 2012 at 5:24 PM, Gerald Klein wrote:
>
>> ? I am not
On Wed, May 2, 2012 at 11:50 AM, Gerald Klein wrote:
> Hi, I have been through a couple of tutorials including the one on the site,
> the one thing that the authors have in common is they seem to want to jump
> to the 'short cuts' to soon. I like to know the basic long hand
Thanks! I guess that I will see the light once I get to part 3 of the
tutorial. Thanks for the pointer now I understand the big picture.
On Monday, April 30, 2012 10:03:25 PM UTC+2, Dan Santos wrote:
>
> Hi I'm a total programming newbie!
>
> ### INTRO ###
> I have been following this
On Wed, May 2, 2012 at 12:24 PM, Gerald Klein wrote:
> ? I am not sure what that means.
>
>
> On Wed, May 2, 2012 at 11:19 AM, Amao Zhao wrote:
>>
>> Noob ~~
>>
>> 在 2012年5月3日星期四,Gerald Klein 写道:
>>>
>>> Welcome from one noob to another
>>>
>>> On Wed, May 2,
? I am not sure what that means.
On Wed, May 2, 2012 at 11:19 AM, Amao Zhao wrote:
> Noob ~~
>
> 在 2012年5月3日星期四,Gerald Klein 写道:
>
>> Welcome from one noob to another
>>
>> On Wed, May 2, 2012 at 10:24 AM, zbpython-cn wrote:
>>
>>> Hello, everyone.I come
On Thu, May 3, 2012 at 12:52 AM, HarpB wrote:
> I am a big fan of TastyPie. But I don't understand your following
> requirement:
>
> Get/set (conversion) between different schemas
>
> I.e.: No matter the input API, you can get it formatted in whichever output
> API you request
Actually, I already put together some code that works on node.js inspired
by Django, have a look https://github.com/brokenseal/broke
My original intention was to create a framework that would work seamlessly
on the server and on the client side but it was just too much for me that I
left that
Welcome from one noob to another
On Wed, May 2, 2012 at 10:24 AM, zbpython-cn wrote:
> Hello, everyone.I come from China.I like python, so I taught myself
> python is now in self-study the django.
> After the exhibitions, and welcome to play.
>
> --
> You received this message
Hello, everyone.I come from China.I like python, so I taught myself
python is now in self-study the django.
After the exhibitions, and welcome to play.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
As per 'https://docs.djangoproject.com/en/1.3/releases/1.2.4/
#restricted-filters-in-admin-interface' to be able to create GET
parameters on the fly one has to add it to the
`ModelAdmin.list_filter` setting.
That's what I have been doing however on my latest project I am using
a custom admin
Hi, I have been through a couple of tutorials including the one on the
site, the one thing that the authors have in common is they seem to want to
jump to the 'short cuts' to soon. I like to know the basic long hand
version first because I want to understand.
What I am having a problem with is
On Wednesday, May 2, 2012 2:52:09 AM UTC-7, Gabriel - Iulian Dumbrava wrote:
>
> Unfortunately to make it more useful to deploy django, some hosting
> providers should stop providing CentOS with Python 2.4. I just got another
> server with this flavour and I had to install my own version of
I am a big fan of TastyPie. But I don't understand your following
requirement:
- *Get/set (conversion) between different schemas*
- I.e.: No matter the input API, you can get it formatted in
whichever output API you request
Are you simply trying to create a unified interface
Hi~~
I'm using Django 1.4. to implement RESTful service. And for a
compatibility test with S3 Amazon API, I'm using a s3browser.( which
is famous among amazon storage users)
But, I have a problem when I try to do the following.
response = HttpResponse()
response['transfer-encoding'] = 'chunked'
I am a Django user, but I don't see anything wrong in a JS framework
inspired by Django. Afterall, only great things can inspire. But I fail to
understand why JavaScript has to be only client side - It is a perfectly
valid choice as a server side language for not all, but certainly some use
cases.
This is not a django question. It relates to your deployment setup. Ask at
the forums for your host. In addition, this does not contain anything like
the detail that anyone anywhere would need to answer.
On Wed, May 2, 2012 at 3:06 PM, MN TS wrote:
> Hello Comrades ,
>
> I'm
Hello Comrades ,
I'm starting with Django and I have a bluehost,
My problem is that : i missed css , js (media)
I create symbol link but its not working.
ln -s /home5/user/public_html/MyProject/src/app/static/ static
Do you know why is happen
this to me?
Regards
Tsolmon.
--
You received
On 05/02/2012 08:59 AM, alon wrote:
running
$python manager.py shell
opens a python shell
is there any way (a parameter) to make the manager run a python file
with my commands??
thanks
If you have iPython installed then running manage.py shell will run in
iPython.
Then, you can use
Are you looking for custom management commands?
https://docs.djangoproject.com/en/dev/howto/custom-management-commands/
On May 2, 8:59 am, alon wrote:
> running
>
> $python manager.py shell
>
> opens a python shell
> is there any way (a parameter) to make the manager run
On Wed, May 2, 2012 at 4:13 AM, kenneth gonsalves
wrote:
> hi,
>
> I want two languages in my project - en and ta. I have set this up in
> many projects over the years and this is the first time I am seeing
> failure. The problem is that on switching to tamil, the django
1. Can you please tell us what the context is or why you want to do that?
2. I suppose you might want to check the source of manage.py and change the
way arguments to this file are handled.
On Wed, May 2, 2012 at 6:29 PM, alon wrote:
> running
>
> $python manager.py
running
$python manager.py shell
opens a python shell
is there any way (a parameter) to make the manager run a python file
with my commands??
thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Hi all,
I'm developing a site where the object Project is referenced by zero or
more objects Image, say basically
CODE
class Projects(models.Model):
pass
class Image(models.Model):
project = models.ForeignKey(Project)
This happens when trying to upload a file with a filename that is not in
ascii. In this case I tried éè´´çoöp_iI$.jpg. The strange thing is that
firefox uploads it but chrome gets the error!
I know this has been discussed already but the solutions mentioned did not
work: I tried to change
actually it looks like it's a missing CSS that was the culprit:
.empty-form { display-none }
this is gone from my online version and I dunno why...
anyway, fixed it now =)
j
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this
The Fix:
http://patrick.arminio.info/blog/2012/02/fix-valueerror-unknown-locale-utf8/
On Tue, May 1, 2012 at 3:08 PM, Timothy Makobu
wrote:
> Update:
>
> When I downgraded to 1.3, everything worked ok. So I'll be using 1.3 for a
> while now to avoid surprises.
>
>
If I'd go with it, I'd probably go with writing my own simple interface or
using https://bitbucket.org/jespern/django-piston/wiki/Home
I'm not so big fan of TastyPie at all
On Wednesday, May 2, 2012 11:16:46 AM UTC+2, Alec Taylor wrote:
>
> I have multiple different APIs with different schemas
hello everybody,
i get a exception when i use an model which create form
database(http://djangodays.com/2008/07/07/tip-create-modelspy-from-existing-database/)
exception:
IndexError at /users
list index out of range
code:
kwargs = {"app_label": model_module.__name__.split('.')[-2]}
someone
Hello,
I have the following situation:
I am rendering an array of ModelForms to my template. ie. formArray =
[, , ]
In the template I display the forms with the following:
{% for form in formArray %}
{{ form }}
{% endfor %}
Previously I have accessed certain ModelForms using {% if
hello,
just upgrade to 1.4 and I have a weird problem in the admin (therefore the
weird post title...):
I use TabularInline Image fields in my admin.
the problem is when I click on "Add an object Image", the new field get
inserted *before* the latest one and therefore its id is wrong and the
On 2012-05-02, at 12:46 , Nikhil Verma wrote:
> Hi All
>
> In models.py my table structure is :-
>
> class ABC(models.Model):
>name = models.CharField(max_length=80,blank=True,null=True)
>date_created = models.DateTimeField(blank=True,null=True)
>
>def __unicode__(self):
>
Use in __unicode__ method strftime
def __unicode__(self):
return "%s %s" % (self.name, self.date_created.strftime("%A %d %B")
Look at strftime:
http://docs.python.org/library/datetime.html?highlight=strftime#datetime.date.strftime
2012/5/2 Nikhil Verma :
Hi All
In models.py my table structure is :-
class ABC(models.Model):
name = models.CharField(max_length=80,blank=True,null=True)
date_created = models.DateTimeField(blank=True,null=True)
def __unicode__(self):
return "%s %s" % (self.name, self.date_created)
Let say my
Unfortunately to make it more useful to deploy django, some hosting
providers should stop providing CentOS with Python 2.4. I just got another
server with this flavour and I had to install my own version of Python.
Come on, it's 2012!!!
Gabriel
luni, 30 aprilie 2012, 21:24:36 UTC+3, shacker
Why do you want to port django to javascript, there are great js libs
and frameworks. It will be better to make a js bundle for django
making in ajax ready.
Js Tools working out of the box. Such as:
+ ajax upload
+ ajax registration with error handeling
+ ajax pages
+ binding django and a js
I have multiple different APIs with different schemas serialised in XML or
JSON which I need to output as a standardised schema.
Main features needed:
- *Serialisation to XML and JSON*
- *Authentication*
- I.e.: can't get/set data unless you have the correct user+pass
-
Yes, exactly the same here. Even creating the table in setUp doesn't help.
Regards
Simon
> Did anybody experience something similar?
>
> Cheers,
> Flo
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
I want to represent a price in my model in the form of 0,00. This is
the part of my model.
price = models.DecimalField(max_digits=5, decimal_places=2,
default=Decimal('0.00'))
However, prices such as 2.10 are still represented as 2.1.
The second issue would be to replace the . with a ,. However
Maybe I missed an earlier post but I am always looking for new projects
please explain your requirements.
--jerry
On Wed, May 2, 2012 at 2:15 AM, DvD wrote:
> Hey,
> is no one is really interested in helping in this project?
>
> --
> You received this message because
Hi all,
I'm working on an app that will store gps coordinates from devices. That
information will come in every 5 or so minutes of each hour. So it's alot
of data. Any recommendations on how I should store this? Do I use multiple
databases and use say MongoDB or Couch for the storage of the
Hey,
is no one is really interested in helping in this project?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/kQ_GesNzV7wJ.
To post to this group, send
hi,
I want two languages in my project - en and ta. I have set this up in
many projects over the years and this is the first time I am seeing
failure. The problem is that on switching to tamil, the django strings
are getting translated, but not the local strings. Django is obviously
not finding
61 matches
Mail list logo