Re: Blue colored python file in Django Project structure.

2017-11-24 Thread Unnati C
Yup, This is pycharm IDE, and thanks for guidlines. On Friday, November 24, 2017 at 10:53:40 PM UTC+5:30, Dylan Reinhold wrote: > > This has nothing to do with django or python. This is your IDE using > colors to give you status information. Looking like you are using pycharm. > By default (whic

Re: Blue colored python file in Django Project structure.

2017-11-24 Thread Dylan Reinhold
This has nothing to do with django or python. This is your IDE using colors to give you status information. Looking like you are using pycharm. By default (which you can change) blue just means the file has been updated. https://www.jetbrains.com/help/pycharm/file-status-highlights.html Dylan On

Blue colored python file in Django Project structure.

2017-11-24 Thread Unnati C
hello, While working on Django project, suddenly one of my python file name in structure changed to blue. Till now it does not raise any error, but I am shock why it happened. Is anybody have idea regarding this change in django project directory.. -- You received this message because you ar

Re: Django project structure

2016-11-05 Thread YOGITHA A N
You would just have one App loyalty program. You will extend UserProfile from User and the other models would be Restaurant (name,branch location etc would be the attributes). Your structure would depend on what are the various functionalities you would like to add. On Monday, October 24, 2016

Re: Django Project Structure

2016-10-28 Thread Mike Dewhirst
On 28/10/2016 5:17 PM, Deep Shah wrote: I have read this, but still confused. What would be the best practices for this? Your email doesn't say what you have read ("this" above?) so the following recommendation may be a duplication. In any case I recommend Two Scoops of Django[1] for well rea

Re: Django Project Structure

2016-10-27 Thread Deep Shah
I have read this, but still confused. What would be the best practices for this? On Wednesday, October 26, 2016 at 12:05:19 PM UTC+5:30, Deep Shah wrote: > > I have a django project which is a loyalty program for restaurants. The > different database tables are- Users (and extending it with Us

Re: Django Project Structure

2016-10-26 Thread Vinicius Assef
See this link: https://docs.djangoproject.com/en/1.10/intro/tutorial01/#creating-the-polls-app The box "Projects vs app" can help you. On 26 October 2016 at 04:35, Deep Shah wrote: > I have a django project which is a loyalty program for restaurants. The > different database tables are- Users (

Django Project Structure

2016-10-25 Thread Deep Shah
I have a django project which is a loyalty program for restaurants. The different database tables are- Users (and extending it with User Profiles), Restaurant Company (the entire chain), Branches, Offers, Points (points which users get on visiting a particular restaurant) etc. How do I structur

Django project structure

2016-10-24 Thread Deep Shah
I have a django project which is a loyalty program for restaurants. The different database tables are- Users (and extending it with User Profiles), Restaurant Company (the entire chain), Branches, Offers, Points (points which users get on visiting a particular restaurant) etc. How do I structur

Re: Django Project Structure for mixins - best solution?

2016-06-01 Thread sevenrrainbow
Thank you Mike, I have a project related question also on this group, maybe you have time and take a look, please see the link below: Django Related Project Question

Re: Django Project Structure for mixins - best solution?

2016-06-01 Thread sevenrrainbow
Thank you Mike, I have a project related question also on this group, maybe you have time and take a look, please see the link below: Django Related Project Section

Re: Django Project Structure for mixins - best solution?

2016-06-01 Thread sevenrrainbow
rom$20another$20app$20and$20dynamic$20CBV/django-users/c8fKKiHTvAM/d3YMyk0DBgAJ> On Thursday, June 2, 2016 at 2:42:43 AM UTC+3, Mike Dewhirst wrote: > > On 2/06/2016 12:54 AM, sevenr...@gmail.com wrote: > > I seen multiple project structure for Django, but they didn't discu

Re: Django Project Structure for mixins - best solution?

2016-06-01 Thread Mike Dewhirst
On 2/06/2016 12:54 AM, sevenrrain...@gmail.com wrote: I seen multiple project structure for Django, but they didn't discuss in detail about structuring mixins. I see that some people use mixins.py , others utils folder. Taking in consideration that I have many mixins for views(generic

Django Project Structure for mixins - best solution?

2016-06-01 Thread sevenrrainbow
I seen multiple project structure for Django, but they didn't discuss in detail about structuring mixins. I see that some people use mixins.py , others utils folder. Taking in consideration that I have many mixins for views(generic login,authorization and more specific for the project

Re: Django project structure

2016-02-04 Thread André Meyer-Vitali
Hi Carl That's a great idea. So, I think the idea is to make the model flexible enough that it can be used in multiple contexts. The rest follows, accordingly. I'll give it a try. Thanks a lot for the inspiration! Cheers André On Thursday, 4 February 2016 22:05:28 UTC+1, André Meyer-Vitali w

Re: Django project structure

2016-02-04 Thread Carl Meyer
Hi André, On 02/04/2016 02:47 PM, André Meyer-Vitali wrote: > How would I modify my contest app so that it knows about multiple > contests? Database models (and queries), templates, forms, urls need to > be adapted, I guess. Is it sufficient to add an ID to the models such > that a specific month'

Re: Django project structure

2016-02-04 Thread André Meyer-Vitali
Thanks for your reply, Carl. How would I modify my contest app so that it knows about multiple contests? Database models (and queries), templates, forms, urls need to be adapted, I guess. Is it sufficient to add an ID to the models such that a specific month's data can be selected, for example?

Re: Django project structure

2016-02-04 Thread Carl Meyer
Hi André, On 02/04/2016 02:05 PM, André Meyer-Vitali wrote: > There's quite some confusion here about the best way to structure a > Django project. > > I'm developing a photography related web site with a news section (based > on the poll tutorial) and a contest app (among others). The contest ap

Django project structure

2016-02-04 Thread André Meyer-Vitali
Dear Django Developers There's quite some confusion here about the best way to structure a Django project. I'm developing a photography related web site with a news section (based on the poll tutorial) and a contest app (among others). The contest app should be reused every month for a new con

Re: Python path in new 1.4 project structure?

2013-03-25 Thread Shawn Milochik
On Mon, Mar 25, 2013 at 12:56 PM, Carsten Fuchs wrote: >> !!! PONTIFICATION ALERT !!! >> Don't do that. > > Uhh, about the first word, I didn't find it in any dictionary. > Is this somehow related to pope Franziskus? ;-) > >From http://www.thefreedictionary.com/pontificate: To express opinio

Re: Python path in new 1.4 project structure?

2013-03-25 Thread Carsten Fuchs
Hi Bill, thank you very much for your clear and detailed reply! All problems resolved. Am 22.03.2013 20:52, schrieb Bill Freeman: !!! PONTIFICATION ALERT !!! Don't do that. Uhh, about the first word, I didn't find it in any dictionary. Is this somehow related to pope Franziskus? ;-) So put

