On Tue, Jul 17, 2012 at 11:59 AM, @@ wrote:
> u = User.objects.all()
> u is not a user.
>
Oh yes, thank you for pointing.
Please help me with this :
How can I get the user id or 'u' of the user who has login using
Django inbuilt authentication, so that I can give different views to
the users base
On Wed, 2012-07-18 at 14:10 +0530, Sandeep kaur wrote:
> On Tue, Jul 17, 2012 at 11:59 AM, @@ wrote:
> > u = User.objects.all()
> > u is not a user.
> >
> Oh yes, thank you for pointing.
> Please help me with this :
> How can I get the user id or 'u' of the user who has login using
> Django inbui
I confront a strange situation since one field of my modelForm doesn't
being displayed (only its label is) so I can't put a value there when the
form is rendered
and I get the error: ORA-01400: cannot insert NULL into
("VPMS_BETA"."WEBREQUESTS"."DIRECTIONDB"). Of course, i don't wanna change
t
add grappelli in installed_apps settings.py
On 18 July 2012 04:38, Eli_West wrote:
> why I posted this question, i dont know plz help lol
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https
Using gunicorn in virtual environment.
On 18 July 2012 04:03, Kurtis Mullins wrote:
> Hello Carlos,
>
> I apologize but I am unable to understand your problem. It looks like you
> are trying to use Apache to forward requests on to Django using
> "mod_python".
>
> According to Django's web site,
But i want to upload to following path..
/usr/local/apache2/htdocs/goibibo/travelibibo/static/refundsReports/%Y%m%d
And the first back slash is must. I can't remove that. So please let me
know how can i handle this case.
Thanks,
Binny
On Tuesday, August 19, 2008 6:17:16 PM UTC+5:30, Jon Atkin
Hello folks.
Just for the record, this is my first project in Django.
The problem is this:
When i have the debug on true and i search for a page that i know that
don't exist i get the expected Django 404 error.
But when i turn off the Debug, instead of getting my 404html page, i get
the 500htm
Hi all
I'm looking at using Xeround as a DB backend. I've already come up against
that as it detects a version > 5.0.3 it tries to use savepoints which are
not supported.
http://stackoverflow.com/questions/10193449/how-to-use-django-1-4-with-xeround
Happy to carry on and try all the features b
there may be problem in your code but regarding the Debug=True, it loads
404.html and display errors,
but we can't put Debug=True live so if Debug=False
then djago automatically load your 500.html and where you can write your
own message for the user, and can redirect them from that url.
to che
when I run the installation of Django python setup.py install - comes at
the end of an error that can not be put Django in C: \ Python27 \ Lib \
site-packages
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web v
try using pip:
pip install django
On Wed, Jul 18, 2012 at 3:50 PM, Владислав Иванов wrote:
> when I run the installation of Django python setup.py install - comes at
> the end of an error that can not be put Django in C: \ Python27 \ Lib \
> site-packages
>
> --
> You received this message becau
On Wed, Jul 18, 2012 at 5:48 AM, mapapage wrote:
> Of course, i don't wanna change the thing that it is not nullable.
then what do you want to insert there?
you can either define a default value, add a hidden field to the form,
or in the view add some value to the user input before feeding to th
I've used these instructions for running on IIS with Helicon Zoo. Might be
worth looking at:
http://www.helicontech.com/articles/running-django-on-windows-with-performance-tests/
On Wednesday, July 18, 2012 7:50:48 AM UTC-5, Владислав Иванов wrote:
>
> when I run the installation of Django pyt
Hi everyone,
I have a contact form in my app and would like to prepopulate it with user
details where a user is logged in. Basically, I do the following:
reg_user = get_registered_user(request)
# get my form object
I would like to do something like:
if reg_user:
my_form.name = reg_user.name
user = request.user
initial = {}
if user.is_authenticated:
initial.update({ 'name': user.name, 'email_address': user.email_address
})
form = MyContactForm(initial=initial)
On Wed, Jul 18, 2012 at 11:23 AM, Sithembewena Lloyd Dube
wrote:
> Hi everyone,
>
> I have a contact form in my app and w
Thanks Tomas, just what i needed :)
On Wed, Jul 18, 2012 at 4:44 PM, Tomas Neme wrote:
> user = request.user
> initial = {}
> if user.is_authenticated:
> initial.update({ 'name': user.name, 'email_address':
> user.email_address })
> form = MyContactForm(initial=initial)
>
>
> On Wed, Jul 18,
Hi Binny,
Your problem sounds like one I had months ago. I got this response at the
time:
You need to make sure that the same process running your python interpreter
has write permissions to your media directory.
>From StackOverflow:
"The process that is running your Python interpreter doesn't h
I solved it. Problem was with AJAX :)
On Tue, Jul 17, 2012 at 2:30 PM, Aljoša Mohorović <
aljosa.mohoro...@gmail.com> wrote:
> On Tue, Jul 17, 2012 at 10:47 AM, Benasg wrote:
> > Hello, when I using django comments without tinymce it`s works perfect,
> but
> > when I add tiny I get error "This f
try safe mode
On Wed, Jul 18, 2012 at 9:38 AM, Wes wrote:
> I've used these instructions for running on IIS with Helicon Zoo. Might be
> worth looking at:
>
>
> http://www.helicontech.com/articles/running-django-on-windows-with-performance-tests/
>
>
>
> On Wednesday, July 18, 2012 7:50:48 AM UT
Do you have the proper level of security on the machine to install software?
On Wednesday, July 18, 2012 8:50:48 AM UTC-4, Владислав Иванов wrote:
>
> when I run the installation of Django python setup.py install - comes at
> the end of an error that can not be put Django in C: \ Python27 \ Lib \
On Wed, Jul 18, 2012 at 3:13 PM, kenneth gonsalves
wrote:
> On Wed, 2012-07-18 at 14:10 +0530, Sandeep kaur wrote:
> request.user
Thank you sir , this was helpful. :)
--
Sandeep Kaur
E-Mail: mkaurkha...@gmail.com
Blog: sandymadaan.wordpress.com
--
You received this message because you are su
TemplateSyntaxError at /admin/
'url' is not a valid tag library: Template library url not found, tried
django.templatetags.url,element.grappelli.templatetags.url,django.contrib.admin.templatetags.url
plz help
--
You received this message because you are subscribed to the Google Groups
"Djang
What does your Apache log look like? What, exactly, is the 500?
A common issue when deploying is if your fcgi or wsgi script doesn't have
the correct permissions set, which would cause an error that can't be caught
by Django.
-Original Message-
From: django-users@googlegroups.com [mailto:
You could override your ModelForm's save() method to save some data to that
field. And then modify the same ModelForm to exclude that field. For
example,
class MyForm(ModelForm):
class Meta:
exclude = ('excluded_field',)
That way it won't expect any data for the field when processing
Hi,
so as explained in the docs CachedStaticFilesStorage will not be applied
if DEBUG setting is set to False. I just wanted to understand why this is
the case. I have a development environment and want to use
CachedStaticFilesStorage. thanks.
cheers,
Marwan
--
You received this message becaus
> You could override your ModelForm's save() method to save some data to that
> field. And then modify the same ModelForm to exclude that field. For example,
or maybe, just maybe, he might show us his model, form, and rendered
html so we can actually help him identify and possibly fix his
problem
Show us the model and form code
-Mensaje original-
De: mapapage
Enviados: 18/07/2012 07:48:59
Asunto: one field of modelForm doesn't being displayed
I confront a strange situation since one field of my modelForm doesn't
being displayed (only its label is) so I can't put a value there
Hello,
I've written a generic app that uses the ContentType framework.
It's not designed to be used on its own, rather it plugs into an
existing project, and then my other apps call a registration
function. It's working well for me, but I'd like to write
standalone unit tests and I'm not sure how.
Here's a clue from Carl Meyer in an old Stackoverflow post:
http://stackoverflow.com/questions/502916/django-how-to-create-a-model-dynamically-just-for-testing
The idea here is to put additional models in
myapp/tests/models.py and then include myapp.tests in
INSTALLED_APPS when testing. This mig
Hi all,
I have same problem on my PHP web tvprofil.net. I have read all posts and
turned all debugging, logged JavaScript user errors and all headers and env
vars.
Currently concluded this:
- all errors are on Windows (all versions), mostly Chrome browser
- Accepts mostly */*, but there is
On 19/07/12 06:27, Demian Brecht wrote:
What does your Apache log look like? What, exactly, is the 500?
mod_wsgi (pid=18094): Exception occurred processing WSGI script
'/usr/local/django/dogscience/apache/django.wsgi'.
Traceback (most recent call last):
...
File
"/usr/lib/pymod
You're running ls -l under your user account. The apache process needs r+w
permissions to the database file.
-Original Message-
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com]
On Behalf Of Matt Smith
Sent: Wednesday, July 18, 2012 3:59 PM
To: django-users@googleg
I'm new to django and python, and decided to follow up the available
tutorials to get up to speed. These were helpful and got me on my feet but
while finishing up the tutorial i hit a major snag. While everything was
working properly using custom views, i can't seem to make my app load the
corr
hi programers! i want to make my project work in web, but i only know how
deploy django-mod_python-apache, also the question!
i'm keep all install corretc and work correct too, whall i will keep this
project in web?
process using ftp!
thanks!
--
You received this message because you are subscrib
On 19/07/12 11:06, Demian Brecht wrote:
You're running ls -l under your user account. The apache process needs r+w
permissions to the database file.
Thx Demian my issue is now resolved (and I feel like a dumbass but who
cares!)
--
Matt Smith
http://mattsmith.org.nz
--
You received this mes
No worries, happens to the best of us.
-Original Message-
From: django-users@googlegroups.com [mailto:django-users@googlegroups.com]
On Behalf Of Matt Smith
Sent: Wednesday, July 18, 2012 4:54 PM
To: django-users@googlegroups.com
Subject: Re: Can't use admin with apache
On 19/07/12 11:06,
Openshift?
On Monday, July 16, 2012 8:27:23 PM UTC-7, surya wrote:
>
> I am building a facebook application where I have to use database models
> (very small size ~ 1MB - 2MB). Is there any good cloud db storage website
> for hosting the database??
>
> I looked around Amazon Web Services, it has
I am having similar problems. did you manage to get this fixed?
On Wednesday, January 25, 2012 6:51:34 AM UTC-8, leaks wrote:
>
> Hey all... i get this error while i have a template directory and my
> about.html file It doesn't display the home.html either...
>
> Environment:
>
>
> Request
On 19 July 2012 04:46, Mark Anderko wrote:
> I am having similar problems. did you manage to get this fixed?
>
>
> On Wednesday, January 25, 2012 6:51:34 AM UTC-8, leaks wrote:
>>
>> Hey all... i get this error while i have a template directory and my
>> about.html file It doesn't display th
You can also have a "templates" directory in any app of yours and Django
will pick them up from there.
It's also best practice to start your template path with your app name. For
instance: myapp/templates/myapp/my template.html
Or; mytemplatedir/myapp/mytemplate.html
Indeed django does not elec
Please provide path to your templates
2012/7/19 Ricardo Cardoso :
> I'm new to django and python, and decided to follow up the available
> tutorials to get up to speed. These were helpful and got me on my feet but
> while finishing up the tutorial i hit a major snag. While everything was
> workin
Never use grappeli so take this advice for what it's worth, but did you
check the version compatibility of your grappeli install and your django
install?
Le 18 juil. 2012 20:12, "chhots" a écrit :
> TemplateSyntaxError at /admin/
>
> 'url' is not a valid tag library: Template library url not foun
42 matches
Mail list logo