I want to push data to the browser over HTTP without killing my django/python application.
I decided to use a comet server, to proxy requests between my application and the client (though I still haven't really figured it out properly).
I've looked into the following engines:
orbited
cometd
ejabberd
jetty
Has anyone had any experience...
So, I am just starting to use jQuery with one of my Django projects, but I have a pretty noobie question.
In a django view you have to return an HttpResponse object from the view, but sometimes I don't need to return anything. For instance, I might just be updating the database via ajax and don't need to send anything back. So my ques...
I have a table with an IntegerField (hit_count), and when a page is visited (ie. http://site/page/3) I want record id 3 'hit_count' column in the database to increment by 1.
The query should be like: update table set hit_count = hit_count + 1 where id=3
Can I do this with the standard Django Model conventions? Or should I just write th...
Is there a way to develop Bi (Business Intelligence) solutions with Django? Therefore it should be possible to define models with more than one Datasource.
Is anybody out there who has experienced BI with Django?
How could it work ?
...
I am wondering what other people have experienced in creating a web service application, what language/framework is best suited for a beginner? Are there characteristics of the chosen language that make it better suited to programmers of a certain way of thinking that makes language XYZ appeal to particular programmers more?
I'm looking...
I have a Django Form that looks like this:
class ServiceForm(forms.Form):
option = forms.ModelChoiceField(queryset=ServiceOption.objects.none())
rate = forms.DecimalField(widget=custom_widgets.SmallField())
units = forms.IntegerField(min_value=1, widget=custom_widgets.SmallField())
def __init__(self, *args, **kwargs):
...
How can I easily resize an image after it has been uploaded in Django? I am using Django 1.0.2 and I've installed PIL.
I was thinking about overriding the save() method of the Model to resize it, but I don't really know how to start out and override it.
Can someone point me in the right direction? Thanks :-)
@Guðmundur H:
This won't w...
A quickie, and hopefully an easy one. I'm following the docs at http://docs.djangoproject.com/en/dev/topics/auth/ to get just some simple user authentication in place. I don't have any special requirements at all, I just need to know if a user is logged in or not, that's about it. I'm using the login_required decorator, and it's working ...
I am working on a Django app. One of my models, "User", includes a "gender" field, as defined below:
GENDER_CHOICES = (
('M', 'Male'),
('F', 'Female'),
)
gender = models.CharField(max_length=1, choices=GENDER_CHOICES, null=True)
I am using a ModelForm to generate a "new user" HTML form. My Google-fu seems to be fai...
UPDATE: I added a revised question after playing around with it two answers below.
Hi there,
If you're reading this you're probably familiar with Apache's mod_proxy and its ProxyPass function. Like many others, I have the issue of having an application that I can access from outside our internal network, but that application itself acc...
I like the very simple but still really elegant look and feel of the django admin and I was wondering if there is a way to apply it to my own application.
(I think that I've read something like that somewhere, but now I cannot find the page again.)
(edited: what I am looking for is a way to do it automatically by extending templates, i...
I'm starting a new web app project using Django and Pinax. I want to be able to give my users unique domain names like Wordpress and other sites do : username.wordpress.com. I'm not sure how to approach this with Django, since the url parsing logic (in urls.py) starts with the url AFTER the domain name.
More specifically, there will be ...
I have a line in a Django form :
{% for aa in my_array %}
which seems to be triggering this error :
Template error
Caught an exception while rendering:
Reverse for
'dev_env.profiles.views.viewPlan' with
arguments '('',)' and keyword
arguments '{}' not found.
What does this error message really mean?
I suspect that...
I just finished a Django app that I want to get some outside user feedback on. I'd like to launch one version and then fork a private version so I can incorporate feedback and add more features. I'm planning to do lots of small iterations of this process. I'm new to web development; how do websites typically do this? Is it simply a matte...
Hi stack overflow,
I'm trying to style a form with CSS. First of all I haven't seen a complete example, other than on the official documentation, so I would appreciate any blog entries, or articles.
Now on my form, a typical Charfield gets translated on html like this:
input type="text" name="artists" id="id_artists"
If my form cont...
I have a django model, which has a int field (with null=True, blank=True).
Now when I get a form submit from the user, I assign it like so:
my_model.width= form.cleaned_data['width']
However sometimes I get an error:
ValueError: invalid literal for int() with base 10: ''
I was wandering if it's the blank ('') string value that gets...
How to find out the summarized text for a given URL?
What do i mean by summarized text?
Merck $41.1 Billion Schering-Plough Bid Seeks Science
Link Descrption
Merck & Co.’s $41.1 billion purchase of Schering-Plough Corp. adds experimental drugs for blood clots, infections and schizophrenia and allows the companies to speed research o...
Template:
<form method="POST" action="/Bycategory/">
<input type="radio" name="andor1" value=1 checked>
<input type="radio" name="andor1" value=2>
<select id="pathology_id" name="pathology_id">
{% for pathology in pathology_list %}
<option value="{{ pathology.id }}">{{ pathology.pathology }}</option>
{% endfor %}
</selec...
Hopefully the last question in choosing an implementation language for this web app, but before pitching to anyone, we would like to know what your experiences are with maintaining an application.
We maintained (and since moved to a hosted solution) a web portal based on Perl.
The problem was that we had cases where Perl was updated o...
I am iterating through list of form fields. How do I identify the type of each field? For checkbox I can call field.is_checkbox...are there similar methods for lists, multiplechoicefields etc. ?
Thanks
...