Re: Problems with first program

2019-03-01 Thread Harryxon Ndegwa
The problem is with the indentation,the question_text field is wrongly indented.ensure you have a python friendly IDE or text editor On Fri, 1 Mar 2019 3:06 am bob gailer On 2/28/2019 6:08 PM, Edvani Pascoal wrote: > > hey guys I'm beginner on django I never worked with this framework > > before

Re: How to override the ModelAdmin "change" form ?

2019-03-01 Thread karim . atiki
Hi Mike, Thanks a lot for your feedback. Your situation is quiet different from mine, BUT the way you override change_view and the related template will certainly help me to achieve what I need. ...and getting rid of dirty and unnecessary ajax calls. I keep you posted. Thx. Karim Le vendredi

Re: Tutorials Needed

2019-03-01 Thread Jani Tiainen
Hi, A good starting point is Django Girls tutorial. It covers basic Python and Django with proper workflow and tool support and even deployment. On Thu, Feb 28, 2019 at 8:54 PM Madhav Rajmohan wrote: > Friends, > I am Madhav Rajmohan currently pursuing my Studies in > Computer Scie

Re: Tutorials Needed

2019-03-01 Thread priya . dutta
Hi Madhav Rajmohan, Try --- Tutorials for Advance python and django by durga prasad. I learnt it from there. On Friday, March 1, 2019 at 12:24:06 AM UTC+5:30, Madhav Rajmohan wrote: > > Friends, > I am Madhav Rajmohan currently pursuing my Studies in > Computer Science, I Need s

Re: Tutorials Needed

2019-03-01 Thread anushap762
Hi pradeep, Could u plz share django stuff if possible On Friday, March 1, 2019 at 11:29:37 AM UTC+8, Pradeep Singh wrote: > > bro i have django & python videos + materials > > On Fri, 1 Mar 2019 at 04:04, Motaz Hejaze > wrote: > >> Why dont you google whatever you want ؟؟؟!!! >> >> On Thu, 28

Models in admin view

2019-03-01 Thread raghav b
I have created two apps with the name candidate and another training. In the Django admin I want to create trainings and add candidates to that. I have created candidate and training and registered in the admin view. But for the last part I want to add multiple candidates into a training from ad

Re: looking for team members as my technical Advisory

2019-03-01 Thread Jai Singhal
I am interested On Friday, 22 February 2019 15:32:27 UTC+5:30, Nura Bash wrote: > > Good day, all am Nura bashir CEO of Teamlead enterprise Nigeria, am > looking for Technical advisory members for my project which am about to > start here in West Africa, is a plot project from 10 selected school

Re: 'URLPattern' Object is not a mapping

2019-03-01 Thread Tina Upadhyay
Please suggest On Fri, Mar 1, 2019, 8:22 AM Tina Upadhyay wrote: > This is working fine on my local machine but on server it is not.Can > anyone suggest that what can i do to fix this?? > > > On Fri, Mar 1, 2019 at 12:22 AM wrote: > >> umm >> >> >> On Tuesday, February 26, 2019 at 6:06:20 PM UT

Re: 'URLPattern' Object is not a mapping

2019-03-01 Thread Anh Nguyen
Try path or re_path instead of url On Fri, Mar 1, 2019 at 8:25 PM Tina Upadhyay wrote: > Please suggest > > On Fri, Mar 1, 2019, 8:22 AM Tina Upadhyay > wrote: > >> This is working fine on my local machine but on server it is not.Can >> anyone suggest that what can i do to fix this?? >> >> >> O

Re: Models in admin view

2019-03-01 Thread Andréas Kühne
Hi, You can look here: https://docs.djangoproject.com/en/2.1/ref/contrib/admin/#django.contrib.admin.InlineModelAdmin This is the functionality you want. Regards, Andréas Den fre 1 mars 2019 kl 14:05 skrev raghav b < raghav.balasubraman...@gmail.com>: > I have created two apps with the name

Re: How to override the ModelAdmin "change" form ?

2019-03-01 Thread karim . atiki
Hi Mike, I tried what you wrote by overriding the *self.change_form_template* but the form does not appear. Would you please provide me the content of your model admin *billing_payment_view ?* Thanks. Karim Le vendredi 1 mars 2019 00:06:40 UTC+1, Mike Dewhirst a écrit : > > On 28/02/2019 9:

Re: Tutorials Needed

2019-03-01 Thread Sam W
This YouTube Channel is really good Taught by Corey Schafer https://www.youtube.com/watch?v=UmljXZIypDc Python Django Tutorial: It has more than 17 videos about Django. On Thursday, February 28, 2019 at 12:54:06 PM UTC-6, Madhav Rajmohan wrote: > > Friends, > I am Madhav Rajmohan

Re: Problems with first program

2019-03-01 Thread Sam W
The error is very clear "IndentationError: expected an indented block" Use PyCharm IDE OR Visual Studio Code. Also, never use Keyboard Spacebar for indentation , always use Tab for indentation. TO solve your problem take the question_text to the beginning of the line then hit the Tab once. O

django vue javascript integration

2019-03-01 Thread Tomas Garijo
Hello group, I have a huge problems to integrate a vue javascript file in one template, only for testing, I'm searching on google but unfortuny I can't find anything. I have a simple html file and I want to load a code that is in other file, of course this files is a *.js file The best is att

