Thanks Daniel,
Does that mean I have to copy python, Django, and Postgres to my PC to
create the development environment?
much appreciated,
Alex Glaros
On Mar 16, 10:32 pm, Daniel Roseman wrote:
> On Friday, 16 March 2012 22:23:43 UTC-7, Alex Glaros wrote:
>
> > Newbie trying to run Django for
On Friday, 16 March 2012 22:23:43 UTC-7, Alex Glaros wrote:
>
> Newbie trying to run Django for the first time.
>
> I'm using a hosted Linux server; I run python manage.py runserver, and
> get:
>
> Validating models...
>
> 0 errors found
> Django version 1.3.1, using settings 'alexSite.setting
Newbie trying to run Django for the first time.
I'm using a hosted Linux server; I run python manage.py runserver, and
get:
Validating models...
0 errors found
Django version 1.3.1, using settings 'alexSite.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CO
Not a PATH issue, but a PYTHONPATH issue.
Run "python manage.py shell" and try to import 'messages.'
I suspect it's not where you think it is, or its location is not on your
PYTHONPATH.
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To pos
Ya, it is probably a path issue. It is set as this by the way -->
['',
'/usr/lib64/python2.4/site-packages/MySQL_python-1.2.3c1-py2.4-linux-x86_64.egg',
'/usr/lib64/python24.zip', '/usr/lib64/python2.4',
'/usr/lib64/python2.4/plat-linux2', '/usr/lib64/python2.4/lib-tk',
'/usr/lib64/python2.4/lib-d
Also can I assume, regarding the above question above, that "messages" is
the last thing Django is processing since it is at the
bottom of the list in installed apps? I.e. If I fix the messages error it
might work?
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
Check your PYTHONPATH. Perhaps it's not set right on the CentOS machine.
The Linux distro shouldn't make a difference, nor should the presence of
Cpanel or MySQL.
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send ema
Hey Gang, I have a Django project built on a Debian server at home using http://djangobb.org";>DjangoBB.
It is working on the Debain OS but I am having huge problems on the Centos
server. This seams to be the farthest I can go with it. -->
#-->python manage.py syncdb
Error: No module named messages
On 17/03/2012 11:02am, Ben wrote:
I have a NullBooleanField that I would like to show up in my admin
interface as radio buttons with unknown selected by default.
# I have the following simplified files
## models.py ##
class Value(models.Model):
presence = models.NullBooleanField(default=Fa
I have a NullBooleanField that I would like to show up in my admin
interface as radio buttons with unknown selected by default.
# I have the following simplified files
## models.py ##
class Value(models.Model):
presence = models.NullBooleanField(default=False)
## admin.py ##
PRESENCE_CHOICES
Trying to get django pages to recognize a css filehaving trouble
getting all of the correct settings right in the settings.py, urls.py
etc...plus there appears to be several different ways to do this.
I'm on a Mac OSX and I've tried this:
settings.py:
MEDIA_ROOT = 'full-path-to-site-on-machin
On Friday, March 16, 2012 2:50:25 PM UTC-4, Tom Evans wrote:
>
> 1) You have overridden the delete() method, and you don't call the
>
> super class method
>
Indeed, I had overridden it to create a delete column and forgot about it!
Thanks. Rainy
>
--
You received this message because you a
On Fri, Mar 16, 2012 at 6:33 PM, Rainy wrote:
> Hi, I have a function that accepts a pk and deletes an object:
>
> Item.objects.filter(pk=pk).delete()
>
> If I change it to:
>
> Item.objects.get(pk=pk).delete()
>
> it no longer works, without any errors. I tried it using exactly the
> same object.
Hi, I have a function that accepts a pk and deletes an object:
Item.objects.filter(pk=pk).delete()
If I change it to:
Item.objects.get(pk=pk).delete()
it no longer works, without any errors. I tried it using exactly the
same object. I looked at django docs for deletion, the only difference
they
Sorry, class Book should be:
class Book(models.Model):
author = models.ForeignKey(Author)
publisher = models.ForeignKey(Publisher)
price = models.DecimalField()
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion
Given that the following models:
class Author(models.Model):
name = models.CharField()
class Book(models.Model):
author = models.ForeignKey(Author)
price = models.DecimalField()
class Publisher(models.Model):
name = models.CharField()
In normal query:
Author.objects.filter(book_
On Fri, Mar 16, 2012 at 12:06 PM, jc wrote:
> We have a number of z/linux (z/vm s390) Linux servers and would like
> to consider porting this application to one of the instances. Will it
> run on z?
For Django to run on a platform, you need the following things:
1. The ability to install and ru
Yup.. Should be no problem at all.
On 16 March 2012 17:22, Dan Poirier wrote:
> On Fri. 2012-03-16 at 01:06 PM EDT, jc wrote:
>
> > We have a number of z/linux (z/vm s390) Linux servers and would like
> > to consider porting this application to one of the instances. Will it
> > run on z?
>
> I
On Fri. 2012-03-16 at 01:06 PM EDT, jc wrote:
> We have a number of z/linux (z/vm s390) Linux servers and would like
> to consider porting this application to one of the instances. Will it
> run on z?
It's Linux, so sure. (Now z/OS would be another story...)
--
You received this message beca
We have a number of z/linux (z/vm s390) Linux servers and would like
to consider porting this application to one of the instances. Will it
run on z?
Thanks,
JC
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
Hello coded kid,
On Friday, March 16, 2012 2:30:06 AM UTC-7, coded kid wrote:
Hi guys, does anyone know about a good django package for twitter
> authorization? I tried using omab/django social auth, but the twitter
> authorization is not working for me.
Are you interested in oAuth capabiliti
Well the first suspicious thing was that you were testing to see if it
was equal to the string "0". That tells me you don't understand how
equality works in python. Python is strongly typed. Strings and
integers are not the same thing, and will never be equal to one another.
Without more informa
If I set it to "Enabled" and then check if it is indeed {% if
EnableLogUpload == "Enabled" %} it does not enter the if statement.
>
>
What am I doing wrong??
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web vi
On Fri, Mar 16, 2012 at 9:25 AM, HarryBoy wrote:
>> Sorry the '==' was a typo, its actually:
>>
>> EnableLogUpload = "Enabled"
>
> --
> 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.goog
Anyone?
>
>
--
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/-/dOBYPgDjwHcJ.
To post to this group, send email to django-users@googlegroups.com.
To uns
Thanks for the reply, Marc.
On Thursday, March 15, 2012 4:32:48 PM UTC-4, Jeff Blaine wrote:
>
> Easier for me to just draw you a picture:
>
>++
>| noodle |
>++
> | |
>
I am creating a website which will allow people to post content with "fluff"!
That is; users will apply choose from a selection of templates to
apply to their content[1] before displaying it on my website.
[1] Content contains no hyperlinks; just images and general
manipulation text manipulation
>
> Sorry the '==' was a typo, its actually:
> EnableLogUpload = "Enabled"
>
>
--
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/-/Tu0wfrtAPJUJ.
To post to thi
On Fri, Mar 16, 2012 at 1:01 PM, HarryBoy wrote:
>> Hi, thanks for the reply.
>
>
> I printed the value and its actually 0 every time.
>
> Why is it 0 when I set it to EnableLogUpload == "Enabled"??
>
> Thanks
>
'==' tests equality
'=' assigns a rvalue
Cheers
Tom
--
You received this message
>
> Hi, thanks for the reply.
I printed the value and its actually 0 every time.
Why is it 0 when I set it to EnableLogUpload == "Enabled"??
Thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
ht
Hello,
I was wondering whether there are any links that teaches you how to integrate
django-subscription into your app in detail?
To give a general view of what i would be doing, i want to integrate the
django-subscription so i can give recurring billing to my customers.
So far what i have fo
On Fri, Mar 16, 2012 at 6:00 AM, HarryBoy wrote:
> I have the following:
>
>
> name="EnableLogUpload" value="true" {% if EnableLogUpload == '1' %}
> checked="checked" {% endif %} />Enabled
> name="EnableLogUpload" value="false" {% if EnableLo
Thanks for reply.
Yes I have did it. But my question is add the data to the "add user" page.
It looks link the interface "admin.site.register" but it actually in "user
add template (/templates/admin/auth/user/add_form),
thanks :)
Joel Goldstick於 2012年3月16日星期五UTC+8下午5時31分13秒寫道:
>
> On Fri, Mar
I have the following:
Enabled
Disabled
Then the following if statement:
{% if
EnableLogUpload == '1' %} Enabled {% else %} Disabled {% endif %}
The above code works as expected (If EnableLogUpload equals to true
then 'Ena
Thanks for reply ... ... :)
But I have extent my UserProfile class success already.
Now I can find the new column in UserProfile Table in database.
But I want to add this extent data into my "add user" page. and access it.
For example:
I want to add a "valid duration" data when I add a new us
We are using PDFs.
--
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/-/EfQeowVhrBoJ.
To post to this group, send email to django-users@googlegroups.com.
To unsu
Hi,
Marc Patermann schrieb (15.03.2012 16:39 Uhr):
And a template:
{{ text }}
Which gives a dictionary with values of lists where most of the list
have only one value. I can access single of them by {{ text.mail }} or
{{ text.mail }}.
My goal is to show whatever attribute there is with it
On Fri, Mar 16, 2012 at 4:52 AM, yillkid wrote:
> Hi all:
>
> I want add a filed in app to add user page (/admin/auth/user/ ),
>
> or
>
> Actually I just want to add a valid date (DateTIme Filed) in add user page,
>
> and this Filed I have create in UserProfile class already, then how I should
> d
Hi guys, does anyone know about a good django package for twitter
authorization? I tried using omab/django social auth, but the twitter
authorization is not working for me.
Would love to hear your opinion! Thanks!
--
You received this message because you are subscribed to the Google Groups
"Dja
Hi all:
I want add a filed in app to add user page (/admin/auth/user/ ),
or
Actually I just want to add a valid date (DateTIme Filed) in add user page,
and this Filed I have create in UserProfile class already, then how I
should do ?
thanks.
--
You received this message because you are subs
Hi all :
I want to pass a DateTime Filed to the "add user page" ( /admin/auth/user/
),
anyone could give me a clue ? thanks .
--
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/
> I am confused that different tutorial gives different method of doing
> things. I want to know how to setup basic cms site,
> what folder should I create, sometime people create apps, sometimes
> they don't.
There are different ways to structure your project, but if you want to
use the database
Shawn, man thanks! I actually had no idea about the pipe vs. ampersand
distinction. I went ahead and changed my code to the following:
def search(request):
query = request.GET.get('q','')
querywords = query.split(' ')
lname=''
for word in querywords[1:-1]:
lname += word+'
On Fri, Mar 16, 2012 at 04:29, Shawn Milochik wrote:
> Look at how the Q objects are being used in the example and it's clear why
> that is. It's using the pipe (|) to do an "or" query.
>
> If you want to change how the search works you'll have to add more code:
>
> 1. Split the search parameters
44 matches
Mail list logo