Re: WYSIWYG/Rich Text Editor recommendations

2019-04-30 Thread Tim Johnson
* Joel Mathew [190430 17:29]: > Currently I'm using quill. It's easy to implement, and has all basic > features. Cool. Thanks for that Joel. > > I'd like to recreate the same functionality with django. I will need > > to be able to include embedded images. -- Tim Johnson http://www.tj49.com

Re: Issues with editing Django files?

2019-04-30 Thread Kevin Weinberg
Awesome, thank you very much! On Sat, Apr 27, 2019 at 4:19 PM André Toscano wrote: > Hi Kevin, > You shouldn't put your files inside the Program Files directory, it's > protected by the system. Instead, you should create a directory (my > suggestion) 'git' in your user's directory. > Inside

Re: WYSIWYG/Rich Text Editor recommendations

2019-04-30 Thread Joel Mathew
Currently I'm using quill. It's easy to implement, and has all basic features. Sincerely yours, Joel G Mathew On Wed, 1 May 2019 at 05:47, Tim Johnson wrote: > Using python 3.7.2 and django 2.1.5 > > Production is in Ubuntu 16.04 and prospective deployment is likely > to be CentOS with same

Re: Troubling installing Python 3 on my iMac

2019-04-30 Thread Alfredo Sumague
the safest way to use the latest python version (python 3.7.3 is the latest) is to create a virtual environment for python3, from there you install the latest python version, or you can use brew command to install python3. You can also install anaconda on your mac. Good luck. On Tue, Apr 30,

WYSIWYG/Rich Text Editor recommendations

2019-04-30 Thread Tim Johnson
Using python 3.7.2 and django 2.1.5 Production is in Ubuntu 16.04 and prospective deployment is likely to be CentOS with same python/django. I'm a retired python developer. I'd welcome recommendations and/or caveats regarding a stable WYSIWIG "plugin". Much is available on google, but it is

Re: Troubling installing Python 3 on my iMac

2019-04-30 Thread RLM
I guess you installed Python3.7.2 or similar If so you can call it in a terminal with python3 not just python. Open a terminal and type python3 it should start python 7.n is the operating system version. It is important to use pip3 and  use virtualenv to create the python 3 environment. use

Re: Troubling installing Python 3 on my iMac

2019-04-30 Thread James
Thanks Suresh! This did the trick. On Tuesday, April 30, 2019 at 7:36:30 AM UTC-6, Suresh Kannan wrote: > > Hi, > > Try these steps > > https://wsvincent.com/install-python3-mac/ > > https://stackoverflow.com/a/20868669/4037275 > > On Tue, Apr 30, 2019 at 8:39 AM James > > wrote: > >> I

Re: error while migrating

2019-04-30 Thread Kasper Laudrup
On April 30, 2019 3:07:05 PM GMT+02:00, RAJA MISHRA wrote: > django.setup() >NameError: name 'django' is not defined > >-- >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

error while migrating

2019-04-30 Thread RAJA MISHRA
django.setup() NameError: name 'django' is not defined -- 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

Re: Genetic Algorithm for generating timetable

2019-04-30 Thread Britto .
No one knows about genetic algorithm with Django On Mon, 22 Apr, 2019, 5:09 PM brittocj, wrote: > How to implement genetic algorithm in Django to develop a web application > for timetable generation? > > -- > You received this message because you are subscribed to the Google Groups >

Suggested model structure to achieve users selection of services/package

2019-04-30 Thread Gavin Boyle
I am building an application that offers different services, a user can select and purchase specific needed packages. I want to know the best way to create the model so that our users can select and once paid it sets the service to active. I have one model that holds information about each

Re: Simplifying code with multiple loops and logic, into queryset aggregates

2019-04-30 Thread Joel Mathew
Thank you Matthew. Excellent advise as always. When I started off with this project 5 months ago, I was a beginner to both django and python. I've come a bit along the journey. That customer model is the first model I created, and I was unaware of these conventions. By the time I realized that,

Re: More controls on createsuperuser

2019-04-30 Thread Joel Mathew
It's not the command that you should be worried about, but shell access to your system. If your database server is secure, shell access is restricted, and the server is also hardened reasonably, you should be relatively safe. Sincerely yours, Joel G Mathew On Tue, 30 Apr 2019 at 21:07, Mario

Re: More controls on createsuperuser

2019-04-30 Thread Mario R. Osorio
You'd only need editing the already existing management command and remove the possibility of using createsuperuser, but that is as useless as a ceiling fan on a motor bike.as anyone that already has access to the management code could just revert those changes. even continuing this thread is a

Re: More controls on createsuperuser

2019-04-30 Thread Chetan Ganji
RE :"*someone could still run createsuperuser *" How do you suppose this is going to happen unless they have access to your system? If you are really concerned about that?? django is basically a package. Just find the source code for the creatsuperuser admin command and delete that file if its

