Re: How to Cache a function in Django?

2020-07-14 Thread carlos
Thank!

On Mon, Jul 13, 2020 at 10:24 AM Kasper Laudrup 
wrote:

> Hi Carlos,
>
> On 13/07/2020 17.58, carlos wrote:
> > Hi, i need cache a function in Django
> > example
> >
> > def function1(request):
> >  some code ...
> >  return dict
> >
> > i know cache_page(50 * 10) but this functions in not a page is only a
> > function
> > return a dictionary.
> >
>
> What you most likely mean, is that you're looking for how to cache a
> function in Python. Have a look at the cached_property or lru_cache
> decorators.
>
> https://docs.python.org/3/library/functools.html
>
> Just remember caching can be tricky.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/f21fe357-a409-81d1-ef08-f587a9e17c1f%40stacktrace.dk
> .
>


-- 
att.
Carlos Rocha

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAM-7rO2icSDDgAnF4R7SV1iM_DvAwtLYJBw94Hize-G1Ni5kxA%40mail.gmail.com.


Any way to avoid querying for request.user on every request?

2020-07-14 Thread Asaduzzaman Sohel

When any user login my Django web application, I want to user_id, 
user_group, user_type in session. Because I wanna avoid querying 
request.user on every request for web page faster. So, I saved this and I 
would like to pass this parameter User.objects.get(pk=request.session.get(
'user_id'))
But when I pass login(request, user)  instead of  login(request, user) I 
got an error TypeError at /account/login/Object of type 'User' is not JSON 
serializable
 Basically this error comes from this line
 request.session['login_user'] 
=User.objects.get(pk=request.session.get('user_id'))

I want to pass login(reqeust, user=my_session_user), how can I achieve this 
for my less query?



if user:

request.session['user_id'] = user.id
request.session['user_group'] = User.objects.get(pk=user.id).groups.last()
.name
request.session['user_type'] = User.objects.get(pk=user.id).is_superuser
login_user = User.objects.get(pk=request.session.get('user_id'))
# request.session['login_user'] = login_user

# get ip from client
current_user = get_object_or_404(User, pk=user.pk)
client_ip = get_client_ip(request)

current_user.last_login_user_ip = client_ip
current_user.last_login_user_country = get_country_by_ip(client_ip)
current_user.save()

logger.info(str(user) + " attempt to login.")
login(request, user)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/98f2f149-48a4-4331-bbda-0dbd183f233an%40googlegroups.com.


NoReverseMatch if "url" template tag not used with app_name

2020-07-14 Thread strang
I understand what you are trying to explain.

