Hi ,
I am newbie to django
Here is my code
{% csrf_token %}
# some code.
here is my view function
def ProcessVideo(request):
if request.method == "POST":
form = U
Hi ,
I have a django project and a standalone python script . From the view
function, i have invoked the standalone script. I am getting the error ."
No module named
this is my code for standalone script
import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'myproject.settings'
from django.conf
Which is the best place to start with using django and ajax without using
jquery ?
I meant calling the view function from javascript without using jquery
features
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email
Hi i fixed the error . I didnt add the parent directory of project to
sys.path.append in the standalone script thanks
On Wed, Feb 22, 2012 at 10:35 AM, kalyani ram wrote:
> every time you import something, plz done forget to include that in
> installed_apps. this mostly solves the import errors
hi,
How to access facebook apis inside python script ? I am using django
framework
--
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 this group, send email t
Hi ,
Hope u dont mind. I am very new to this . I want to use facebook apis to
gather profile information and do some data mining on it using django.
Please tell me the starting point for me so that i can proceed further.
Hope u dont mind asking silly questions
On Thu, Feb 23, 2012 at 5:35 PM, Mart
Hi , i am using django framework at the back end
I have used facebook s social plugin login for authentication
My Facebook Login Page
http://connect.facebook.net/en_US/all.js";>
FB.init({
appId:'My_app_id', cookie:true,
Hi ,
i am using django s view function to invoke py*thon script* to run in
background.
now i want to pass command line args to the script
here is wat i did
subprocess.Popen([sys.executable,"script_name","command_args1"])
i got the error
execv requires arg 2 to be a string
please help me
--
Hi guys,
Sorry for troubling you. I am not able to make out how to use facebook
social graph and other plugins in django. I am a newbie . I know the basics
of django and i went thru facebook api key s in developers.facebook.com .
It always points out " an error occured . please try again" . Can u
ebook" tag -
> a team of FB engineers monitors this tag, and may offer more insight. Most
> probably, it's some bug/maintenance glitch.
>
> On Thu, Mar 1, 2012 at 9:01 PM, dummyman dummyman wrote:
>
>> Hi guys,
>>
>> Sorry for troubling you. I am not abl
org/snippets/2065/
>
> Cheers!
>
> On Wed, Feb 29, 2012 at 5:29 PM, dummyman dummyman
> wrote:
> > Hi , i am using django framework at the back end
> >
> > I have used facebook s social plugin login for authentication
> >
> >
> >
> >
can u paste the file's contents ?
On Sat, Mar 10, 2012 at 1:01 PM, Rico wrote:
> I'm trying to learn Django and have been following several online
> tutorials hoping to understand how to create my own projects.
>
> I'm having trouble interpreting the error messages that are given when I
> do so
Hi,
how to write a custom django function in admin.py so that after adding the
data in models in localhost:8000/app/models/ should be redirected to a user
defined view function where we display the previously entered data entries
for display?
--
You received this message because you are subscri
Hi,
I created a new project in django
1.I created a new database
2. I created a new user
3.python manage syncdb
4.python manae.py runserver
when i visit localhost:8080/admin -> it asks for username n passwd. but the
login fails inspite of entering correct one
But it works for a different project
ld be to use some host entry like example.com 127.0.0.1 and
>> then use that in SESSION_COOKIE_DOMAIN and for accessing project on browser.
>>
>> Regards,
>> //Vikalp
>>
>>
>> On Wed, Mar 14, 2012 at 10:51 PM, dummyman dummyman
>> wrote:
>>
>
which is displayed on top of login form
> when you try to login?
>
> Regards,
> //Vikalp
>
>
> On Wed, Mar 14, 2012 at 11:06 PM, dummyman dummyman wrote:
>
>> hi ..
>>
>> I created a superuser but still getting the same error
>>
>> @vikalp: B
Wer is the SESSION_COOKIE_DOMAIN ?
On Wed, Mar 14, 2012 at 11:32 PM, dummyman dummyman wrote:
> hi
>
> i got this error msg
>
> Please enter a correct username and password. Note that both fields are
> case-sensitive.
>
>
> On Wed, Mar 14, 2012 at 11:21 PM, vikalp sahn
python official website will be good start
On Wed, Mar 14, 2012 at 11:44 PM, Fady Kamal wrote:
> Hello i am new to django and i've completed the Polls app tutorial
> sucessfully,and what i want to do now *FROM THE USER SIDE *is the
> following :
>
> 1-create poll.
> 2-delete poll.
> 3-edit the q
python official website will be good start
On Wed, Mar 14, 2012 at 11:44 PM, Fady Kamal wrote:
> Hello i am new to django and i've completed the Polls app tutorial
> sucessfully,and what i want to do now *FROM THE USER SIDE *is the
> following :
>
> 1-create poll.
> 2-delete poll.
> 3-edit the q
Hi
Still its not working :( getting the same error
On Thu, Mar 15, 2012 at 12:59 PM, vikalp sahni wrote:
> ITS in settigns.py file.
>
> if its not there just write.g
>
> SESSION_COOKIE_DOMAIN = "localhost" and then try.
>
> Regards,
> //Vikalp
>
>
>
yes its the same username and passwd for database are also same
On Thu, Mar 15, 2012 at 10:10 PM, Joel Goldstick
wrote:
> On Thu, Mar 15, 2012 at 7:40 AM, dummyman dummyman
> wrote:
> > Hi
> > Still its not working :( getting the same error
> > On Thu, Mar 15, 2012 a
Hi
I ve to models
class FacebookSession(models.Model):
access_token = models.CharField(max_length = 250,unique=True)
expires = models.IntegerField(null=True)
user = models.ForeignKey(User, null=True)
uid = models.BigIntegerField(unique=True, null=True)
birthday = models.Dat
", book_category="category")
> book.save()
> facebook_session.books_name.add(book)
>
> See:
>
> https://docs.djangoproject.com/en/1.3/ref/models/relations/#django.db.models.fields.related.RelatedManager.add
>
> On Sun, Mar 18, 2012 at 4:41 PM, dummyman dummyman
>
On Sun, Mar 18, 2012 at 4:08 PM, dummyman dummyman wrote:
> thnk u very much i got it :)
>
>
> On Sun, Mar 18, 2012 at 3:57 PM, Ian Lewis wrote:
>
>> Hi,
>>
>> facebook_session.books_name is a RelatedManager on the Books model class.
>>
>> You need t
-
Hi,
I want to add a new button on clicking a save and continue editing in
django admin add
I have created admin folder in my project and all those prelims im done
with it
Where exactly i should add the html code in change_form.html ? i cannot add
in submit_line.html coz it will affect other f
Hi, u ve not inserted comma after a first entry in the tuple NO_OF_HRS
On Sat, Mar 24, 2012 at 3:11 AM, prem wrote:
> I'm using Django forms and need to create a list box.
>
> What would be the equivalent of listbox in Django form fields?
>
> Here is my code snippet,
>
> Models.py
>
> class Volu
Hi,
Is there a way to prevent django asking username and password from
127.0.0.1:8000/admin or any other form in admin ?
--
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 unsu
hi
u can override response_change method
def response_change(self,request,obj):
On Fri, Mar 23, 2012 at 7:33 PM, jsdey wrote:
> I have a project photos that has a model Album. Admin (/admin/photos/
> album/ page has a button "Add Album". I want to write a custom page
> for that action but c
>
> On Mar 24, 2012, at 1:23 PM, dummyman dummyman wrote:
>
> hi
>
> u can override response_change method
> def response_change(self,request,obj):
>
> On Fri, Mar 23, 2012 at 7:33 PM, jsdey wrote:
>
>> I have a project photos that has a model Album. Admin (/admin/
Yes it is possible
override the django admin template
http://www.djangobook.com/en/1.0/chapter17/
this link would b helpful
On Thu, Mar 22, 2012 at 3:49 PM, rohit jangid wrote:
> I'm using the default admin for my purpose there was a time when I was
> thinking the same but I didn't wanted to r
Hi ,
I ve a integer array field. How do i represent it in django models ?
representing it in text field is not a feasible solution. I want that array
to be represented in a drop down box
so which is the best way to represent them in models ?
--
You received this message because you are subscribe
Hi,
I am looking for svm classifier implementation in python. My input is a set
of feature vectors of the form
[Feature1,Feature2,[Feature3],Feature4] =>This is for a user
so the input is basically a multidimensional list in python
I have a set of users . So we have of multidimensional lists.
Ou
Is any one aware of svm implementation using python ?
Apart from using weka tool ?
On Thu, Mar 29, 2012 at 9:21 AM, dummyman dummyman wrote:
> Hi,
>
> I am looking for svm classifier implementation in python. My input is a
> set of feature vectors of the form
> [Feature1,Fea
Thanks a lot.Any other alternative ?
On Fri, Mar 30, 2012 at 5:51 PM, Jeff Heard wrote:
> Look in Orange. http://orange.biolab.si/
>
>
>
> On Mar 30, 2012, at 2:23 AM, dummyman dummyman wrote:
>
> Is any one aware of svm implementation using python ?
> Apart from using
---
dummyman dummyman wants to stay in better touch using some of Google's
coolest new
products.
If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-39f62065b4-6ab0f5cba8-Hyccil_bE1jMXGxY1w4coC
inside your folder template create admin directory
all admin html files shud be placed here
inside it create a dir for ur app
inside ur app a dir for ur model
so typically url will be
http://localhost:8000/admin///add
On Sat, Mar 31, 2012 at 2:22 AM, Lee wrote:
> I know this has to be simple b
Hi
unless u dont specify blank=True or null = True in modes for d
corresponding fields, django will throw an errror if u don fill up the field
On Sat, Mar 31, 2012 at 9:25 AM, Nikhil Verma wrote:
> Hi All
>
> How can i apply validation in admin on various fields when they are
> dependent on each
t;
> ('default', 'None'),
> ('Paired Visit','Paired Visit'),
> ('Time Series', 'Time Series'),
>
> ),
>
> interview_type will show choices with dropdown 1) None 2) Paired Visit 3)
> Time Seri
Which model field in django is used to represent an integer array in mysql ?
--
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 this group, send email to
djang
Hi ,
I ve a set of fields which is displayed in admin using fieldsets in django.
But i want to modify the display of only one field. ie i used
CommaSeparatedField , i want that 2 display in forms.MultipleChoiceField .
How do i achieve it ?
i did like this
class A(forms.ModelForm):
fielda = f
no
On Thu, Apr 5, 2012 at 9:42 PM, Hum wrote:
> does max_length work for IntegerFields?
>
> --
> 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 this grou
Hi,
Is anyone having experience in orange tool.
I need a help
Orange tutorials explains how to load data from a .tab file
But my requirement is i ve a list in python which needs to be supplied as
input to orange svm
Is there a way to convert list to orange.tab format ?
I know this is a djang
Hi,
I have a feature vector built using django which is a list in python
But the orange tool which u guys recommended requires input to a classifier
as .tab file
How to map my list input to a .tab file .
Please help me
Thanks in advance
--
You received this message because you are subscribed
do the filtering part in views.py . templates is meant only for visual
purpose
On Sat, Apr 14, 2012 at 2:21 PM, Nikhil Somaru wrote:
> Greetings,
>
>
> I would like to do something like queryset filtering in a template. Is the
> only solution via a template tag?
>
>
> # models.py
>
> class Stude
How to include external css and javascript files in django ? I tried many
forums,django docs
Couldnt get a solution
Could u pl give me a step by step proc to include external css and
javascript files ?
--
You received this message because you are subscribed to the Google Groups
"Django users" g
hi,
i tried it before but didnt get d required results.
On Tue, Apr 17, 2012 at 8:16 PM, Eugenio Minardi
wrote:
> Hi,
>
> you can find a detailed guide here
> https://docs.djangoproject.com/en/dev/howto/static-files/
>
> On Tue, Apr 17, 2012 at 4:18 PM, dummyman dummyman
Hi
attached is the settings.py and i ve placed my css files in static
directory of the app and in templates i ve given the path
{{ STATIC_URL }} path
On Tue, Apr 17, 2012 at 10:13 PM, Joel Goldstick
wrote:
> On Tue, Apr 17, 2012 at 11:53 AM, dummyman dummyman
> wrote:
> > hi,
>
thank u will try and will get back if i have further doubts
On Tue, Apr 17, 2012 at 10:36 PM, Joel Goldstick
wrote:
> On Tue, Apr 17, 2012 at 12:50 PM, dummyman dummyman
> wrote:
> >
> > Hi
> >
> > attached is the settings.py and i ve placed my css files in static
hi,,
Thank u guys . I ve fixed the static web page problem in django :)
On Tue, Apr 17, 2012 at 10:40 PM, dummyman dummyman wrote:
> thank u will try and will get back if i have further doubts
>
> On Tue, Apr 17, 2012 at 10:36 PM, Joel Goldstick > wrote:
>
>> On Tue, Apr
Hi,
I have a python dictionary which i want to add to the javascript object on
load in django template
i followed this method
t so it would be None. Did you
> mean "key"? The syntax looks wrong too for assigning to someobject.
>
>
> On 20/04/2012 13:53, dummyman dummyman wrote:
>
>> Hi,
>>
>> I have a python dictionary which i want to add to the javascript object
>> on load in django template
>>
>> i followed this method
>>
>>
>>
Hi,
I have a django admin form where in i have overriden two fields widgets to
display in ModelMultipleChoiceField
ie
attributea = forms.ModelMultipleChoiceField()
attributeb=forms.ModelMultipleChoiceField()
now i when i click save and add another data will be saved to database and
will be redi
how to restart a django development server programmatically in python ?
--
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 this group, send email to
django-use
hi
but how do i do it when the server is running ??
i basically want to stop it and restart it in the program
is it possible ?
On Mon, Apr 23, 2012 at 6:54 PM, Joel Goldstick wrote:
> On Mon, Apr 23, 20ogr12 at 9:16 AM, Joel Goldstick
> wrote:
> > On Mon, Apr 23, 2012 at 6:10
MultipleChoiceField dynamically. But it
appears like the class is loaded only once and the form is taking the
previous old value ie d first one. Thats y i asked a way to restart the
server in the code
please help me
On Mon, Apr 23, 2012 at 8:35 PM, dummyman dummyman wrote:
> hi
>
> but how do i d
which doesn't have to be
> named with .wsgi, it's just the one that the WSGIScripAlias points to).
>
> On 4/23/12, dummyman dummyman wrote:
> > basically i ve a form in a class CollFormAdmin where i am overriding two
> > fields to MultipleChoiceField where values are c
wat is the workaround for creating a form each time when he enters d add
form ?
On Tue, Apr 24, 2012 at 1:22 AM, Andy McKay wrote:
> Change your code so you don't have to. Relying on a restart for that
> is the wrong approach.
>
> --
> You received this message because you are subscribed to the
57 matches
Mail list logo