RE: Simplifying code with multiple loops and logic, into queryset aggregates

2019-04-30 Thread Matthew Pava
It was a little difficult to follow your message because the formatting is non-standard, but I think this might be what you’re looking for. Also, you should try to follow more Python coding conventions: models start with an upper case letter. Variables start with a lower case letter. And you

Re: Button Event

2019-04-30 Thread Joel Mathew
Templates expand into html. So you just write javascript like you normally do. You call javascript from within your templates by using something like: Here, I am using {% load static %} Sincerely yours, Joel G Mathew On Tue, 30 Apr 2019 at 12:05, Mayur Bagul wrote: > Thanks Ahmed, > >

Simplifying code with multiple loops and logic, into queryset aggregates

2019-04-30 Thread Joel Mathew
My models: class customer(models.Model): cstid = models.AutoField(primary_key=True, unique=True) insurance_number = models.CharField(max_length=100, blank=True, null=True) name = models.CharField(max_length=35) ageyrs = models.IntegerField(blank=True) class Admission(models.Model): id =

Re: Button Event

2019-04-30 Thread Suresh Kannan
Hi, Have a look at this https://stackoverflow.com/questions/298772/django-template-variables-and-javascript There are also several tutorials in youtube as well. On Mon, Apr 29, 2019 at 1:03 PM Mayur Bagul wrote: > Hello Community, > > Im looking for solution on Button Event. > I have

Re: Troubling installing Python 3 on my iMac

2019-04-30 Thread Suresh Kannan
Hi, Try these steps https://wsvincent.com/install-python3-mac/ https://stackoverflow.com/a/20868669/4037275 On Tue, Apr 30, 2019 at 8:39 AM James wrote: > I downloaded the file from the python website and went through the entire > installation process... accepting all of the default values.

Re: DateTimeField is in UTC but need IST standards

2019-04-30 Thread vineeth sagar
whenever USE_TZ=True is enabled, the timestamp is stored as a UTC object. This is standard practice, why? https://docs.djangoproject.com/en/2.2/topics/i18n/timezones/ Go through this, more than once. It'll be helpful. On Tue, 30 Apr 2019, 18:09 Sampath Reddy, wrote: > Hey guys, > > I am using

Re: Troubling installing Python 3 on my iMac

2019-04-30 Thread Aditya Singh
Kindly type python3 in the terminal and let me know the output :) On Tue, Apr 30, 2019, 6:10 PM James wrote: > I downloaded the file from the python website and went through the entire > installation process... accepting all of the default values. However, when > I went to my Terminal window

DateTimeField is in UTC but need IST standards

2019-04-30 Thread Sampath Reddy
Hey guys, I am using DjangoRestFramework as tech stack to develop backend API points for my application. I have a model with field created = models.DateTimeField(auto_now_add=True) in one of the models. I am using mysql as backend db, now the problem I am having is I am not able to figure out

Re: More controls on createsuperuser

2019-04-30 Thread Lipika Chandel
Hey, I am using Django 2.2 and I am stuck with the image upload functionality from admin site. I am not able to get the image on my template. Please help. Thanks & Regards LIPIKA CHANDEL On Tue, Apr 30, 2019 at 11:57 AM Jani Tiainen wrote: > I've have to agree that any attempt to limit

Troubling installing Python 3 on my iMac

2019-04-30 Thread James
I downloaded the file from the python website and went through the entire installation process... accepting all of the default values. However, when I went to my Terminal window and typed python, it still shows the older version: Python 2.7.10 (default, Feb 22 2019, 21:17:52) [GCC 4.2.1

Re: Django with Docker

2019-04-30 Thread Andréas Kühne
Hi Omer, I deploy using the latest version of the 3.7 python docker image. Then we add all of the requirements into the docker container - without a virtual environment. Because the docker image will only run the django application, there is no need for creating a virtual environment. If I need

Accessing single value from multiple values from databse

2019-04-30 Thread Mayur Bagul
Hello community, i have created three fields in my model Data - Two-wheeler - four-wheeler inside each field i have putted 5 values. now i wanted to display single random value from these two fields every time i click on button. and thats where im getting stuck. How to do this ? if

Re: Button Event

2019-04-30 Thread Mayur Bagul
Thanks Ahmed, can you please provide me resource to learn how to use java script and events in django Templates? Because im not getting proper resource how to use java script in django. Actually on one web page there will be one button after clicking on that button i want to merge another web

Re: More controls on createsuperuser

2019-04-30 Thread Jani Tiainen
I've have to agree that any attempt to limit superuser creation through manage.py is wrong solution to wrong problem. Even it's possible to attempt it it is as easy to circumvent. So do not give an access to manage.py to users that are not supposed to. Problem solved for good. ma 29. huhtik.