I have used name=“home” for home view. I’m using urls.py for my app(main 
URLs.py to route me to my apps urls.py, app urls.py contains path(‘’, 
HomeView.as_view(), name=‘home’)

But when I try to reference this url in templates ({% url ‘home’%})I get 
NoReverseMatch error.

However if I use {% url ‘post:home’ %} it works

post is my app name

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/21f80c94-2e63-4ce7-a2d6-8ef634565f9do%40googlegroups.com.


Re: Django support

2020-07-14 Thread Luciano Martins
Hi, there is a BR site only for jobs that python and someone might be 
interested ... www.pyjobs.com.br

Em segunda-feira, 13 de julho de 2020 09:11:41 UTC-3, lakshmi priya 
escreveu:
>
> I’m in need of a tutor who is more than 4 years experienced in Django and 
> who can help me with real time projects with Django framework 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/39195922-5832-4f6d-8013-765cb9d494c0o%40googlegroups.com.


Re: Error on unauthorized access problem in django

2020-07-14 Thread Jorge Gimeno
django.contrib.staticfiles by design will serve static files only when
debug is set to False.  It's not designed to serve static files in a
production environment.  See here:
https://docs.djangoproject.com/en/3.0/howto/static-files/deployment/

-Jorge


On Mon, Jul 13, 2020 at 5:11 AM Anjana Balakrishnan <
anjanabalakrishnan1...@gmail.com> wrote:

> Hi,
>   i am in trouble with django unauthorized access problem.i have a django
> project and it is now ready for production,so i added debug=False in
> settings.py file.When i change the debug=false, unauthorized access issue
> is solved,but the problem is webpages can't access all css and js
> files(Static folder,)how can i solve tbis issue?Attached a document showing
> this problems.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2edb567b-0909-4381-a8d7-9634ae688df5o%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANfN%3DK9ud%2BTHqfkB2Jyc4F76c1Q1ov8Ghkt7MqXAOjia0HXZFw%40mail.gmail.com.


NoReverseMatch if "url" template tag not used with app_name

2020-07-14 Thread Exactly musty
You are using django url, so it should be the same name you gave your url in 
your URLs.py e.g path('',homeview.as_views, name='home-page') 

So if I want to call this url in my template I will use the django url which is 
{% url 'home-page' %}.

You will have to check your url and see if what you named it matched what you 
wrote in your django template 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b4937809-5dc7-47e0-bc4e-77b9d15628a6o%40googlegroups.com.


Sending email from contact form to all superuser.

2020-07-14 Thread Exactly musty
You will use django send_mail in your views,just go to the django doc,and 
search for send_mail

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2d2b0aad-223c-4cf9-be4b-a8067c9ddd48o%40googlegroups.com.


Re: I need django project

2020-07-14 Thread Hamza Mirchi


On Tuesday, July 14, 2020 at 11:07:20 PM UTC+5, Hamza Mirchi wrote:
>
> Hi, I'm HamzaLachi
>
> I worked on Django, celery
>
> and also I developed an API in Django, I can also make your Django website 
> more secure
>
> I have also done some project
>
> I need some Django paid task or project
>
> contact:
> itshamzamir...@gmail.com
>

I need remote work
 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/300f43fe-fe1e-4204-a491-99a03fe02d22o%40googlegroups.com.


I need django project

2020-07-14 Thread Hamza Mirchi
Hi, I'm HamzaLachi

I worked on Django, celery

and also I developed an API in Django, I can also make your Django website 
more secure

I have also done some project

I need some Django paid task or project

contact:
itshamzamir...@gmail.com

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a154fccd-9b82-46c9-9e67-3d728c0a4663o%40googlegroups.com.


NoReverseMatch if "url" template tag not used with app_name

2020-07-14 Thread strang

I just want to confirm if there has been a change in Django3.x

In Django2.x i could write something like
**
where 'home' is a url pattern in one of my apps(not the main url file)

But I get NoReverseMatch when I use the same in Django3
I have to use this convention
**

Which one is correct, for Django3.x?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e9c3c66d-3c47-4325-9e5b-0a9d5ff531fdn%40googlegroups.com.


Sending email from contact form to all superuser.

2020-07-14 Thread Ngazetungue Muheue
Hi everyone , please help me on how to send email to all superuser of my 
system from the contact form on my template.

Example: I have Contact form and i want the message send by users through 
the form to be save into django model (admin)  and at the same time the 
same message should go to the email the superuser registered with or belong 
to the superuser. 

If i am not clear let me know..

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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e2bbc288-a4ba-4251-b6c1-3a977e049fceo%40googlegroups.com.


Re: Expire session after N minutes of inactivity

2020-07-14 Thread RANGA BHARATH JINKA
https://pypi.org/project/django-session-timeout/

On Tue, Jul 14, 2020 at 10:36 PM Dan Davis  wrote:

> Does anyone know of a django pypi package that implements something like
> this so that I can steal the code?  I know I need to think about "what does
> inactivity mean" in the era of SPA and Ajax, but a module could save me
> some time.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5150060e-5795-4ed4-bd13-863237553b29o%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m3141hHKF4%2BBmv_T5qvROV2oePqaioqto-rw0NkPvGs2O_A%40mail.gmail.com.


Expire session after N minutes of inactivity

2020-07-14 Thread Dan Davis
Does anyone know of a django pypi package that implements something like 
this so that I can steal the code?  I know I need to think about "what does 
inactivity mean" in the era of SPA and Ajax, but a module could save me 
some time.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5150060e-5795-4ed4-bd13-863237553b29o%40googlegroups.com.


Re: want to take input of datetimefield from my template

2020-07-14 Thread Kasper Laudrup

Hi Chander,

On 14/07/2020 17.08, chander shekhar wrote:

Anyone help me



I did try to give you some advice on something you could do.

Did you try that? How did it work out?

It's very hard for anyone to help you if you're not providing any 
information.


Kind regards,

Kasper Laudrup

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6f1dae69-b0fa-9119-fdde-f632c01d28e6%40stacktrace.dk.


Re: DB Router default issue

2020-07-14 Thread Roger Gammans
In allow_migrate () where you have 'return False', I've ended up (in my
otherwise very similar router) with:
return db != 'mydb'
You certainly don't want return False as that will disable all
migrations outside of your app_label, you want to return True,only in
the cases when the db is not your one; so everything else flows
normally.  But globally returnning False disables the  migrations in
the normal case as you have found.
There are some awkward corner cases ; around mutli databases; some of
which are probably a bug - (for instance  - all migrations whether
relevant or not are recorded in both databases)  But I don't think
that's your problem here.

