I have been working on a simple project. I use Django app server and
use it like:
##
C:\search\pysolr\webinterface>python manage.py runserver 8081
Validating models...
0 errors found
Django version 1.0.2 final, using settings 'webinterface.settings'
Development server
I'd rip out the non-db stuff from the form.save() method and put those
in an asynchronous queue. Then you can have another process which
polls the queue and performs these other tasks after the database
save.
So for example, you would do the following:
instance = form.save()
# push your task to
If you're using the Gmail web interface, you can restrict your search to
a date range. For example, searching for "from:g.statk...@gmail.com
to:django-users@googlegroups.com after:2011/11/1" would return all
messages sent by you to the Django users group since Nov of this year.
_Nik
On 12/2/2011
Hello,
Could you please delete all my posts. I look through them and copied
all needed information. I am not able to find the new questions among
old messages. After deletion the search with my name as a keyword will
give me the latest questions.
regards,
gintare statkute
--
You received this
I'm having problems with a save method taking too long and the user
thinking there is a problem with the website so they hit refresh which
causes the data to be submitted multiple times.
I have this in the view:
-
if form.is_valid():
form.save()
return
Consider the following situation. An Order and OrderLine model, one
Order can have multiple OrderLines against it. An order line contains
a part number and quantity. This data can enter the system in two ways
- by a normal model admin form and also through a batch process
importing order data from
Hi
I am deploying my project.my configuration is like this :-
WSGIScriptAlias /
/home/nikhil/workspace/CPMS-Source/careprep/apache/django.wsgi
ServerName localhost
Alias /media/ /home/nikhil/workspace/CPMS-Source/careprep/media/
Alias /static/
Hi,
I'm having issues once I apply POST data to a model formset. I have a
custom queryset applied to the form which works perfectly well when
the form is first generated.
If I have a validation error on the form the returned form seems to
drop the queryset and all records from the model are
Hi guys!
I didn't find anything suitable about it. I want to create a way to
the admin "add" button be affected by the changelist filter. Suppose I
have a list of blog posts and I filtered it by category:
.../admin/blog/post/?category=1
I want that the add button have the same query string:
On Fri, 2011-12-02 at 12:04 +, Tom Evans wrote:
> > you put your passwords and keys under version control?
>
> Where else would you put them? Not every VCS is wide open to view, our
> configuration VCS is highly locked down, but you need to record the
> information _somewhere_ in order to do
On Fri, Dec 2, 2011 at 6:54 AM, kenneth gonsalves
wrote:
> On Fri, 2011-12-02 at 11:29 +, Bjarni Rúnar Einarsson wrote:
>> (for example
>> as someone recommended earlier, skipping settings.py), you are IMO
>> asking for trouble and it is probably a sign that your
On Fri, Dec 2, 2011 at 5:30 AM, Benedict Verheyen
wrote:
> On 2/12/2011 11:14, Andre Lopes wrote:
>> Thanks for the replies,
>>
>> I'm using Nginx + Gunicorn + Supervisor + Virtualenv
>>
>> My goal is to deploy the code to the Production in a One Click Step. I
>>
On Fri, Dec 2, 2011 at 11:54 AM, kenneth gonsalves
wrote:
> On Fri, 2011-12-02 at 11:29 +, Bjarni Rúnar Einarsson wrote:
>> (for example
>> as someone recommended earlier, skipping settings.py), you are IMO
>> asking for trouble and it is probably a sign that your
On Fri, 2011-12-02 at 11:29 +, Bjarni Rúnar Einarsson wrote:
> (for example
> as someone recommended earlier, skipping settings.py), you are IMO
> asking for trouble and it is probably a sign that your processes are
> broken. :-)
you put your passwords and keys under version control?
--
On 30/11/2011 16:10, Benedict Verheyen wrote:
Hi,
I managed to create the standalone application, that's the good news.
I have some questions on testing the app below.
I ended up making a virtualenv for the application. Afterwards, I copied the
relevant files
(templates, view, urls, static)
I considered it very important to be able to keep all configurations
under revision control and have the ability to review the changes
between what is live, what is tested and what is in development. As
soon as you start leaving things out of revision control (for example
as someone recommended
Faster in what sense? Prototyping/development time, or run time?
If it's only a few MB, I see little reason to go as far as to writing it in
C. Unless you are performing the same import tens of thousands of times,
and the overhead in Python adds up so much that you get problems.
But, quite
On Thu, Dec 1, 2011 at 6:34 PM, Brian Craft wrote:
> I don't think so. It's not issuing a redirect. It's just serving the
> view, even though the url spec doesn't match.
>
>
I suspect your web server is collapsing the multiple slashes into a single
one, so that the
On Thu, Dec 1, 2011 at 6:09 AM, Michael wrote:
> [snipped description of makemessages for javascript failing to find some
> strings]
>
>
I am using Django 1.3.1,
>
> Well, I am happy again since I found out what the problem is. I write
> this here, because I havent
On 2/12/2011 11:14, Andre Lopes wrote:
> Thanks for the replies,
>
> I'm using Nginx + Gunicorn + Supervisor + Virtualenv
>
> My goal is to deploy the code to the Production in a One Click Step. I
> think I will read on Fabric to achieve this.
>
> More read also about Pip, I don't know how Pip
Hi Matt,
Did you check that port 11211 is open for connections on the remote server?
Regards,
Medhat
On Fri, Dec 2, 2011 at 2:49 PM, mattym wrote:
> Hi all -
>
> I am stuck on this one. Caching with memcached works when I reference
> the local box holding Django. But
Thanks for the replies,
I'm using Nginx + Gunicorn + Supervisor + Virtualenv
My goal is to deploy the code to the Production in a One Click Step. I
think I will read on Fabric to achieve this.
More read also about Pip, I don't know how Pip Freeze works.
If you have some more clues, you are
Hi,
The XML files are all configuration files, storing things like boolean
configuration flags, timeout values, username/passwords, IP addresses and
ports etc.
Some of them will maps somewhat logically to the relational model - for
example, they'll be a configuration for an application, as
On Fri, 2011-12-02 at 09:00 +, Andre Lopes wrote:
> How can I have the two environments(Development and Production) in
> Git? Should I use two new Branches(Development and Production). Please
> give me a clue on this.
have two branches (and do not put settings.py under version control)
>
>
On 2/12/2011 10:00, Andre Lopes wrote:
> Hi,
>
> I'm new to Django. I need to setup Git to deploy a Django website to
> the production server. My question here is to know what is the best
> way of doing this.
>
> By now I only have a Master branch. My problem here is that
> Development
Matt,
Do you have the port open on the public-facing side of the remote IP? In
other words, from another computer outside of that remote computer's
network, can you run "nmap -p 11211 xx.xxx.xxx.xx"? (obviously you'd need
nmap for this, but you get what I'm trying to imply)
--
Joey "JoeLinux"
I have models.py
title = models.CharField(max_length=80)
to this
ic_name= models.CharField(max_length=80)
I don't want to delete the field.
I have this option
class Migration:
def forwards(self, orm):
# Rename 'name' field to 'full_name'
On 02-12-11 01:39, Victor Hooi wrote:
Is there an easier way of achieving the main goal - editing XMl
configuration files through a Django interface? Things I should be aware of?
Depends a LOT on the kind of XML files. Are they the document kind,
mixed content all around? Like a HTML file?
Hi,
I'm new to Django. I need to setup Git to deploy a Django website to
the production server. My question here is to know what is the best
way of doing this.
By now I only have a Master branch. My problem here is that
Development environment is not equal to the Production environment.
How can
29 matches
Mail list logo