Re: Deployment Conundrum

2013-06-04 Thread Daniel Braun
Thanks for your answer, I actually follow you on twitter so it's funny to 
get some "face time".

Anyway, what I mean by replicating Heroku is specifically the deployment 
workflow - not the scaling side of things.
I have personally already set up deployment on a physical linux box we have 
here in the office using fabric, git, nginx and gunicorn, so I have at 
least some idea on what I want to achieve.

I guess the main problem is getting fabric to work with Windows, which to 
my knowledge, isn't possible.
Does Windows have a remote access protocol similar to SSH, through which I 
can run deployment commands?

On Sunday, June 2, 2013 11:17:22 AM UTC+3, Russell Keith-Magee wrote:
>
>
> On Sun, Jun 2, 2013 at 3:37 PM, Daniel Braun <dbra...@gmail.com
> > wrote:
>
>> Hello,
>> I'm working in a non-profit organization. It's a design archive and 
>> research institute based in Israel.
>> We're developing (me actually, the only developer) a Django website to 
>> replace our ASP/MS-Access horrible system.
>>
>> To the point - the only server I am allocated by the IT department is a 
>> Windows 2008 server.
>> I'm currently working with Heroku, and needless to say, deployment is a 
>> breeze.
>> (Would love to stay with it, except I don't have the budget to pay for 
>> heroku/s3)
>>
>> I realize I can run apache as a server, or even IIS. But how do I go 
>> about replicating heroku's deployment process (with git)?
>>
>
> Well, it depends what you mean by replicating Heroku.
>
> If you just mean "getting a website up and running", then all you need is 
> a git checkout of your source code, a web server configuration that points 
> at that checkout, and a Python environment that can be called from the web 
> server. I can't provide much specific advice here, but mod_wsgi 
> configuration should be mostly standard regardless of the operating system, 
> and it's not *that* hard to get working. Google has plenty of hits for 
> "Django deployment windows"; you should be able to cobble something 
> together from those links.
>
> Once you've got your configuration working, redeploying should just be a 
> matter of refreshing your git checkout and restarting/reloading the web 
> server. It might be worthwhile writing some scripts to automate the update 
> procedure, but worse case, it should only be a couple of commands.
>
> If you want all the nifty auto scaling stuff that Heroku does -- that's 
> another issue entirely. *That* sort of functionality means you need to have 
> a deep understanding of your hosting environment. I don't think there are 
> going to be any simple solutions here.
>
> Is it viable to install a Ubuntu server virtual machine on top of the 
>> Windows installation? Does anyone have experience with it?
>>
>
> Is it possible? Yes. Will it perform as well as a native web server 
> running on the native platform? No. Will the different between native and 
> VM matter? That depends.
>
> Whether this is a viable approach really depends on how comfortable you 
> are with Unix vs Windows, and how much traffic you're actually going to 
> serve. If you're going to serve a *lot* of traffic, then you probably want 
> to avoid virtualisation - every little bit of extra performance will help. 
> However, if you're only serving a handful of pages to a small internal 
> group, then the overhead doesn't really matter -- If you've only got three 
> people visiting your site, you could probably run the site on a Commodore 
> 64 and still have CPU cycles to spare :-)
>
> Yours,
> Russ Magee %-)
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Deployment Conundrum

2013-06-04 Thread Daniel Braun
Thanks, I'm aware of that option (I rent a Linode box myself), but 
according to my boss there's absolutely no way to pay for external web 
services. (i.e Heroku, Amazon S3)

On Monday, June 3, 2013 1:56:06 PM UTC+3, Wim Feijen wrote:
>
> Hi Daniel,
>
> I would definitely recommend ordering a small VPS (costs: maybe 10 euros a 
> month) and go from there.
>
> Wim
>
> On Sunday, 2 June 2013 09:37:11 UTC+2, Daniel Braun wrote:
>>
>> Hello,
>> I'm working in a non-profit organization. It's a design archive and 
>> research institute based in Israel.
>> We're developing (me actually, the only developer) a Django website to 
>> replace our ASP/MS-Access horrible system.
>>
>> To the point - the only server I am allocated by the IT department is a 
>> Windows 2008 server.
>> I'm currently working with Heroku, and needless to say, deployment is a 
>> breeze.
>> (Would love to stay with it, except I don't have the budget to pay for 
>> heroku/s3)
>>
>> I realize I can run apache as a server, or even IIS. But how do I go 
>> about replicating heroku's deployment process (with git)?
>> Is it viable to install a Ubuntu server virtual machine on top of the 
>> Windows installation? Does anyone have experience with it?
>>
>> I apologize if this post is confusing, I am myself a little confused...
>>
>> Thanks, Daniel
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Deployment Conundrum

2013-06-02 Thread Daniel Braun
Hello,
I'm working in a non-profit organization. It's a design archive and 
research institute based in Israel.
We're developing (me actually, the only developer) a Django website to 
replace our ASP/MS-Access horrible system.

To the point - the only server I am allocated by the IT department is a 
Windows 2008 server.
I'm currently working with Heroku, and needless to say, deployment is a 
breeze.
(Would love to stay with it, except I don't have the budget to pay for 
heroku/s3)

I realize I can run apache as a server, or even IIS. But how do I go about 
replicating heroku's deployment process (with git)?
Is it viable to install a Ubuntu server virtual machine on top of the 
Windows installation? Does anyone have experience with it?

I apologize if this post is confusing, I am myself a little confused...

Thanks, Daniel

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Using a drop down list as widget for filter in admin

2013-04-10 Thread Daniel Braun
Thanks Ibrahim, I was searching google for a solution and was sent here - 
it was simply perfect. (should be merged to be honest!)

On Sunday, September 23, 2012 4:46:46 PM UTC+2, Ibrahim Lawal wrote:
>
> Here's how I achieved it.
>
> {% load i18n %} 
> {% if choices|length > 9  %}
> {% blocktrans with title|escape as filter_title %} By {{ filter_title 
> }} {% endblocktrans %} 
> 
>   onchange="window.location=this.value"> 
> {% for choice in choices %} 
> {{ choice.display|escape }} 
> {% endfor %} 
>  
> 
> {% else %}
> {% blocktrans with title as filter_title %} By {{ filter_title }} {% 
> endblocktrans %}
> 
> {% for choice in choices %}
> 
> {{ choice.display }}
> {% endfor %}
> 
> {% endif %}
>
> The else option is simply a duplication of djangos own admin/filter.html
>
>
>
>
>
> On Friday, 1 February 2008 10:55:21 UTC+1, Julien wrote:
>>
>> Hello there, 
>>
>> The list_filter meta attribute lets you add filters in the admin 
>> interface. It's great, but the problem is that the field I'm filtering 
>> (a ForeignKey) has thousands of values, so I get thousands of links 
>> put in the right end side of the page. 
>>
>> Is it possible to have a drop down list or something that compresses 
>> the space taken by that list of values? 
>>
>> Thanks a lot! 
>>
>> Julien
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.