Re: Isolate Django apps in different Docker containers

2016-08-29 Thread Guillaume Dupin
Hello Christian, Thank you for your help. Concerning the first and second point, I would indeed have several Django app containers (one by functionnal services). But what about applications like Django "Admin" for example ? This application needs to be aware of the models to administrate so wo

Re: Isolate Django apps in different Docker containers

2016-08-29 Thread Guillaume Dupin
Hello Christian, Thank you for your help. Concerning the first and second point, I would indeed have several Django app containers (one by functionnal services). But what about applications like Django "Admin" for example ? This application needs to be aware of the models to administrate so wo

Hi, i'm new to django i need some mini project which contain atleast 4 page for go through how it works

2016-08-29 Thread rajeshkmr9583
Hi, i'm new to Django i need some mini project which contain at least 4 page for go through how it works.. Thanks -- 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

Re: Hi, i'm new to django i need some mini project which contain atleast 4 page for go through how it works

2016-08-29 Thread rajeshkmr9583
And the UI should created by your self. not the admin site because i've already created with help of admin but i need a new look of how it works with Customized(newly created) UI.. Thanks On Monday, 29 August 2016 16:56:33 UTC+5:30, rajeshkmr9583 wrote: > > Hi, > > i'm new to Django i

Re: Hi, i'm new to django i need some mini project which contain atleast 4 page for go through how it works

2016-08-29 Thread Asad Jibran Ahmed
You could create a simple blogging application. Allow the user to create, edit, and delete blog posts. And have a list page (home page) to show those posts and a details page for the post. Asad Jibran Ahmed http://blog.asadjb.com On Mon, Aug 29, 2016 at 3:29 PM, rajeshkmr9583 wrote: > And the

Re: Hi, i'm new to django i need some mini project which contain atleast 4 page for go through how it works

2016-08-29 Thread 'voger' via Django users
Have a look at this guys youtube channel https://www.youtube.com/user/CodingEntrepreneurs/playlists There he has some video playlists. The most interesting for you are trydjango1.9 and trydjango1.8 where he builds two different websites. I think they fit perfectly with what you asking. If you pr

Re: Django template iterating through two dictionaries/variables

2016-08-29 Thread Aaron Weisberg
Thanks ludovic, I'm trying to write that python code presently- would I have to also change the context? how would that look? Thanks On Fri, Aug 26, 2016 at 10:40 AM, ludovic coues wrote: > You could write a filter [1]. It would be used like {{ > scores|from_player:person }} and look like tha

Re: Django template iterating through two dictionaries/variables

2016-08-29 Thread Asad Jibran Ahmed
No need to change the context, since the variable names the example here uses are the same as your existing context. It should work as long as you remember to {% load APPNAME %} your filters in the template first. ​ Asad Jibran Ahmed http://blog.asadjb.com On Mon, Aug 29, 2016 at 6:50 PM, Aaron

Re: Django template iterating through two dictionaries/variables

2016-08-29 Thread Asad Jibran Ahmed
Since the example given by Ludovic uses the same variable names that are already present in your context, you won't need to change anything in the context dictionary. Just use {% load APP_NAME %} on top of the template file to load the filter and you should be good to go. On Monday, August 29,

Re: Django template iterating through two dictionaries/variables

2016-08-29 Thread Aaron Weisberg
Thanks Asad. Is that why I'm getting errors saying invalid filter name? Also I'm having a difficult time thinking my way through the workflow. I'm defining a new function that requires scores(my URL based dictionary) and person (my database dictionary). The function then asks to return the scores

Re: Django template iterating through two dictionaries/variables

2016-08-29 Thread Asad Jibran Ahmed
No problem. The most probable reason why you're getting the invalid filter error is because you forgot to load the filters. Your explanation of the workflow is correct, with one small correction. The template will handoff the search for the correct *Score* to the filter function. Whatever the f

Re: Django template iterating through two dictionaries/variables

2016-08-29 Thread Aaron Weisberg
I hate to be thick but could you explain to me how to load the filters and also how the template should look with the updated function? Solving this will unlock a ton of functionality for my app. Thanks, Aaron On Aug 29, 2016 12:34 PM, "Asad Jibran Ahmed" wrote: > No problem. The most probabl

Part 5 of creating firat django app

2016-08-29 Thread Matt Maloney
I am at - test a view, and I just instantiated a client. I try doing the command response = client.get(reverse('polls:index')) -- but with a long traceback, the console ultimately says that it can't find polls/question_list.html, which I see nothing instructing me to make in the tutorial. Than

Re: AWS ElasticBeanstalk update without modifying Django wsgi.conf

2016-08-29 Thread Ronaldo Bahia
Thanks a lot. I will test it and let you know the results. Best regards *Ronaldo Bahia* 11 3280 6971 11 963 622 581 *Materiais gratuitos para o RH:* - Melhorando Indicadores no RH

Re: Part 5 of creating firat django app

2016-08-29 Thread ludovic coues
Do you mind to share the long traceback ? 2016-08-29 20:44 GMT+02:00 Matt Maloney : > I am at - test a view, and I just instantiated a client. I try doing the > command response = client.get(reverse('polls:index')) -- but with a long > traceback, the console ultimately says that it can't find > po

1.7.9 deployment stubbornly won't create a test database

2016-08-29 Thread Adam Hirsch
I've been handed a fairly large and built-up django 1.7.9 installation with several dozen pre-existing in-house modules and a lot of history. For some reason, any attempt to * manage.py test * any of the existing modules runs tests against the live database specified in *DATABASES['default'] *

Re: Django template iterating through two dictionaries/variables

2016-08-29 Thread Asad Jibran Ahmed
Unfortunately without knowing your project layout I can't show you exactly how to load the filters, but you should give this a read: https://docs.djangoproject.com/en/1.10/howto/custom-template-tags/. Your template should look like the example from Ludovic. Asad Jibran Ahmed http://blog.asadjb.c

A tricky query in one to many relationship - atleast for me:)

2016-08-29 Thread Web Architect
Hi, I am looking for an elegant and efficient mechanism to have a query filter or a solution for the following one to many relationship model. Please note the following is just an illustration of the models - hope it should provide what I am looking for: class A(models.Model): name = models.C

Re: A tricky query in one to many relationship - atleast for me:)

2016-08-29 Thread Mike Dewhirst
On 30/08/2016 4:33 PM, Web Architect wrote: Hi, I am looking for an elegant and efficient mechanism to have a query filter or a solution for the following one to many relationship model. Please note the following is just an illustration of the models - hope it should provide what I am looking