Re: django vue javascript integration

2019-03-01 Thread Wira Bhakti
Maybe you must put your JavaScript file on your static directory... On Sat, 2 Mar 2019 00:36 Tomas Garijo Hello group, > > I have a huge problems to integrate a vue javascript file in one template, > only for testing, I'm searching on google but unfortuny I can't find anything. > I have a simple

Issue with ManyToMany Relations

2019-03-01 Thread Julio Cojom
I'm writting 2 models with ManyToMany Relations, first I make a model to list all my requirements class Requirements(models.Model): requirement = models.CharField(max_length=150) def __str__(self): return self.requirement So in this example my list of requirements will be: - Personal ID -

Re: Problems with first program

2019-03-01 Thread gauravsrivastava2k17
Doing copy-paste always lead to indentation fault.Try to copy the code on any editor and then indent 2nd statement by 4 or 8 space indent . On Friday, March 1, 2019 at 4:44:33 AM UTC+5:30, Edvani Pascoal wrote: > > hey guys I'm beginner on django I never worked with this framework before > and t

Re: Problems with first program

2019-03-01 Thread Julio Cojom
If you use sublime text, try this, right down corner, it says "Tab size" -> Convert Indentation to Tabs. [image: Sin título.png] El jueves, 28 de febrero de 2019, 17:14:33 (UTC-6), Edvani Pascoal escribió: > > hey guys I'm beginner on django I never worked with this framework before > and then

Re: Help with aggregates needed

2019-03-01 Thread Felix Carbonell
Hello, Simon. Thank you very much! Your solution worked like a charm!!! Best regards, Felix. El jueves, 28 de febrero de 2019, 0:09:35 (UTC-5), Simon Charette escribió: > > Hello Felix, > > month = ... > year = ... > Expenses.objects.filter( > year=year, > ).values( > area_name=F('area__n

Need Help in Django 2.1 (Over_view )

2019-03-01 Thread iakash95768
need help in Django version 2.1 regarding a project. -- 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 g

Re: Need Help in Django 2.1 (Over_view )

2019-03-01 Thread Jason
https://www.mikeash.com/getting_answers.html Might want to ask a question first -- 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...@googleg

Re: Why are foreign keys rewritten when adding related_name?

2019-03-01 Thread Simon Charette
Hello HM, I know that some changes have been made to avoid unnecessary foreign key rebuilds on some option changes. Are you experiencing this on 2.1 and 2.2 pre release? Simon Le vendredi 1 mars 2019 02:40:01 UTC-5, HM a écrit : > > I added "related_name" to an exiting ForeignKey and checked wi

Re: django vue javascript integration

2019-03-01 Thread Sam W
Why don't you use Django REST framework ? On Friday, March 1, 2019 at 11:36:37 AM UTC-6, Tomas Garijo wrote: > > Hello group, > > I have a huge problems to integrate a vue javascript file in one template, > only for testing, I'm searching on google but unfortuny I can't find anything. > I have a

Re: How to override the ModelAdmin "change" form ?

2019-03-01 Thread Mike Dewhirst
On 2/03/2019 2:08 am, karim.at...@gmail.com wrote: Hi Mike, I tried what you wrote by overriding the *self.change_form_template* but the form does not appear. Would you please provide me the content of your model admin *billing_payment_view ?* Sure. I recently asked for assistance here and p

Re: django vue javascript integration

2019-03-01 Thread Sam W
Why don't you use Django REST framework ? Try this : How to Integrate Vue.js with Django Rest Framework? https://www.techiediaries.com/django-rest-vuejs/ On Friday, March 1, 2019 at 11:36:37 AM UTC-6, Tomas Garijo wrote: > > Hello group, > > I have a huge problems to integrate a vue javascript f

Re: django vue javascript integration

2019-03-01 Thread Sithembewena L. Dube
The issue here appears to be that OP's browser cannot load the .js file as specified in the resource path. I would agree with Wira about checking what the path is and ensuring that the .js file is in the correct location. Kind regards, Sithembewena *Sent with Shift

using amazon aim to authenticate?

2019-03-01 Thread fenrir . sivar
I have a django site in develoment for data analysis (50-200 users world wide, all with amazon aim users accounts). django auth and django-allauth work like a charm, but I would like to know if it is possible to authenticate a django app against Amazon AIM users/roles intead of having to manage

Missing manage.py & settings.py

2019-03-01 Thread lujate
I pip installed a Django project, but it doesn’t have a manage.py or settings.py. I checked the repo on GitHub, and those files don’t exist there either. Is this an alternate way of doing a Django project that I’m not aware of? FWIW, the project is django-wiki. TIA -- You received this mes

Re: Missing manage.py & settings.py

2019-03-01 Thread Dylan Reinhold
The project django-wiki is not a django project, it is a django app. You include the app in your project. The settings file in the install document is your settings file from your django project. Dylan On Fri, Mar 1, 2019 at 5:13 PM lujate wrote: > I pip installed a Django project, but it doesn

Re: Missing manage.py & settings.py

2019-03-01 Thread lujate
Interesting. I never thought about doing a pip install of an application. I'm going to have to digest that one. 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 e