> Im having problems figuring out how to work my way through part 2 of
> the tutorial, where I have to copy some default django templates to my
> own template directory. Where are the default django templates,
Default Django Templates for admin : /your_system_python_path/django/
contrib/admin/te
On Jun 29, 10:34 am, pankaj sharma wrote:
> hello friends ,
> i have a database in which i have some files say photos...
Why you store you files in database? You need to store the path of
file in database and files area stored in that path or folder.
> {i am uploading photos from django admin.}
On Jun 28, 1:17 pm, sandeep kaur wrote:
> Hello all,
> I want to include background images and gallery images to my django project
> and I am unable to do so.Images do not get displayed. please help me out
You mean use image in Django templates ?
--
You received this message because you are
Webfraction.com very cheap for hosting django
For more plan :
http://www.webfaction.com/services/hosting
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from t
On Feb 27, 1:01 am, Borislav Petrović wrote:
> Hello,
>
> Is there an app, or a suggestion on how to browse through media
> files on a remote machine?
>
> I have a setup that would include two separate machines one from a web
> hosting for my django site and another that would host media
> > Is Django automatically done the table locking /unlocking concept in
> > case of Mysql/PostGreSQL?
>
> Depends how backend handles database sessions.
>
> > if not how I done this manually?
>
> Thing you described is called pessimistic locking. What are you trying to
> accomplish with that?
I
Hi..
Is Django automatically done the table locking /unlocking concept in
case of Mysql/PostGreSQL?
if not how I done this manually?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups
On Dec 7, 10:16 pm, Wayne Smith wrote:
> You want to use an aggregation
> function:http://docs.djangoproject.com/en/dev/ref/models/querysets/#aggregatio...
>
Thanks, Problem solve.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
hi
I want to use mysql Query :
Select sum(field_name) FROM table_name WHERE some condition.
Is it possible without using raw queries in Django ?
if yes, please help.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, se
On Dec 2, 1:18 pm, "Cal Leeming [Simplicity Media Ltd]"
wrote:
> Please define 'handle graphics'.
>
> Do you mean serving graphics media? Creating graphics on the fly?
> Resizing? Overlaying? Give us some clues ;)
CAD.
Making circle, triangle etc like in AutoCAD / QCAD, or paint brush
Making
Can we handle graphics in Django?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For m
On Nov 22, 11:28 pm, Rogério Carrasqueira
wrote:
> Hi Jagdeep,
>
> Consider to use a query like this example:
>
> sales =
> Sale.objects.extra(select={'month':'month(date_created)','year':'year(date_created)'}).values('year','month').annotate(month=11,year=2010)
>
> It works on mysql.
>
> More i
On Nov 22, 11:28 pm, Rogério Carrasqueira
wrote:
> Hi Jagdeep,
>
> Consider to use a query like this example:
>
> sales =
> Sale.objects.extra(select={'month':'month(date_created)','year':'year(date_created)'}).values('year','month').annotate(month=11,year=2010)
>
Not working
Error :
File "",
Hi
I have two Problems with Mysql Query
First problem :
for example :-
>>>client = ClientJob.objects.filter(date__contains = '2010-11- ')
>>> client
Warning Message is :-
Warning: Incorrect date value: '%2010-11-%' for column 'date' at row 1
its doesn't work
I want use Mysql Query like :-
SELEC
> >>> from django.db.models import Max
> >>> Client.objects.aggregate(maxid=Max('id'))
>
> {'maxid': 2L}
>
> And you'll get a dictionary with the value you want as a result.
>
> [1]:http://docs.djangoproject.com/en/1.1/topics/db/aggregation/
Thanks for link, problem solve.
--
You received thi
now I also try another method to get max(id)
from django.db import connection
cursor = connection.cursor()
cursor.execute('SELECT max(id) FROM automation_client')
maxid = cursor.fetchone()
output is :
(2L,)
but i want only 2 not any other character.
Is any other method to get
> Nowhere. Output is correct and as documented - you get back *RawQuerySet*. Not
> a single value.
>
> So you have to do something like:
>
> maxid = Client.objects.raw('SELECT MAX(job_no) as max_job_no FROM
> CLIENT').values_list('max_job_no', flat=True)[0]
facing this error
AttributeError: 'RawQ
hi
I am facing problem with raw() mysql quiers
for example :
maxid = Client.objects.raw('SELECT Max(id) FROM client')
print maxid
output is :-
I am using Django 1.2 version.
where I am wrong?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
hi
I want to use this mysql Query
" SELECT count(*) as class_roll_no FROM student_profile where
class_roll_no !='00 ' ";
in my view file
Is it possible?
I try this code
view.py file is :
from django.shortcuts import render_to_response
from mysite.student.models import Profile
from django.db.mo
> Have you created the virtual environment by using the --no-site-packages
> command line switch to virtualenv?
yes , me using -no-site-packages command
> If so, no globally installed module/packages
> (among them MySQLdb) will be inherited by the environment.
> If you are starting, I'd suggest t
I am using virtualenv 1.5 to install multiple version of django in
same PC.
My Django is works fine with virtualenv, follow this link
http://pypi.python.org/pypi/virtualenv#downloads
but me face problem with MySQLdb when i configure the database in
setting.py file.
Error is :
ImproperlyConfigured
On Sep 16, 1:51 pm, Graham Dumpleton
wrote:
> Then that directory isn't where it is installed, or the permissions on
> your directories are such that user that Apache runs as can't read
> that directory. Post a 'ls -las' directory listing of your site-
> packages directory and check that from th
On Sep 16, 2:25 am, Graham Dumpleton
wrote:
> You need to add it to sys.path in WSGI script file. The PYTHONPATH
> in .bashrc of your personal account isn't used by Apache/mod_wsgi.
>
> Graham
i already use sys.path
my WSGI script file is
{
import site
site.addsitedir('/home/jagdeep/CMS/bin/lib/
On Sep 15, 11:15 am, Colin Bean wrote:
> Have you tried the steps described
> here:http://code.google.com/p/modwsgi/wiki/VirtualEnvironments?
>
now i try this i found error :
raise ImproperlyConfigured, "Error loading MySQLdb module: %s" % e
django.core.exceptions.ImproperlyConfigured: Error l
I am try to use Multiple version of Django on same machine.
I am using the Virtual Python Environment builder (virtualenv 1.5). I
am able to install this using documentation.
http://pypi.python.org/pypi/virtualenv#downloads
but now i am facing problem with mod-wsgi.
i am not able to understand how
I am use Install the Django-Cms using this link
http://www.django-cms.org/en/documentation/2.0/installation/
I face this error. I am able understand this error
I am using Django Version is 1.1.2 and Django -cms is 2.0.2
Version is matching with Documentation of Django-Cms
ERROR is : -
{
Improperl
> but is this correct way to get values from two tables and use in
> templates?
Me actually want to combine to tables and use there values in template
Is the above post code is correct way to do this?
Thanks
--
You received this message because you are subscribed to the Google Groups
"Django
> > I tried this, its not working.
>
> Sorry, but "not working" does not constitute useful information.
>
> My car isn't working. Can you fix it? ;-)
model.py
from django.db import models
from django.forms import ModelForm
class Input(models.Model):
input1 = models.FloatField()
input2 =
> If these objects are lists, say list1 and list2, in your view just
> create a single object made up of pairs of elements from the original lists:
>
> values = zip(list1, list2)
>
> Then you can pass that item to your template and iterate over it.
I tried this, its not working.
--
You recei
I have question about "for loop" used in Templates
the correct Syntax of using For Loop in template is :
{% for X in VALUE %}
but I want to use For loop with two value
Is it possible to use two value in one loop?
For example :
{% for X, Y in VALUE1, VALUE2 %}
Or
{% for X in VALUE1 && Y in VAL
> Given that the ModelForm save() method actually returns the Input object
> it has just created, wouldn't you be better simply saying
>
> p = form.save()
>
Problem solved
Thanks Sir.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To pos
I try to get the max value of id from database using max() function
but a face this error.
{
TypeError at /add_db/
'builtin_function_or_method' object is not iterable
Request Method: POST
Request URL:http://localhost/django/add_db/
Django Version: 1.2.1
Exception Type:
> Fairly obviously, you've instantiated the model - Input() - rather
> than the form - InputForm() - in both branches of the if statement of
> your view.
it works.
Thanks Sir.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this gr
I try to Create forms from models
I am facing error message with 'is_valid()'
error is :
{
AttributeError at /add_db/
'Input' object has no attribute 'is_valid'
Request Method: POST
Request URL:http://localhost/django/add_db/
Django Version: 1.2.1
Exception Type: Att
On Aug 21, 10:17 pm, Marek Dudek wrote:
> You have django 1.2.1, now I noticed
> I wasn't able to install any version of django-cms with django 1.2.1 and
> I tried 2.0.0, 2.0.1, 2.0.2 and 2.1.0-beta3
> Most up-to-date combination that I successfully installed is django
> 1.1.1 with django-cms 2.
sorry, I am not able understand this error.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups
I try to Install the Django-Cms using this link
http://www.django-cms.org/en/documentation/2.0/installation/
I face this error. I am able understand this error
ERROR is : -
{
ImproperlyConfigured at /
'PageAdmin.exclude' refers to field 'created_by' that is missing from
the form.
Request Method
> since python and php radically differ on the way things are done, it
> would be much quicker to rewrite the code afresh rather than attempt to
> translate it.
ok sir, thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this g
I make a project in php5, but now i want shift my project into Django.
I am able to shift my database into model.py file using this command
#django-admin.py inspectdb
and also complete the 4 Tutorial http://docs.djangoproject.com
but now want to my shift the other php5 work into django.
Is it po
Hi...
I done the tutorials
http://docs.djangoproject.com/en/dev/intro/tutorial04/#intro-tutorial04
for create the form using database.
Now i want to study more tutorials/examples which is helpful for me to
create the forms using database.
if anybody know about the links/websites/other sources rel
>
> Why do you think you would get any SQL with that? You're creating a
> form, not a model.
ok
I also want to store the value in database using form.
Now what i can do?
any tutorial of that?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
Problem solve
@Steve Holden
Thanks sir
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
i follow these documentation for create form
http://docs.djangoproject.com/en/dev/topics/forms/
i use command for create application
#python manage.py startapp form
after this a use this code in model.py file
from django import forms
class ContactForm(forms.Form):
subject = forms.CharField
I have the backup of mysql database with tables and fields data.
I want to use these tables and fields to create the classes in
model.py file for django.
Is it possible?
Is any tool and script for convert the database tables with fields
into a modey.py to create class?
Thanks
--
You received t
Problem solve
Thanks Django users
-
jagdeep singh
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@google
I try this code to create database in using django.
file :models.py
class amount(models.Model):
jono = models.PositiveIntegerField(unique=True)
name = models.CharField(max_length=750)
receipt = models.CharField(max_length=200)
phno = models.CharField(max_length=25)
type =
./manage.py runserver
Error: No module named messages
OR
python manage.py syncdb
Error: No module named messages
where is problem ???
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegrou
On Jun 24, 12:26 am, Karen Tracey wrote:
> On Wed, Jun 23, 2010 at 2:26 PM, Jagdeep Singh Malhi <
>
>
>
> singh.malh...@gmail.com> wrote:
>
> > On Jun 23, 11:00 pm, Jagdeep Singh Malhi
> > wrote:
> > > $import django
> > > error
On Jun 23, 11:00 pm, Jagdeep Singh Malhi
wrote:
> $import django
> error :
> import: unable to open X server `' @ import.c/ImportImageCommand/361.
>
> i am working on ubuntu 10.04 server version
And
./manage.py runserver
Error: No module named messages
how handle thi
$import django
error :
import: unable to open X server `' @ import.c/ImportImageCommand/361.
i am working on ubuntu 10.04 server version
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegr
Sir thanks very much indeed , now its works.
thanks.
On Jun 20, 11:37 pm, Jagdeep Singh Malhi
wrote:
> On Jun 20, 5:00 pm, Graham Dumpleton
> wrote:
>
> > On Jun 20, 9:17 pm, Jagdeep Singh Malhi
> > wrote:
>
> > > On Jun 20, 3:08 pm, Graham Dumplet
On Jun 20, 5:00 pm, Graham Dumpleton
wrote:
> On Jun 20, 9:17 pm, Jagdeep Singh Malhi
> wrote:
>
>
>
> > On Jun 20, 3:08 pm, Graham Dumpleton
> > wrote:
>
> > > On Jun 20, 7:34 pm, Jagdeep Singh Malhi
> > > wrote:
>
> > > > in
On Jun 20, 3:08 pm, Graham Dumpleton
wrote:
> On Jun 20, 7:34 pm, Jagdeep Singh Malhi
> wrote:
>
> > in which file i see these lines .
>
> >
> >
> In your browser, when you request the admin page which isn't showing
> the styling, use your brow
Is these setting of my setting.py files are correct ?
setting is :-
MEDIA_ROOT = '/home/your_name/mysite/media/'
MEDIA_URL = 'http://localhost/media'
ADMIN_MEDIA_PREFIX = '/media/'
On Jun 20, 2:08 pm, Jagdeep Singh Malhi
wrote:
> On Jun 19, 10:36 pm, J
in which file i see these lines .
wrote:
> On Jun 20, 3:06 am, Jagdeep Singh Malhi
> wrote:
>
> > now my httpd.conf file is :-
>
> > Alias /media/ /usr/local/lib/python2.6/dist-packages/django/contrib/
> > admin/media/
>
> > > media
27;/media/'
> On Jun 19, 12:06 pm, Jagdeep Singh Malhi
> wrote:
>
> > now my httpd.conf file is :-
>
> > Alias /media/ /usr/local/lib/python2.6/dist-packages/django/contrib/
> > admin/media/
>
> > > media/>
> > Order deny,allow
> > Allo
now my httpd.conf file is :-
Alias /media/ /usr/local/lib/python2.6/dist-packages/django/contrib/
admin/media/
Order deny,allow
Allow from all
WSGIScriptAlias / /home/jagdeep/mysite/apache/django.wsgi
Order allow,deny
Allow from all
but my http://localhost/admin/ is not show in graphi
On Jun 19, 3:12 pm, Kenneth Gonsalves wrote:
> On Saturday 19 June 2010 10:48:57 Jagdeep Singh Malhi wrote:> packeages/
>
> packages
change this "packages" , but problem is not solve
> --
> Regards
> Kenneth Gonsalves
> Senior Associate
> NRC-FOSS at
On Jun 17, 5:03 pm, Graham Dumpleton
wrote:
i copy the media directory in my "/home/yourname/mysite"
directory.
>
> Thus, run Python and go:
>
> >>> import django
> >>> import os
> >>> os.path.dirname(django.__file__)
import django
import os
os./usr/local/lib/python2.6/dist-packeages/
django
, Graham Dumpleton
wrote:
> On Jun 17, 9:17 pm, Jagdeep Singh Malhi
> wrote:
>
> > i am using this
> > linkhttp://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/#howto-...
>
> > In this link i am unable to under stand topic SERVING MEDIA FILES
> > the line
i am using this link
http://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/#howto-deployment-modwsgi
In this link i am unable to under stand topic SERVING MEDIA FILES
the lines(given below) which is used in this tutorial , i am able
understand where we edit this line , if its edit in ap
i am use this commands many time , it does not make any effect .
On Jun 13, 12:12 am, Rolando Espinoza La Fuente
wrote:
> On Sat, Jun 12, 2010 at 12:58 PM, Jagdeep Singh Malhi
>
> wrote:
> > Myhttp://localhost/admin/ is display in pattern without grapic or
> > image no
On Jun 13, 12:12 am, Rolando Espinoza La Fuente
wrote:
> On Sat, Jun 12, 2010 at 12:58 PM, Jagdeep Singh Malhi
>
> wrote:
> > Myhttp://localhost/admin/ is display in pattern without grapic or
> > image not like that which is shown in Tutorial
> >http://docs.dja
My http://localhost/admin/ is display in pattern without grapic or
image not like that which is shown in Tutorial
http://docs.djangoproject.com/en/1.2/intro/tutorial02/#intro-tutorial02
MY admin page (http://localhost/admin/)
Django administration
Welcome, Jagdeep. Change password / Log out
Si
:01 AM, Kenneth Gonsalves
> wrote:> On Saturday 12 June 2010 10:39:36 Jagdeep Singh
> Malhi wrote:
> > > IndentationError: unindent does not match any outer indentation level
>
> > no one help you in this unless you are willing to do some homework - most
> > IDE
i am using Django Version: 1.2.1
I follow this Tutorial http://docs.djangoproject.com/en/1.2/intro/tutorial01/
and
Edit the polls/models.py file so it looks like this:
class Poll(models.Model):
# ...
def __unicode__(self):
return self.question
class Choice(models.Model):
#
This the Error message :
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator, webmas...@localhost and
inform them of the time the error occurred, and anything you might
have done that
ok sir , thanks very much indeed
i try my best..
On Jun 6, 8:52 am, Kenneth Gonsalves wrote:
> On Sunday 06 June 2010 09:12:30 Jagdeep Singh Malhi wrote:
>
> > Sir , i am not able to remove this error..
> > which of template or file name is wrong..
>
>
rote:
> It seems that your application is trying to render a template that
> doesn't exist.
>
> And why are you using mod_python anyway?
>
> On Sat, Jun 5, 2010 at 5:49 PM, Jagdeep Singh Malhi
>
> wrote:
>
> > MOD_PYTHON ERROR
>
> > ProcessId:
Sir , i am not able to remove this error..
which of template or file name is wrong..
On Jun 5, 5:09 pm, Kenneth Gonsalves wrote:
> On Saturday 05 June 2010 17:25:16 Jagdeep Singh Malhi wrote:
>
> > File "/usr/local/lib/python2.6/dist-packages/django/template/
>
MOD_PYTHON ERROR
ProcessId: 3219
Interpreter:'127.0.1.1'
ServerName: '127.0.1.1'
DocumentRoot: '/var/www'
URI:'/'
Location: '/'
Directory: None
Filename: '/var/www/'
PathInfo: ''
Phase: 'PythonHandler'
Handler:'django.core.hand
to create a
500.html template.
File "/usr/local/lib/python2.6/dist-packages/django/template/
loader.py", line 157, in get_template
template, origin = find_template(template_name)
File "/usr/local/lib/python2.6/dist-packages/django/template/
loader.py", line 138, in fi
MOD_PYTHON ERROR
ProcessId: 3793
Interpreter:'127.0.1.1'
ServerName: '127.0.1.1'
DocumentRoot: '/var/www'
URI:'/'
Location: '/'
Directory: None
Filename: '/var/www/'
PathInfo: ''
Phase: 'PythonHandler'
Handler:'django.core.handl
please Discuss in detail ...
I am not able to understand ,how i can use Django with mod_wsgi
I am using ubuntu 10.04 (LTS)
please help.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
i am able to install django
Its Works
Thanks Very much ( Django users)
On Apr 15, 10:43 am, Eximius wrote:
> Try syncdb using manage.py command i.e.
> # manage.py syncdb
>
> On Thu, Apr 15, 2010 at 12:47 AM, Alexis Selves
> wrote:> try to insall package python-django using
> apt-get install
>
how to install django in ubuntu ?
Please Replywith full instruction
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, sen
#apt-get install python-django
After this what can i do..
On Apr 15, 12:17 am, Alexis Selves wrote:
> try to insall package python-django using apt-get install
>
> On 14 dub, 20:47, "Tom X. Tobin" wrote:> On Wed,
> Apr 14, 2010 at 1:17 PM, Shawn Milochik wrote:
> > > The instru
#manage.py syncdb
is not worked...
error messge is :
manage.py: command not found
On Apr 15, 10:43 am, Eximius wrote:
> Try syncdb using manage.py command i.e.
> # manage.py syncdb
>
> On Thu, Apr 15, 2010 at 12:47 AM, Alexis Selves
> wrote:> try to insall package python-django using
I try to install Django in Ubuntu 9.10 ...
using this link
http://jeffbaier.com/articles/installing-django-on-an-ubuntu-linux-server
but i face problem with this command
#django-admin.py syncdb
it not works
error message is
{ Traceback (most recent call last):
File "/usr/local/bin/djan
79 matches
Mail list logo