Re: Question about form_valid: how to automatically set multiple fields when users input data via CreateView supported form?

2019-04-29 Thread Atsunori Kaneshige
Hi, Britto, Sorry for my late reply. Thank you so much! I learnt a lot. Looks like you created a function called get_context_data and put all comment data from Comment database into context with key 'comments'. You then called 'comments' in the template. Now I don't need reated_name='comment'

What should i do to build a django app on any linux distro which one can use by one-click install

2019-04-29 Thread Meow
It seems appimage can do these, but i don’t know how to do it. Is there anyone can help me or give me some advices? Thank you. -- 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,

Re: Autoreloader looping Django 2.2

2019-04-29 Thread Ramiro Morales
Hi Dan, On Fri, Apr 26, 2019 at 11:00 AM Dan wrote: > Forgot to mention that this is on a mac osx host with ubuntu 16 virtualbox > guest, I'm not sure that has something to do with it? > > On Thursday, April 25, 2019 at 10:06:59 PM UTC+2, Dan wrote: >> >> I'm using Django 2.2 on a new project

Re: Help, I need to convert my python code into Secure API using Django

2019-04-29 Thread Vamsi
Hi Chetan, Thank you very much. I’ll go through these resources and let you know how it went. Sent from my iPhone > On Apr 29, 2019, at 2:58 PM, Chetan Ganji wrote: > > Linux is very easy to get started, as a web developer, all the code that you > write will end up on a linux server

Re: Help, I need to convert my python code into Secure API using Django

2019-04-29 Thread Chetan Ganji
Linux is very easy to get started, as a web developer, all the code that you write will end up on a linux server eventually. It would be very good idea to start learning linux immediately. You will require that skill in the near future. None would want to pay the price of windows server when Linux

Re: Help, I need to convert my python code into Secure API using Django

2019-04-29 Thread Vamsi
Hi Chetan, Thanks for the quick reply. Linux is not an option for me as I am not well versed in it. Is it possible for you to give me some resource for windows. Thanks and regards, Vamsi Sent from my iPhone > On Apr 29, 2019, at 1:06 PM, Chetan Ganji wrote: > > Hi Vamsi, > > For No 1 - You

Displaying Random data on Template

2019-04-29 Thread Cesar Mojarro
Have you sampled your code in a python ide environment to see if your code works? On Monday, April 29, 2019, Mayur Bagul wrote: > Hello Community, > > I'm facing one issue that is i have 3 variables each of which consisting > list of values. > what i was trying to do is that i have 3

Re: More controls on createsuperuser

2019-04-29 Thread nimbiotics
Anyone capable of running the createsuperuser command on your project most probably has access to all and any of the project's files, specially your config file. Actually this user is either a valid su or you are in serious trouble because the security of your server sucks or you gave access

Re: help

2019-04-29 Thread Daniel Roseman
On Monday, 29 April 2019 17:45:48 UTC+1, Tosin Ayoola wrote: > > hello Nick, > so is there a way i can get pass this, cause i really need to get a link > to show the list of the most read information, > >> >> Nick told you exactly what to do. assignment_tag has been replaced by simple_tag. --

Re: Button Event

2019-04-29 Thread Ahmed Ishtiaque
Hi Mayur, I'm not sure what you mean by "there is no javascript in django" because I use it all the time. JS is not tied to Django in any way since its operations are usually client-side and so it can be used inside your Django templates. In any case, you can have JS code in your template inside

Re: Help, I need to convert my python code into Secure API using Django

2019-04-29 Thread Chetan Ganji
Hi Vamsi, For No 1 - You can create a REST API using django or (django + django rest framework). For No 2,3,4 - For production you have to user Apache + modwsgi or nginx + gunicorn (or other wsgi compliant server for python). I dont suggest windows for production. If you plan to use it on linux,

Button Event

2019-04-29 Thread Mayur Bagul
Hello Community, Im looking for solution on Button Event. I have situation like mention below : i have one button check temperature. after clicking on it; it should display dummy temperature on template from view.py i wrote. but im not getting how i can do this because there is no javascript

Re: help

2019-04-29 Thread Tosin Ayoola
hello Nick, so is there a way i can get pass this, cause i really need to get a link to show the list of the most read information, On Mon, Apr 29, 2019 at 4:10 PM Nick Sarbicki wrote: > Hi Tosin, > > The assignment tag was deprecated in 1.9 and removed in 2.0. > > The details for this are

Re: help

