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 any
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 an
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 Comp
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 superuse
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 ho
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 an
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
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.
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 situation
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 = models.A
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,
>
> can
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 pro
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 th
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 was
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 R
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, the
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
individu
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
> "Django
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 thi
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
>an
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 downloa
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
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 al
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, 201
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
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 this
* 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
Hi Everybody,
I need help.
I want to perform search operation using calendars. I shall select two
dates i.e. max_date which shall not be more than the current date but can
be less and min_date, these two shall be the days range. The result fields
are: in_count, out_count, and dwell_time. The outp
28 matches
Mail list logo