Re: Python path in new 1.4 project structure?

2013-03-22 Thread Bill Freeman
!!! PONTIFICATION ALERT !!! Don't do that. I believe that it has always been a goal of project structure that the directories on the python path be either in the default python places (/something/something/lib/python2.X/site-packages/ unless you're using a Debian provided pytho

Python path in new 1.4 project structure?

2013-03-22 Thread Carsten Fuchs
Hi all, I'm currently migrating my Django project that was still in the "old" project layout to the new default project layout as shown at My WSGI file was written as described at

Re: Project Structure - Lots of scattered custom views

2013-01-15 Thread Sanjay Bhangar
On Mon, Jan 14, 2013 at 8:16 PM, chad petzoldt wrote: >> It had occurred to me that Django wasn't the right tool for this job - >> not everything is a nail :) > > > I am embedding these files within a template, so they are not direct static > serves. But the content must be inserted within the tem

Re: Project Structure - Lots of scattered custom views

2013-01-14 Thread Amirouche
On Monday, January 14, 2013 3:46:54 PM UTC+1, chad petzoldt wrote: > > It had occurred to me that Django wasn't the right tool for this job - >> not everything is a nail :) > > > I am embedding these files within a template, so they are not direct > static serves. But the content must be inser

Re: Project Structure - Lots of scattered custom views

