My company is at the very end of development process of some (awesome:)) web application. This app will be available as a online service for (hopefully) some significant number of users. This is our biggest django release so far and as we are preparing to release some question about deployment have to be answered.
Q1: how to determine r...
hi there,
i want to make a 'timeline' containing all mini blog posts from a user, and all the user he is following.
I want all these posts to be ordered by date..But how can i 'join' the posts, because the 'following' relation is in another table, so i have to make some kind of a join between the two tables, for taking the data.
For no...
while using groovy with grails i used to use the bootstrap file to add some data such as the primary user of the application or other things that need to be initialised for the first time when the application is started , how do i achive the same in django?
...
Hi,
I am a little bit stuck. I have been commanded to do an exersice which
states in one of the steps to associate a method with an instance (as
I understood), here a closer explanation:
I have a model, wich have different methods, each of them execute some
tests given that model's instance fields.
Then, I have another model which ...
I am trying to write a quiz application.i have the follwing model.
class Question(db.Model):
question=db.StringProperty(required=True)
answer_1=db.StringProperty(required=True)
answer_2=db.StringProperty(required=True)
answer_3=db.StringProperty(required=True)
answer_4=db.StringProperty(required=True)
correct_ans...
I have Django set up on my server at http://stevencampbell.org/
I want to be able to run WordPress at stevencampbell.org/blog/
I'm running all my Python and Django files through Fast_CGI (only Django option on my server). My .htaccess file looks like this:
AddHandler fastcgi-script .fcgi
RewriteEngine On
RewriteRule ^(/media.*)$ /$1 [...
Hi
I'm trying to find a xml-interpret function (like the simplexml_load_string) in Python, but with no success :/
Let's say I have xml in a string
my_xml_string = """
<root>
<content>
<one>A value</one>
<two>Here goes for ...</two>
</content>
</root>"""
To read an value in php I would normaly do something...
With the following code:
from django.db import models
class Blogpost(models.Model): pass
class Vote(models.Model):
question = models.ForeignKey(Blogpost)
TYPE_CHOICES = (
('up', 'Up-Votes'),
('dn', 'Down-Votes'),
)
type = models.CharField(max_length=2, choices=TYPE_CHOICES)
What is the best way to obt...
I been having hard times configuring Apache 2.2 for Django app that will run on a local area network. I been through a lot of tutorials and documentations still can not get it working for me
My question is there a straight , step by step method for configuring Apache 2.2 for windows
i ready to try anything that will work
thank in adva...
I am now developing my site using django. In integrating my site with paypal, I use pluggable application "http://github.com/johnboxall/django-paypal". Although the document is very clear for "Using PayPal Payments Pro (WPP)", but I still have some questions, especially the relationship between "returnurl" and "confirm_template".
#views...
QUESTION
Please be kind I'm new to pytnon and appengine platform.
Application uses django-norel, and I dont have access to model (and really I'm not that python proficient to backtrace how models are saved).
I have my bulkloader.yaml file autogenerated by appcfg.py create_bulkloader_config.
Problem is entities numeric ID's are be...
I want to be able to edit all data on one page. How can i achieve this ? Should i modify my models? If so, then how should i modify them?
class TextStyle(models.Model):
color = models.CharField(_("color"), max_length=7)
style = models.CharField(_("style"), max_length=30)
typeface = models.CharField(_("typeface"), max_lengt...
I have an extended UserProfile for registering new users. My user_created function connects to signals sent upon registering basic User instance and creates new UserProfile with extended fields from my form. Here's the code :
from registration.signals import user_registered
from accounts.forms import ExtendedRegistrationForm
import ac...
I'm trying to write a simple custom storage system.
I need only that my storage system duplicate files from a few FTP servers.
Subclass of storage looks like:
from django.core.files.storage import Storage
from settings import MEDIA_ROOT, MEDIA_URL
import ftplib
import os
class FTPStorage(Storage):
"""FTP Storage class for Djang...
Running Django unit tests is far too slow. Especially when I just want to run one test but the test runner wants to create the entire database and destroy the whole thing just for that one test.
In the case where I have not changed any of my models, I could save oodles of time if Django would not bother trying to create and destroy the...
I'm trying to use this expression. And It tell me that: storbinary() takes at most 4 arguments (5 given)
ftp.storbinary("STOR " + os.path.basename(name), StringIO(content_str), "rb", 8*1024)
I can see here only 4 argument. where is hidden 5th argument. I'm confuse.
...
as described in http://developers.facebook.com/docs/api#publishing i want to make a post request to update a users status .How do i make post requests in python / django?
...
I'm trying setup costum storege. Looks like all is ok. But there is the next error:
Exception Type: ViewDoesNotExist
Exception Value:
Could not import app.views. Error was: cannot import name FTPStorage
Exception Location: C:\BitNami DjangoStack\apps\django\django\core\urlresolvers.py in _get_callback, line 134
...
I am currently working on a website using, django, my problem is that the site has to be ported from using php scripts to using django.
Though the site content has been well maintained by the previous maintainer, I have to use markdown for files that already having a HUGE amount of content in them, like the main page is divided into thre...
Hi All,
I find myself continually sifting through the net to keep up with Python/Django/web development trends and news. Does anyone recommend any good news sites that focus on web development or they Python community? For example, what new Django modules are popular or interesting new jQuery plugins, etc. Just curious to know how ...