> cubells :
>
Hi all:
In order to show my feeds blog I have a class:
class BlogFeed(Feed):
title = "MySite"
description = "Some ramblings of mine"
link = "/blog/feed/"
def items(self):
return Post.objects.all().order_by("-created")[:2]
def item_title(self, item):
return item.title
def item_de
Hey,
I read your post some days ago and waited what other people say. But
nobody answered.
I posted a related question some time ago: Staging (dev,test,prod) in django. I
explain
my setup there.
http://markmail.org/thread/wqwvordnlhyizwyp
A related thread on django-dev:
http://groups.google.co
Guys when i try to use smtplib directly with next code every things works.
#!/usr/bin/env python
import smtplib
def main():
print "sending throut gmail"
username = "infinit...@gmail.com"
password = "password"
fromaddr = "infinit...@gmail.com"
toaddr = "s...@other.email.com"
msg
What's your algorithm?
On 3/13/12, coded kid wrote:
> Hi Guys, how can I make users who are following each other view their
> status update on their walls? In my project, users can follow and
> unfollow each other but the problem I’m facing is that, both of them
> can’t see each other statuses on
Hi,
Please , I need to know full details about coping the baseline
template from the source code to my own templates folder so that i can
change the site name instead of "Django administration".
i don't understand the meaning of not to forget the admin sub
directory.
Thank you.
--
You received
Hi
I'm making a poll application using this tutorial
https://docs.djangoproject.com/en/1.3/intro/tutorial02/
but when i add this line "list_display = ('question', 'pub_date')" to
the admin.py , it gives me an error
it worked once and when i continued the tutorial , it gave me error so
i have to re
when i add this line in admin.py "list_display = ('question',
'pub_date')" , i get an 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-users@googlegroups.com.
To unsubscribe from this group, send
**Requirements**
* It is mandatory for candidates to speak Korean as their first or
second language.
* At least 3-5 years experience with Django/Python.
* Python with Django, GeoDjango, South, pip, tddspry, webtests,
virtualenv, fabric
* UNIX; Fedora Linux, Ubuntu, SuSE, Solaris 10
* Experience wi
The most common reason I have seen for is_valid() to return False but
errors to be empty is for the form to be unbound. Unbound forms are
never valid, but they also don't have any errors. Which goes to
Daniel's question: how exactly have you "preloaded" the form with
data?
Karen
--
http://tracey.
On Wed, Mar 14, 2012 at 5:42 AM, Yasmine El_Badry
wrote:
> Hi
> I'm making a poll application using this tutorial
> https://docs.djangoproject.com/en/1.3/intro/tutorial02/
> but when i add this line "list_display = ('question', 'pub_date')" to
> the admin.py , it gives me an error
> it worked onc
this is the error
IndentationError at /admin/polls/poll/
unexpected indent (admin.py, line 14)
Request Method:GET
Request URL:http://127.0.0.1:8000/admin/polls/poll/
Django Version:1.4c1
Exception Type:IndentationError
Exception Value:
unexpected indent (admin.py, line 14)
Exceptio
Hello Javier,
I did the verification to see what is taking so much time to fetch and I
realise it is because my model "TmyObject" is related to another class
model driving his caracteristics. For example, it's like
TmyObject can be any car
I have another mod
A 2012-03-14 13:52, yasmine.elba...@gmail.com escrigué:
this is the error
IndentationError at /admin/polls/poll/
unexpected indent (admin.py, line 14)
You have an incorrect indent at line 14 of admin.py.
--
You received this message because you are subscribed to the Google Groups "Django
us
On Wed, Mar 14, 2012 at 7:55 AM, Phanounou wrote:
> This is what is taking the most of the time. the gattering of the list of
> TObjectAttribute, 3 or 4 times each at a time because TmyObject has 3-4
> attributes value. Because I called it as an admin.StackedInline object in
> the admin page.
>
>
I got itmany thanks Javier for your patience and your help.I put
formfield_for_foreignkey method everywhere and now it's super fast. I'm
glad you help me find the solution. Again thanks a lot. You made my day :-)
Regards,
VB
2012/3/14 Javier Guerra Giraldez
> On Wed, Mar 14, 2012 at 7:55 A
On Wed, Mar 14, 2012 at 8:56 AM, Phanounou wrote:
> I got itmany thanks Javier for your patience and your help.I put
> formfield_for_foreignkey method everywhere and now it's super fast. I'm glad
> you help me find the solution. Again thanks a lot. You made my day :-)
great. i'm glad i wasn
I decided to go with webfraction based on your recommendation. I just
setup my account and will let you know how it goes. Thanks. :)
On Tue, Mar 13, 2012 at 11:27 AM, NENAD CIKIC wrote:
> OK, thanks.
>
> On 13 ožu, 16:11, Bill Freeman wrote:
>> I'm not sure that "django hosting" nails anything
On Mar 12, 11:55 pm, Tom Eastman wrote:
> Hey guys,
>
> I'm looking for deployment best practices for Django projects. Google
> searches seem to show countless numbers of them, many of them somewhat
> contradictory :-)
>
> So as a simple discussion point: I'm curious to know if lots of people
> us
On Mar 14, 2:31 am, Ken wrote:
> I'm struggling with how I should go about writing "pluggable" apps. I
> haven't found a satisfactory way of decoupling apps from a site and
> the primary sticking point is templates. I've combed through some
> discussions but have not found any that have helped.
Could you provide a bit more information about the error? The error
traceback would be useful in resolving the problem.
_Nik
On 3/14/2012 2:38 AM, Yasmine El_Badry wrote:
when i add this line in admin.py "list_display = ('question',
'pub_date')" , i get an error
--
You received this message
Please ignore my last email. My email client was slow to load the other
replies to this message.
_Nik
On 3/14/2012 8:50 AM, Nikolas Stevenson-Molnar wrote:
Could you provide a bit more information about the error? The error
traceback would be useful in resolving the problem.
_Nik
On 3/14/20
On 14/03/2012 16:40, bruno desthuilliers wrote:
> On Mar 12, 11:55 pm, Tom Eastman wrote:
>> Hey guys,
>>
>> I'm looking for deployment best practices for Django projects. Google
>> searches seem to show countless numbers of them, many of them somewhat
>> contradictory :-)
>>
>> So as a simple dis
1. User will be able to find each other
2. follow each other if they feel like (it's not necessary the second user
follow back)
3. followers will be able to see the users they are following updates on
their own wall.
On Wednesday, 14 March 2012 10:58:57 UTC+1, Tundebabzy wrote:
>
> What's your
I think you want to use port 587 if you are using TLS. We are using
port 587 successfully with gmail. In any case, Django 1.3.1 does this,
not the code you showed.
self.connection = smtplib.SMTP(self.host, self.port,
local_hostname=DNS_NAME.get_fqdn())
if self.use_tls:
Good morning all,
Can someone share with me its experience with Django application running on
MS SQL DB? I have a heavy application that i want to migrate to django.
Please can you share your experience with me in term of stability and
feasibility? How does django teamup with MS SQL.
Regards.
I've ran into in issue where jquery .load() will load extra content by
directly opening html file in a browser but if served through Django
devel server the jquery load() is ignored. Have no idea what could be
happening but I've seen someone use a django url in the .load() call
instead of pointing
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
Hi guys, I want this code to display list of friends of a user, list
of friends to add, after writing the codes and testing it out, I’m
getting this error:
TypeError at /userpage/
user_page() takes exactly 2 arguments (1 given)
Request Method: GET
Request URL:http://127.0.0.1:8000/userpage/
Dj
You have to check your
SESSION_COOKIE_DOMAIN in settings file if i.e pointing to "localhost" (if
not cookies will not properly set and hence login will not be allowed)
the best would be to use some host entry like example.com 127.0.0.1 and
then use that in SESSION_COOKIE_DOMAIN and for accessing
Try to create your superuser again:
./manage.py createsuperuser
On Wed, Mar 14, 2012 at 6:25 PM, vikalp sahni wrote:
> You have to check your
>
> SESSION_COOKIE_DOMAIN in settings file if i.e pointing to "localhost" (if
> not cookies will not properly set and hence login will not be allowed)
>
Hi coded,
You just mentioned the features of your app not the algorithm you are
using for getting updates to a wall.
For example algorithm for authenticating a user could be:
*if user name submitted exists in database, hash submitted password
*compare hash with hash saved in database linked with us
Hello,
I have a question which is based on the discussion here:
http://groups.google.com/group/django-users/browse_thread/thread/2333f5dc8d0674f0
I'm working on Windows 7 with the PowerShell. Python 2.7 and the path
to django-admin.py is stored in my PATH variable.
After creating a project I ca
hi ..
I created a superuser but still getting the same error
@vikalp: But it works for other projects with the same superuser name and
password
On Wed, Mar 14, 2012 at 10:57 PM, Denis Darii wrote:
> Try to create your superuser again:
>
> ./manage.py createsuperuser
>
>
> On Wed, Mar 14, 2012
On Wed, Mar 14, 2012 at 5:23 PM, coded kid wrote:
> Hi guys, I want this code to display list of friends of a user, list
> of friends to add, after writing the codes and testing it out, I’m
> getting this error:
>
> TypeError at /userpage/
> user_page() takes exactly 2 arguments (1 given)
Your vi
On Wed, Mar 14, 2012 at 5:35 PM, orschiro wrote:
> Hello,
>
> I have a question which is based on the discussion here:
>
> http://groups.google.com/group/django-users/browse_thread/thread/2333f5dc8d0674f0
>
> I'm working on Windows 7 with the PowerShell. Python 2.7 and the path
> to django-admin.p
Can you share your SESSION_COOKIE_DOMAIN setting. In your settings.py file.
Also, is there any error message 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 ge
Does it make any difference what directory I download and unzip Django
tarball on a Linux server?
Should it be nside the Python directory?
When I install, does it find its correct directory by itself?
thanks,
Alex Glaros
--
You received this message because you are subscribed to the Google Gr
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 sahni wrote:
> Can you share your SESSION_COOKIE_DOMAIN setting. In your settings.py file.
>
> Also, is there any error message which is displ
On Wednesday, 14 March 2012 09:21:29 UTC-7, Eli_West wrote:
>
> I've ran into in issue where jquery .load() will load extra content by
> directly opening html file in a browser but if served through Django
> devel server the jquery load() is ignored. Have no idea what could be
> happening but I'
465 is a port for gmail and code i provide is completely working...
but question is why django is not working with same settings...
On Wednesday, March 14, 2012 4:51:47 PM UTC+2, JJO wrote:
>
> I think you want to use port 587 if you are using TLS. We are using
> port 587 successfully with gmail.
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 sahni wrote:
>
>> Can you share
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 question in a specific poll.
4-add a choice to the poll.
5-remove a choice from a poll.
i don't have knowledg
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
Hello Alex.
Yes, when you install django using *"pip install django*" or "*python
setup.py install*" directly from the source, the code goes to the correct
directory inside of the "current" sites-packages.
To find out where your installed django code is placed you can simply run:
$ python -c "im
no i need a tutorial to help me do these tasks
On Wednesday, March 14, 2012 8:28:54 PM UTC+2, dummyman dummyman wrote:
>
> 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
>>
Hello Tom,
I'm aware of that. But do not get me wrong. I only use Power Shell to
run the commands, for nothing more.
it is simply more comfortable for me than CMD.
By running Python on Windows you mean the Python IDLE?
Regards
On Mar 14, 6:51 pm, Tom Evans wrote:
> On Wed, Mar 14, 2012 at 5:3
Hey folks,
I've finally got my app ready to put it online and got an account over at
webfaction. I've set everything setup and configured, but I missed a step
somewhere and not sure exactly which one. When I type in my url I get a
404 as shown below. However, the message appears as though it
I can't answer this now, but the support at webfaction is really good and
remarkably quick if no one here can get back to you quickly...
On Wed, Mar 14, 2012 at 3:22 PM, hack wrote:
> Hey folks,
> I've finally got my app ready to put it online and got an account over at
> webfaction. I've set e
I have gone with linode, and i setup the vps as i did with my
virtualbox. No surprises and i am alive now.
On 13 ožu, 16:11, Bill Freeman wrote:
> I'm not sure that "django hosting" nails anything down. It could mean
> whatever the provider wants it to mean, from "we won't kick you off
> for usi
On Tue, Mar 13, 2012 at 9:51 AM, siva <85s...@gmail.com> wrote:
> We are going to convert our tools to django frame work
>
> We have been converted our existing mysql database table to model.py
> but we cant access one table properties
>
> FYI : table is not having primary id what we have to do - r
On Wed, Mar 14, 2012 at 1:35 PM, Fady Kamal wrote:
> no i need a tutorial to help me do these tasks
that's exactly what was suggested: go to the Django site and do the
tutorial. incidentally, most of the exercises are about a poll
application
--
Javier
--
You received this message because yo
On Tue, Mar 13, 2012 at 4:25 PM, Furbee wrote:
> Aha! Very nice. As a sidebar, you said you pass the filter string back to
> the template so it can apply filtering on the new data set. This makes me
> think that filtering is being done on the entire data set from the browser,
> instead of the serv
On Tue, Mar 13, 2012 at 4:26 PM, Furbee wrote:
> Oh, you are filtering in the template, using Django, sorry. I thought you
> meant you pass it to the template and use jQuery to filter. My bad. :-)
I am filtering in the template using jQuery.
>
> Cheers
>
>
> On Tue, Mar 13, 2012 at 3:25 PM, Furb
Hi,
I'm having a django view, that works for GET and POST requests.
Basically une can view some data with GET
and add / moify data with a tiny form and POST
As the data can change I added a refresh button and this works fine.
The problem is just, that some users don't use it but insist on using
Gotcha, you are filtering the QuerySet in Django, returning to client, and
further filtering with jQuery. Makes sense now. :-)
Happy Coding!
Furbee
On Wed, Mar 14, 2012 at 2:11 PM, Larry Martell wrote:
> On Tue, Mar 13, 2012 at 4:26 PM, Furbee wrote:
> > Oh, you are filtering in the template,
Hi,
Title says it all.
What is the simplest way to get a list of models for which an admin
interface exists?
I'd also be interested in getting a list of all models for which no
admin interface exists.
--
You received this message because you are subscribed to the Google Groups
"Django users"
Got it. I forgot to add it to my python path in httpd.conf.
On Wednesday, March 14, 2012 3:26:43 PM UTC-4, William Ratcliff wrote:
>
> I can't answer this now, but the support at webfaction is really good and
> remarkably quick if no one here can get back to you quickly...
>
> On Wed, Mar 14, 20
I think Fady means a tutorial for creating forms (not in admin) for
editing polls. IIRC, the tutorial only covers editing polls via admin.
Fady: I would take a look at the forms section of the docs:
https://docs.djangoproject.com/en/1.3/topics/forms/. No tutorials, but
plenty of example code.
On 15/03/2012, at 5:32 AM, Gelonida N wrote:
> Hi,
>
> I'm having a django view, that works for GET and POST requests.
>
> Basically une can view some data with GET
> and add / moify data with a tiny form and POST
>
> As the data can change I added a refresh button and this works fine.
>
> Th
On 03/15/2012 12:35 AM, Russell Keith-Magee wrote:
>
> On 15/03/2012, at 5:32 AM, Gelonida N wrote:
>
>> Hi,
>>
>> I'm having a django view, that works for GET and POST requests.
>>
>> Basically une can view some data with GET
>> and add / moify data with a tiny form and POST
>>
>> As the data ca
Thanks Daniel and Karen,
Karen, I;'m not entirely sure what an unbound form is. :)
Anyway, this is my test code:
def test_appointment_form(self):
c = Client()
base_data = {
'name':'Foo name',
'slug':'foo-session',
'short_descr':'foo tagline',
On Wednesday, 14 March 2012 16:43:12 UTC-7, somecallitblues wrote:
>
> Thanks Daniel and Karen,
>
> Karen, I;'m not entirely sure what an unbound form is. :)
>
Then you must not have read the documentation[1], which goes into great
detail about bound and unbound forms. That's pretty much a prereq
On 15 March 2012 02:40, bruno desthuilliers
wrote:
> We dont - we use virtualenvs (no-site-packages), pip requirements, and
> git.
We do the same here. Our deployment looks something like
# mkvirtualenv --no-site-packages foo
# workon foo
# cdvirtualenv
# svn checkout bar
# pip install -r deploy
I don't use a setup.py for my _project_ deployment, but I do have a
setup.py for each of the apps that I use within a project (or at least
those that are 'reusable')
For project deployment, I use a fabfile that does the following:
* installs public keys onto the server (if necessary)
* creates
All installed ModelAdmin models:
>>> from django.contrib.admin import site
>>> site._registry.keys()
If you only got at this from `manage.py shell`, then you may need to import
your urls.py file first.
Getting those that are not registered is a bit longer:
>>> from django.db.models import get_
Thanks for the reply. It is loaded as an external script/file. That is
how it listed below right? Ive tried including it right in the file
too.
I think I know what you mean about using the url tag, I justed tried
this solution but with no results:
$(document).ready(function() {
$('.l
I just updated the jquery library so I shouldn't be that.
Ive got to be doing something wrong.. theres no way .load() simply
doesn't work with django.
On Mar 14, 8:39 pm, Eli_West wrote:
> Thanks for the reply. It is loaded as an external script/file. That is
> how it listed below right? Ive t
2012/3/14 infinitylX :
> 465 is a port for gmail and code i provide is completely working...
> but question is why django is not working with same settings...
Because, as JJO stated, the code you show is NOT what Django does when
establishing a secure email connection. The code you showed
establis
Can anyone help me with some questions I still have about this ? I
haven't had much experience with web programming, so trying to
understand this is kind of challenging.
1. I created the models Shawn suggested. And I'm now able to add a
question and possible answers to it in the admin area. Each p
Subject line says it all, and details, as always, are on the weblog:
https://www.djangoproject.com/weblog/2012/mar/14/14rc2/
--
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
Found that jquery ajax does not load correctly in my firefox install.
Stock jquery example wasnt working either so I ran it in a Windows IE
install.
On Mar 14, 8:59 pm, Eli_West wrote:
> I just updated the jquery library so I shouldn't be that.
>
> Ive got to be doing something wrong.. theres
72 matches
Mail list logo