2013-01-14 Thread chad petzoldt
> > It had occurred to me that Django wasn't the right tool for this job - > not everything is a nail :) I am embedding these files within a template, so they are not direct static serves. But the content must be inserted within the template "as-is" from the filesystem. I suck at Javascript

Re: Project Structure - Lots of scattered custom views

2013-01-13 Thread Sanjay Bhangar
On Sat, Jan 12, 2013 at 12:04 AM, chad petzoldt wrote: > Sanjay, you were hitting things pretty close. I think that making sure slug > names match up to real *static* locations is the key. I am hosting with > Apache, and I thought about using some configurations to cheat a little bit, > and get so

Re: Project Structure - Lots of scattered custom views

2013-01-13 Thread Lachlan Musicman
It had occurred to me that Django wasn't the right tool for this job - not everything is a nail :) cheers L. On Sun, Jan 13, 2013 at 10:21 PM, Amirouche wrote: > I don't see where Django makes things easier for you at all. Why no just use > static files and include a menu via Javascript and serv

Re: Project Structure - Lots of scattered custom views

2013-01-13 Thread Amirouche
Héllo again, I don't see where Django makes things easier for you at all. Why no just use static files and include a menu via Javascript and serve all the thing like static files instead of using Django ? Regards On Friday, January 11, 2013 7:34:00 PM UTC+1, chad petzoldt wrote: > > Sanjay, yo

Re: Project Structure - Lots of scattered custom views

2013-01-11 Thread chad petzoldt
Sanjay, you were hitting things pretty close. I think that making sure slug names match up to real *static* locations is the key. I am hosting with Apache, and I thought about using some configurations to cheat a little bit, and get some of the static-files burden off of Django and let Apache

Re: Project Structure - Lots of scattered custom views

2013-01-08 Thread Amirouche
Héllo Chad, I'd like to help but I need more infos if you don't mind and is granted to provide them. On Monday, January 7, 2013 9:52:35 PM UTC+1, chad petzoldt wrote: > > Right now my project only has 2 apps that use a database (*real* apps). > The rest of the website is composed of many custom

Re: Project Structure - Lots of scattered custom views

2013-01-08 Thread Sanjay Bhangar
hey all, This seems to be an itch I've had to scratch myself in the past - let me see if I understand the situation vaguely correctly: You have a site that uses Django / database features for some things, but then you also have a lot of content that's being designed in some design tool and needs

Re: Project Structure - Lots of scattered custom views