2019-04-29 Thread Tosin Ayoola
i want to creat an assignment template tag to allow me create a link on a project i am working on but rite now it seems i can't use the django assignment template tags, but now the tag has been removed in django version > 2 is there a way i can do it. On Mon, Apr 29, 2019 at 4:08 PM Britto .

Help, I need to convert my python code into Secure API using Django

2019-04-29 Thread Vamsi tangutoori
Hi Everyone, I am new to django and python programming. I developed a facial recognition module in python using boto3 library. Currently I sued flask to create an API and test in my development environment but to move it to production i need to use django. Can you please help or point me in the

Re: Django with Docker

2019-04-29 Thread Nick Sarbicki
Hi Omer, Docker actually has docs on this itself: https://docs.docker.com/compose/django/ - Nick On Mon, Apr 29, 2019 at 4:19 PM Omer Ozsakarya wrote: > Hello all, > > How are you deploying your Django applications with Docker? > 1- Which packages, libraries are you writing into docker

Re: Unable to create the django_migrations table (ORA-00907: missing right parenthesis)

2019-04-29 Thread tossouwisdom
Bonjour tout le monde et merci pour vous différents retours. J'ai donc pris une la version 1.11 de django et 6.4.1 de cx_Oracle car ne pouvant pas utiliser la version 12 d'Oracle. Je travaille sur une base qui est utilisée en prod. Ensuite après avoir lancé la commande migrate je me suis

Django with Docker

2019-04-29 Thread Omer Ozsakarya
Hello all, How are you deploying your Django applications with Docker? 1- Which packages, libraries are you writing into docker compose file? 2- Are you also using a virtual environment with docker? Thanks -- You received this message because you are subscribed to the Google Groups "Django

Re: help

2019-04-29 Thread Nick Sarbicki
Hi Tosin, The assignment tag was deprecated in 1.9 and removed in 2.0. The details for this are here: https://docs.djangoproject.com/en/2.0/releases/1.9/#assignment-tag Basically it has been replaced with simple_tag. You should read the docs for that here:

Re: help

2019-04-29 Thread Britto .
Cannot understand your problem. Please describe it clearly or share the code zipped. Regards Britto On Mon, 29 Apr 2019 at 19:44, Tosin Ayoola wrote: > sup guys, i'm kinda lost and need help, i'm working on an electronic > noticeboard and course ware web app using django and i'm trying to

help

2019-04-29 Thread Tosin Ayoola
sup guys, i'm kinda lost and need help, i'm working on an electronic noticeboard and course ware web app using django and i'm trying to have a section on the notice board to show the listed of the most read news, using the assignment tag, but with django ver 2.2 it seems not to be available, can

Re: about abstract user

2019-04-29 Thread Andréas Kühne
Hi, This is not a good way of building a Django user. To your questions: 1. AbstractUser is a class that implements some of the methods / properties that Django expects on a User model. See here : https://docs.djangoproject.com/en/2.2/topics/auth/customizing/#substituting-a-custom-user-model The

about abstract user

2019-04-29 Thread sagar ninave
class User(AbstractUser): tweet = models.ManyToManyField(Tweet, blank=True) follower = models.ManyToManyField(settings.AUTH_USER_MODEL, blank=True) pass class Tweet(models.Model): tweet = models.TextField() favourite = models.ManyToManyField(settings.AUTH_USER_MODEL,

Displaying Random data on Template

2019-04-29 Thread Mayur Bagul
Hello Community, I'm facing one issue that is i have 3 variables each of which consisting list of values. what i was trying to do is that i have 3 variables from every variable which have list of value i should get any random value and print it to Template web page. but it doesn't printing

Re: models and forms

2019-04-29 Thread Nelson Varela
What do you have so far. show some code or explain what you have so far On Monday, April 22, 2019 at 1:40:06 PM UTC+2, Shereyne Casimsiman wrote: > > I am current making a project and django is very new to me, I've been > following tutorials but it did not answer my concern.. > My project is to

Re: More controls on createsuperuser

2019-04-29 Thread Sooraj Parakkattil
Sometimes during development usually this particular suggestion might be unnecessary. This might be useful in the case of production. As in if DEBUG =True then the creation of the superuser should need approval from the existing admins. Regards, *S P R* On Mon, Apr 29, 2019 at 9:05 AM JJ

Re: How to ask questions on Django

2019-04-29 Thread sachinbg sachin
Am writing backend for Android app how can I send password reset link through email without using forms On Sun, Apr 28, 2019, 9:34 PM Larry Martell http://www.catb.org/~esr/faqs/smart-questions.html > > > On Sun, Apr 28, 2019 at 12:01 PM John Bagiliko < > john.bagil...@aims-senegal.org> wrote: >