On Tue, 2020-07-14 at 09:35 -0700, JJ Zolper wrote:
> Has anyone experienced this same thing? Anyone have a lot of
> experience working with multiple databases using a router? It's just
> a little unclear how I'm supposed to better control it.
> 
> On Friday, July 10, 2020 at 12:03:46 PM UTC-4, JJ Zolper wrote:
> > Hello, I am trying to prevent models in my api app from migrating
> > into the default database but I'm confused about the router. It
> > seems every time I run migrate even with the router it continues to
> > migrate.
> > 
> > #apps.pyfrom django.apps import AppConfig
> > 
> > class ApiConfig(AppConfig):
> > name = 'api'
> > label = 'api'
> > 
> > 
> > #settings.pyDATABASE_ROUTERS =
> > ['myproject.dev_db_router.APIRouter',]
> > 
> > DATABASES = {
> > 'default': {
> > 'ENGINE': 'django.db.backends.sqlite3',
> > 'NAME': os.path.join(BASE_DIR, 'default.sqlite3'),
> > },
> > 'mydb': {
> > 'ENGINE': 'django.db.backends.sqlite3',
> > 'NAME': os.path.join(BASE_DIR, 'mydb.sqlite3'),
> > },
> > }
> > 
> > #dev_db_router.pyclass APIRouter:
> > """
> > A router to control all database operations on models in the
> > api application.
> > """
> > route_app_labels = {'api',}
> > 
> > def db_for_read(self, model, **hints):
> > """
> > Attempts to read api models go to mydb.
> > """
> > if model._meta.app_label in self.route_app_labels:
> > return 'mydb'
> > return False
> > 
> > def db_for_write(self, model, **hints):
> > """
> > Attempts to write api models goes to mydb.
> > """
> > if model._meta.app_label in self.route_app_labels:
> > return 'mydb'
> > return False
> > 
> > def allow_migrate(self, db, app_label, model_name=None,
> > **hints):
> > """
> > Make sure the api app only appears in the
> > 'mydb' database.
> > """
> > if app_label in self.route_app_labels:
> > return db == 'mydb'
> > return False
> > I've tried:
> > python manage.py migrate --database=default
> > 
> > python manage.py migrate
> > 
> > etc and every time it says:
> > 
> >   Applying api.0001_initial... OK
> > 
> > Even though I told it False if it does not meet the case of db ==
> > 'mydb'. I can specify 'mydb' and it says it works:
> > python manage.py migrate --database=mydb
> > but my concern is it always migrates into default even when I'm
> > trying to tell it not to. In the future there will be models I do
> > want to migrate into default, but not these in the api app. Based
> > on the documentation I'm doing everything correctly.
> > What am I not understanding?
> > Thank you.
> > Best,
> > JJ
> 
> 
> 
> -- 
> 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/1c50646c-6fbe-4d47-84f1-1250e4c515a1o%40googlegroups.com
> .
> 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5c1bce32a9b2fe32fbc4fb5cc5c25ab985fdf28e.camel%40gammascience.co.uk.


Re: DB Router default issue

2020-07-14 Thread JJ Zolper
Has anyone experienced this same thing? Anyone have a lot of experience 
working with multiple databases using a router? It's just a little unclear 
how I'm supposed to better control it.

On Friday, July 10, 2020 at 12:03:46 PM UTC-4, JJ Zolper wrote:
>
> Hello, I am trying to prevent models in my api app from migrating into the 
> default database but I'm confused about the router. It seems every time I run 
> migrate even with the router it continues to migrate.
>
>
>
> #apps.py
>
> from django.apps import AppConfig
>
> class ApiConfig(AppConfig):
> name = 'api'
> label = 'api'
>
>
>
> #settings.py
>
> DATABASE_ROUTERS = ['myproject.dev_db_router.APIRouter',]
>
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.sqlite3',
> 'NAME': os.path.join(BASE_DIR, 'default.sqlite3'),
> },
> 'mydb': {
> 'ENGINE': 'django.db.backends.sqlite3',
> 'NAME': os.path.join(BASE_DIR, 'mydb.sqlite3'),
> },
> }
>
>
>
> #dev_db_router.py
>
> class APIRouter:
> """
> A router to control all database operations on models in the
> api application.
> """
> route_app_labels = {'api',}
>
> def db_for_read(self, model, **hints):
> """
> Attempts to read api models go to mydb.
> """
> if model._meta.app_label in self.route_app_labels:
> return 'mydb'
> return False
>
> def db_for_write(self, model, **hints):
> """
> Attempts to write api models goes to mydb.
> """
> if model._meta.app_label in self.route_app_labels:
> return 'mydb'
> return False
>
> def allow_migrate(self, db, app_label, model_name=None, **hints):
> """
> Make sure the api app only appears in the
> 'mydb' database.
> """
> if app_label in self.route_app_labels:
> return db == 'mydb'
> return False
>
>
> I've tried:
>
> python manage.py migrate --database=default
>
> python manage.py migrate
>
>
> etc and every time it says:
>
>   Applying api.0001_initial...* OK*
>
>
> Even though I told it False if it does not meet the case of db == 'mydb'. I 
> can specify 'mydb' and it says it works:
>
> python manage.py migrate --database=mydb
>
> but my concern is it always migrates into default even when I'm trying to 
> tell it not to. In the future there will be models I do want to migrate into 
> default, but not these in the api app. Based on the documentation I'm doing 
> everything correctly.
>
> What am I not understanding?
>
> Thank you.
>
> Best,
>
> JJ
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1c50646c-6fbe-4d47-84f1-1250e4c515a1o%40googlegroups.com.