2013-01-07 Thread Lachlan Musicman
> > There are some cases where they send me Indesign, but when I export to HTML > some of the layouts break. So then I have to manually rig it until I feel > its close enough (but then it turns out it wasn't, so I mod again). Some > imagemaps made from sliced up Photoshops with some cute rollover e

Re: Project Structure - Lots of scattered custom views

2013-01-07 Thread chad petzoldt
> > Tie them neatly together > There are some cases where they send me Indesign, but when I export to HTML some of the layouts break. So then I have to manually rig it until I feel its close enough (but then it turns out it wasn't, so I mod again). Some imagemaps made from sliced up Photoshops

Re: Project Structure - Lots of scattered custom views

2013-01-07 Thread Lachlan Musicman
On Tue, Jan 8, 2013 at 10:30 AM, Lachlan Musicman wrote: > On Tue, Jan 8, 2013 at 9:52 AM, chad petzoldt wrote: >> Right now my project only has 2 apps that use a database (*real* apps). The >> rest of the website is composed of many custom views, scattered all over the >> place. I am new to Djan

Re: Project Structure - Lots of scattered custom views

2013-01-07 Thread Lachlan Musicman
On Tue, Jan 8, 2013 at 9:52 AM, chad petzoldt wrote: > Right now my project only has 2 apps that use a database (*real* apps). The > rest of the website is composed of many custom views, scattered all over the > place. I am new to Django, and I havn't quite figured out how to structure > my projec

Re: Project Structure - Lots of scattered custom views

2013-01-07 Thread Mario Gudelj
There's no reason why you can't split these into separate apps, then create a templates directory and urls.py in each app folder, if this will help the site organisation. You'll have to make sure you add each app to settings.py, create __init__.py in every app folder. Just go for it. Get everyone w

Project Structure - Lots of scattered custom views

2013-01-07 Thread chad petzoldt
Right now my project only has 2 apps that use a database (*real* apps). The rest of the website is composed of many custom views, scattered all over the place. I am new to Django, and I havn't quite figured out how to structure my project directory just yet. I think what I should really be look

Re: http://www.deploydjango.com/ - A good resource for advice on project structure and deployment

2012-12-28 Thread r4m
This is a good one. Thank you for sharing. I have realised that there are many tutorials or should I call it snippets but nothing complete for a beginner like me :). Let me try this. Michael On Fri 28 Dec 2012 08:47:41 PM CET, Ryan Blunden wrote: > I stumbled across http://www.deploydjango.com/

http://www.deploydjango.com/ - A good resource for advice on project structure and deployment

2012-12-28 Thread Ryan Blunden
I stumbled across http://www.deploydjango.com/ while looking for info on running New Relic monitoring for Django 1.45 in pure WSGI. Looks like a good resource for people starting out with Django and looking for deployment guides. -- You received this message because you are subscribed to the G

Django project structure design

2012-06-12 Thread kesavanlcs
's will be captured in categories). In feature i will add my concepts in mother page up-to 10 to 20. So my question is: Which way I need to design the django project structure? I have two idea which one is best:- 1 >> Each category will be separate project, and mother page will be separate

Re: Advice on project structure

2009-03-11 Thread johan . uhle
in terms of the "django poster-child" site http://www.satchmoproject.com/ might be a good start and you may also want to have a look at http://pinaxproject.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Advice on project structure

2009-03-11 Thread Malcolm Tredinnick
ies to somewhere on your Python path, pointing to a settings file, using django-admin.py, etc. The reason __init__.py is in the project directory is because you asked django to create a "project" structure for you. Case A, above. That's an aid to beginners. There are about 400 different

Re: Advice on project structure

2009-03-11 Thread Matt Doran
Hi Malcolm, On Mar 8, 4:57 pm, Malcolm Tredinnick wrote: > On Sat, 2009-03-07 at 21:29 -0800, MattDoranwrote: > > A "project" is a convenient wrapper particularly for those starting out. > > Ultimately, what you need to run a site are a settings file, a root URL > Conf file and a bunch of applic

Re: Advice on project structure

2009-03-07 Thread Malcolm Tredinnick
On Sat, 2009-03-07 at 22:59 -0800, Matt Doran wrote: [...] > The whole > "startproject" thing and the default layout feels like it's forcing me > to make decisions that I'm not ready to (i.e. it's on page 1 of the > tutorial). Hmmm. "startproject" doesn't require you to make any decisions at al

Re: Advice on project structure

2009-03-07 Thread Matt Doran
Hi Malcolm, Thanks for the very detailed (and well thought-out) response! Greatly appreciated. On Mar 8, 4:57 pm, Malcolm Tredinnick wrote: > On Sat, 2009-03-07 at 21:29 -0800, Matt Doran wrote: > > > Is there a recommended best-practice approach to this type of > > project?  Or maybe even poi

Re: Advice on project structure

2009-03-07 Thread Malcolm Tredinnick
On Sat, 2009-03-07 at 21:29 -0800, Matt Doran wrote: > Hi there, > > I'm an experienced developer, but new to Django. I've experimented > with Django over the years, but I'm now in the process of planning a > medium sized Django app. We have an in-house support/email system > written in python

Advice on project structure

2009-03-07 Thread Matt Doran
Hi there, I'm an experienced developer, but new to Django. I've experimented with Django over the years, but I'm now in the process of planning a medium sized Django app. We have an in-house support/email system written in python, but it needs an overhaul. :) The application will become a sim

Re: Trying to understand project structure w/apps

2008-07-08 Thread Milan Andric
On Tue, Jul 8, 2008 at 3:53 PM, eddie <[EMAIL PROTECTED]> wrote: > > Hi guys+gals, > > I'm new to django, and I'm trying to wrap my head around a project > structure. I have a simple case that I'm thinking about, but can't > put together a reasonable m

Re: Trying to understand project structure w/apps

2008-07-08 Thread Norman Harman
eddie wrote: > Hi guys+gals, > > I'm new to django, and I'm trying to wrap my head around a project > structure. I have a simple case that I'm thinking about, but can't > put together a reasonable mental model for it. > > I've got a site that

Trying to understand project structure w/apps

2008-07-08 Thread eddie
Hi guys+gals, I'm new to django, and I'm trying to wrap my head around a project structure. I have a simple case that I'm thinking about, but can't put together a reasonable mental model for it. I've got a site that has a schedule component (events), and a news comp

Re: Project structure

2008-06-30 Thread Rajesh Dhawan
Hi, > > Is it possible for me to define this datetime-function just once and > without the need to include the 'current_date' variable to the > "render_to_response" function every time? > I would like some standard variables in my Django-project to be > available in all templates without the need

Project structure

2008-06-30 Thread Nianbig
Hi, I have a question regarding best-practice on django project structure, I think I´ll best explain it with an example: I have 2 views, first and second. I have the same function (which in this case is a datetime-function) that is exactly the same in both views. views.py: - from

Re: Problem with manage.py and shared app/project structure

2008-01-17 Thread [EMAIL PROTECTED]
Thanks Rock. Little less convenient from a file management standpoint, but it works. On Jan 17, 7:06 pm, Rock <[EMAIL PROTECTED]> wrote: > Put shared in site-packages right alongside django. Problem solved. --~--~-~--~~~---~--~~ You received this message because yo

Re: Problem with manage.py and shared app/project structure

2008-01-17 Thread [EMAIL PROTECTED]
I'm not sure that I see how this would be any different than adding the correct directory to the pythonpath. On Jan 17, 7:06 pm, Rock <[EMAIL PROTECTED]> wrote: > Put shared in site-packages right alongside django. Problem solved. --~--~-~--~~~---~--~~ You received

Re: Problem with manage.py and shared app/project structure

2008-01-17 Thread Rock
Put shared in site-packages right alongside django. Problem solved. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubsc

Re: Problem with manage.py and shared app/project structure

2008-01-17 Thread [EMAIL PROTECTED]
Yeah, that's the one I have. Like I said, everything works, 'cept manage.py. I can get by without it, but it'd be nice to have the sql functions and syncdb. On Jan 17, 12:57 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hmm, that was the only obvious thought that I had.  Just to make > sur

Re: Problem with manage.py and shared app/project structure

2008-01-17 Thread [EMAIL PROTECTED]
Hmm, that was the only obvious thought that I had. Just to make sure...you know that the _parent_ directory to "shared" is really the one that you want to be on your Python path, correct? On Jan 17, 12:38 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Jan 17, 12:29 pm, "[EMAIL PROTECTED

Re: Problem with manage.py and shared app/project structure

2008-01-17 Thread [EMAIL PROTECTED]
On Jan 17, 12:29 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Try creating a blank file named __init__.py in the directory named > "shared".  That way, Python knows that it's a module. > Thanks floguy, but I've done that already. I see that it's compiled, too. As near as I can tell, pyth

Re: Problem with manage.py and shared app/project structure

2008-01-17 Thread [EMAIL PROTECTED]
Try creating a blank file named __init__.py in the directory named "shared". That way, Python knows that it's a module. On Jan 17, 11:30 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I asked this before, but I think it got lost in another issue. For > those who've already seen it, I apolo

Problem with manage.py and shared app/project structure

2008-01-17 Thread [EMAIL PROTECTED]
I asked this before, but I think it got lost in another issue. For those who've already seen it, I apologize for being repetitive. What I'm trying to do is have a setup like: project1/ project2/ shared/ With shared holding a bunch of apps both project 1 and project 2 are using. I've got the pro

Re: Best project structure for multiple apps?

2006-05-31 Thread Eric Floehr
I should mention that the back-end processes and web-apps have been organically grown. The back-end processes and one web-app are python and are fairly tightly coupled (they use the same home-grown model classes), while the second web-app is currently Ruby on Rails. I'd like to get everything in

Best project structure for multiple apps?

2006-05-31 Thread Eric Floehr
Hi! I have an existing system that is somewhat unique and I am trying to figure out the best organizational structure for it within Django. I was wondering if anyone had any best practices or thoughts on how best to structure this. This is a system that currently does a lot of back-end processi