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 function
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
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
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 pro
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 Balakr
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
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+unsu
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
>
>
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 subscribe
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 D
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 e
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 Aja
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
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
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
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
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(
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
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, where
.\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 Goog
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
21 matches
Mail list logo