Django rest framework saas project

2020-07-14 Thread Raghavendra AK
Users must be able to…

1. signup. A Company should be created.
2. create other users in the same company.
3. see a list of users from the same company
4. Company can view all users data.
5. Company can create Department, 
6. add new users, that users only related main company
7. add roles to user(emp1="supervisor", emp2="normal-user")

Users must NOT be able to…
1. see the users from other companies.

Please Advice or give any reference will be very much appreciated, 
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, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fb57d15c-226b-4b19-aaf7-cecfe065d80co%40googlegroups.com.


Re: want to take input of datetimefield from my template

2020-07-14 Thread chander shekhar
Anyone help me

On Tue, Jul 14, 2020, 12:01 AM chander shekhar  wrote:

> I think here millisecond or microseconds are not coming ,in django-admin
> it is coming with microseconds
>
> On Mon, Jul 13, 2020, 11:57 PM Kasper Laudrup 
> wrote:
>
>> Hi Chander,
>>
>> On 13/07/2020 20.07, chander shekhar wrote:
>> > #forms.py
>> >
>> > classeventform(forms.ModelForm):
>> >
>> > classMeta:
>> >
>> >  model = Event
>> >
>> >  fields = [, 'end_time',]
>> >
>> >  widgets = {
>> >
>> > 'start_time':  forms.DateTimeInput(attrs={'type': 'datetime-local'}),
>> >
>>
>> Look at the format attribute of DateTimeInput:
>>
>> https://docs.djangoproject.com/en/3.0/ref/forms/widgets/#datetimeinput
>>
>> and make sure it matches what is being sent by your template. I would
>> probably test it by just printing out the value of start_time when
>> submitting the form and go from there.
>>
>> There might also be some thirdparty Django applications that can help
>> you. Time is and time formats is a pain to work with.
>>
>> Kind regards,
>>
>> Kasper Laudrup
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/d907af69-2973-e383-497c-4af6a0e15277%40stacktrace.dk
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAAmOWVz%2B6Sqg8xDhkweMK7dh_Zr6w8Wv9og9h4Nm0FEn3ZRV1A%40mail.gmail.com.


Re: How to exit of pipenv in vscode

2020-07-14 Thread sunday honesty
I use that command when working with venv but it didn't work with pipenv

On Tue, Jul 14, 2020, 2:51 PM Omkar Parab  wrote:

> .\Script\deactivate
>
> On Tue, Jul 14, 2020, 7:16 PM sunday honesty 
> wrote:
>
>> While in the VS Code Terminal, the 'exit' command closes the terminal
>> directly, whereas I just want to deactive pipenv, is there a way to do this?
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/f8a9886a-b318-4985-9abb-2907a2b078a4o%40googlegroups.com
>> .
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJY8mfwh%3D_GpQAmbP2HvbpRO-v8_KPGOVWA-3A4fBQm7Z4V5uw%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALcuGNvjiS9zQXz7DkQsX2gSnxxZ1qym%3DD%2BTEgoh2%2BZ8tNbeEQ%40mail.gmail.com.


Re: How to exit of pipenv in vscode

2020-07-14 Thread Omkar Parab
.\Script\deactivate

On Tue, Jul 14, 2020, 7:16 PM sunday honesty 
wrote:

> While in the VS Code Terminal, the 'exit' command closes the terminal
> directly, whereas I just want to deactive pipenv, is there a way to do this?
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/f8a9886a-b318-4985-9abb-2907a2b078a4o%40googlegroups.com
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJY8mfwh%3D_GpQAmbP2HvbpRO-v8_KPGOVWA-3A4fBQm7Z4V5uw%40mail.gmail.com.


How to exit of pipenv in vscode

2020-07-14 Thread sunday honesty
While in the VS Code Terminal, the 'exit' command closes the terminal directly, 
whereas I just want to deactive pipenv, is there a way to do this?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f8a9886a-b318-4985-9abb-2907a2b078a4o%40googlegroups.com.