I'm fairly new to web development, so please pardon the painfully newbie question that's about to follow.
My computer science class group and I are developing a web application for class, which is built in Python (under Django) and uses jQuery on the front end. It's primarily an Ajax-ified application, and passing data from the backend ...
In my Django project, I have a simple ticket system. When creating a ticket, certain users have the ability to assign the ticket to other users, and to email the ticket to other users as well (this is used as an FYI for those users, so they're aware of the ticket, even though it's not assigned to them.)
At the moment, the form for addin...
Dear Experts,
Since Django is a web development framework and Django is a CMS.
Is it possible to use them both together instead of a preferred database on Django like apache?
Maybe that question isn't clear enough.
Is it possible to use Django and Drupal simultaneously on the server side to provide a better web development solution?
...
I have no idea about this.
...
Each time I added some strings to a Django project, I run "django-admin.py makemessages -all" to generate .PO files for all locales.
The problem is even I only added 5 news strings, the makemessages command will mark 50 strings as fuzzy in .PO files which brings a lot of extra work for our locale maintainers.
This also makes the entire...
Hello All,
I am new to programming and I just jumped in to Django and I need a bit of help. I downloaded the generic reviews model off of Google code and I have no clue how to implement it. Can anyone pass along some guidance on how to make this work with a 5 star ratings system? I would appreciate it. Thanks.
...
My Django site has many templatetags directories, can I use Django templatetags on Google App Engine?
...
I have a site with about 60,000 pages that are getting placed in the sitemap, and which have a priority of 0.3. These are all really long pages that are rich in keywords.
I also have a few pages (like the about page), that need high priority, but which I've implemented with the django flatpages framework.
Is it possible for pages creat...
New to django and trying to setup django-registration 0.8 with recaptcha-client. I followed the advice posted in the answer to this question.
I used the custom form and custom backend from that post and the widget and field from this tutorial. My form is displaying properly with the recaptcha widget but when I submit it throws the error...
Last night I upgraded my machine to Ubuntu 10.04 from 9.10.
It seems to have cluttered my python module. Whenever I run python manage.py I get this error:
ImportError: No module named postgresql_psycopg2.base
Can any one throw any light on this?
...
my helloworld_tags:
from django import template
register = template.Library()
def show_profile():
return {"eee": '333'}
register.inclusion_tag("b.html")(show_profile)
my view:
def b(request):
return render_to_response('b.html')
my html:
{% load helloworld_tags%}
dsad {{ eee }}
but only show 'dsad' ,not show 'dsad333'...
MYMESSAGE = "<div>Hello</div><p></p>Hello"
send_mail("testing",MYMESSAGE,"[email protected]",['[email protected]'],fail_silently=False)
However, this message doesn't get the HTML mime type when it is sent. In my outlook, I see the code...
...
I am trying to attach a file with a contact form. My code looks like this for the form and view:
if request.method == 'POST':
form = UploadCVForm(request.POST, request.FILES)
if form.is_valid(): # All validation rules pass
subject = "CV Sent from BiztechAfrica"
sender = form.cleaned_data['email']
message ...
How do I run an update and select statement on the same queryset rather than having to do 2 queries, one to select the object and one to update the object?
The equivalent in SQL would be something like:
update my_table set field_1 = 'some value' where pk_field = some_value
...
How can I limit the type of files of the email attachments sent by my contact form to Doc, Docx, PDF?
...
How can I have a form with a FileField, where the uploaded file will not be saved but instead its text contents will be extracted and displayed?
...
I am designing a website in Python (using Django), and I need to sell things through it.
Can somebody help me with the source code to integrate the paypal-pro (do-direct payment) or else paypal-standard (express checkout)?
...
I have the following model
class DNS(models.Model):
domain = models.ForeignKey(Domain)
host_start = models.CharField(max_length=150, blank=True, null=True)
type = models.SmallIntegerField(max_length=1, default=0, choices=DNS_CHOICE)
value = models.SmallIntegerField(max_length=3, default=0, blank=True, null=True)
ip =...
Hi guys, I have an ajax view where I want to set a session variable like such:
def upload(request, *args, **kwargs):
request.session['test'] = 'test'
request.session.modified = True
print request.session.items()
I have another normal view something like this:
def advertise(request):
print request.session.ite...
In AppEngine, I have a form that prompts a user for a date. The problem is that when the clicks enter there is an error: "Enter a Valid Date"
How do I make my Form accept (for example) %d-%b-%Y as the date format?
Is there a more elegant way to accomplish this?
# Model and Forms
class Task(db.Model):
name=db.StringProperty()
due...