Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Chris Angelico Newsgroups: comp.lang.python Subject: Re: creating multiple python Django projects in Windows environment Date: Tue, 22 Mar 2016 10:07:38 +1100 Lines: 49 Message-ID: References: <414504a3-4439-413d-97f4-852563770003@googlegroups.com> <94e713c3-583e-4537-8eb6-19fe1611e54f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de G3HCwoS6eiNK3CJMeOuJFQXDijMJ5JdPBPT/LWmA7JsQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Django': 0.03; 'received:209.85.223': 0.03; 'cc:addr:python-list': 0.09; 'subject:Windows': 0.09; '22,': 0.09; 'development)': 0.09; 'namespace': 0.09; 'python': 0.10; 'django': 0.13; 'subject:python': 0.14; 'apps': 0.15; 'server,': 0.15; 'things.': 0.15; '(django': 0.16; '(office)': 0.16; '2016': 0.16; 'build?': 0.16; 'chris,': 0.16; 'different,': 0.16; 'do)': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:projects': 0.16; 'virtualbox': 0.16; 'wrote:': 0.16; 'app': 0.16; 'basically': 0.18; 'flexibility': 0.18; "shouldn't": 0.18; 'test.': 0.18; 'windows': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'am,': 0.23; '(or': 0.23; 'needed.': 0.23; 'sat,': 0.23; 'header:In-Reply-To:1': 0.24; 'install': 0.25; 'linux': 0.26; 'chris': 0.26; 'separate': 0.27; 'message- id:@mail.gmail.com': 0.27; 'accidentally': 0.29; 'understand,': 0.29; 'environment': 0.29; 'server.': 0.30; 'code': 0.30; 'call.': 0.30; 'strongly': 0.30; 'everyone': 0.31; 'post': 0.31; 'run': 0.33; 'source': 0.33; 'similar': 0.33; 'quickly': 0.34; 'structure': 0.34; 'tue,': 0.34; 'server': 0.34; 'received:google.com': 0.35; 'could': 0.35; 'clear': 0.35; 'something': 0.35; 'but': 0.36; 'too': 0.36; 'should': 0.36; 'project': 0.36; 'received:209.85': 0.36; 'possible': 0.36; 'depends': 0.36; 'loaded': 0.36; 'modules': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'environment.': 0.37; 'received:209': 0.38; 'someone': 0.38; 'application': 0.39; 'where': 0.40; 'some': 0.40; 'easy': 0.60; 'your': 0.60; 'making': 0.62; 'staff': 0.63; 'saturday,': 0.63; 'different': 0.63; 'to,': 0.63; 'march': 0.64; 'due': 0.65; 'mar': 0.65; "they're": 0.66; 'production': 0.67; 'choose': 0.68; 'click': 0.76; 'funds': 0.77; '(web': 0.84; 'choices:': 0.84; 'chrisa': 0.84; 'etc,': 0.84; 'utc-4,': 0.84; 'to:none': 0.91; 'directories,': 0.91; 'urls,': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc; bh=S8421z5r21jWJQBkPJAzyscC+sJdG28o7+q1LVEUk8g=; b=KFjWpDkM9JGCJda8rZddd0i9FNMqeYoYs999wP9roq7EfNgb1c8dHc13q0ChLd9KQv fM6iTYPUIWYYvrF3g00glyl8THniXQsWUIlBqXRz9tIWskZe9SJyzJ/1TULveKtJNSxK GbOici8o4bRWHCn7VnOrJrN9c4B1QbNVbefRLfpN1NmwbgKAJ4IHSdGMpiTXENmiA1gt 7X1toEf/CGsbk7np+F8B/E3bTyeUElTw5AcPQKlLH39oB78q6tNNQyo1eXG4QwGsbG4i cV7WAmtY8HXYeRHtJLsvoPIpPmWTMuvHJ1FI3GyTOzFvzAzWr4ZXWzZjtKNg5f8N0GAc N9mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:cc; bh=S8421z5r21jWJQBkPJAzyscC+sJdG28o7+q1LVEUk8g=; b=c0vgO0zbtyO6Rurb9B/MjvtxHvPBBaU9d7tuLWEFXJTUGFsZ4QE1u1JXFd8Z6+J+mn FOzM4+BKxarwyAR+pY+XFB9pAhdUuvD7NImrP3FTaKXgxjacehDukUHQbCSO2T+qOo+b 2lZwRoJOKMICnGddO0065zSOm5oybFdj/pwfxZ9KsCEYBikyv2WfNDbn11LbMiqLpu+c h17aewqIG19W9gdK3G9wNNanAd7rb14Vwbz8vLaiQK9B8yG1K8dS1DtnavKop4+HdasG dNHyEsn4unc7jbJeoNa8Mv9jg7jmKYvaCuRY5Pu/qae+kk0WXm3+MR2+Nxe9mE8HX6Xs oVMA== X-Gm-Message-State: AD7BkJKeIQqs9uw18x9Sp9BS6GtfEEdVrihfdZlquMvmYT8/+VMu555eQKa7RnSa4bva/TEOu8d6lP2tc5Zk1A== X-Received: by 10.107.169.105 with SMTP id s102mr4684071ioe.19.1458601659059; Mon, 21 Mar 2016 16:07:39 -0700 (PDT) In-Reply-To: <94e713c3-583e-4537-8eb6-19fe1611e54f@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:105413 On Tue, Mar 22, 2016 at 8:02 AM, jogaserbia wrote: > On Saturday, March 19, 2016 at 3:16:53 AM UTC-4, Chris Angelico wrote: >> On Sat, Mar 19, 2016 at 6:04 AM, jogaserbia wrote: >> > Can someone please give me ideas on what I should read about (or pay someone to do) that would enable me to create a basis on which multiple Python (web and non-web) applications can be access by staff in a windows environment. >> > >> >> You basically have two choices: >> >> 1) Run the Python app on some central server, and have your staff >> access it using something they already have (eg a web server) >> >> 2) Have them all install Python and run it locally. >> >> Your call. :) >> >> ChrisA > > Hi Chris, > > To be clear I understand, do I create a Django project and create separate Django apps for each different application I want to build? > > That way, I create a main website page (Django in the back), and have everyone click through to the application needed. Hmm, that depends how you want to structure things. If the different applications are conceptually different, you can keep them completely separate by making them separate Django projects; that would give you the flexibility to put them onto independent URLs, post the source code to one of them on GitHub and the source to the other on SourceForge, etc, etc, etc. Alternatively, you can simply have a single Django application, and then namespace everything using directories, so people would access http://blah.blah/app1/whatever and http://blah.blah/app2/whatever to choose what they're doing. > Would I look into using vagrant and virtualbox to create an environment that would then be loaded onto my linux (home development) server and my windows (office) production server to ensure they are the same? > You shouldn't need to, but I would strongly recommend having a "Staging" server which is as similar as possible to your production server. It's all too easy to accidentally do something in a Windows-specific or Linux-specific way if you don't test. (Note that "Staging" could be actually on the same hardware as "Production", if you don't have spare funds for a duplicate. Keep your modules separate using venv, and access them on different URLs; just have some place where you can quickly check your code under a production-like environment prior to actually bringing everything down due to a one-character bug.) ChrisA