Re: Looking for support in optimizing mobile www... tips or someone would like to do that for $ ?

2022-09-20 Thread Gobi Dasu
I'd recommend inviting Cedric, Issa, Francis, Himanshu, and Mohamed from these
Django + mobile developers
 who will
be able to help you. Since you get a free trial on LD, solving this problem
should not cost anything.

- If you attempt this, the system will ask you to register. Once you
register with your email address, you will receive a secure link and LD Sla
ck invite which will enable you to issue
invites.
- If talent accept your invite, you will be introduced to them in the LD
Talent Sla ck (join as soon as
possible!) We recommend you get the slack desktop and mobile apps and keep
notifications on.
- 5 hour free trial details are on our site ldtalentwork.com and platform
videos .

Happy to jump on a call
 as well.

*Regards,*
*Gobi Dasu*  (calendar
)
*Stanford CS **·* *Northwestern HCI*
*LD Talent  *(demo
)


On Tue, Sep 20, 2022 at 12:25 PM Raphael Jonard  wrote:

> Hello that's my speciality. I'm working as "Web Performances Accelerator"
> especially on Django.
> You can send me the url of your app in order that I execute a test/audit
> on it.
>
> Best regards, I'm looking forward to help you 
>
> Le mar. 20 sept. 2022, 15:56, DJANGO DEVELOPER 
> a écrit :
>
>> Can you please tell me that how many users do you have in your app? What
>> is the current performance of your app and what is the expected performance
>> in your mind?
>>
>> On Tue, 20 Sep 2022, 6:38 pm Krzysztof Krawczyk, <
>> krzysz...@quadramedic.com> wrote:
>>
>>> thanks !
>>>
>>> --
>>> 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/60b0d1cb-4eca-4f2d-8163-7729f66c0327n%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/CAKPY9pkUoYnnnFbbSmFAeW-b4Zq2Vrw_8sjM6V-6WOa6e_gQag%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/CAJ3-g0YdVk5yCWJjfxEo9Eyc-osF%3Dh%2BLyj7ggppeLJ9sYMfC7A%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/CAMk8evnTjcTaVej1NqmdOfoSwc%3DXiQ61T1sHxu64V9HKnD-a1A%40mail.gmail.com.


Anyone testing async views with django test client?

2022-09-20 Thread 'SP' via Django users
My async  CBV works when accessed through my url endpoint with REQUESTS 
package.  But with the django test client it seems to think the database 
doesn't contain the information I'm trying to pull using ORM. I've 
confirmed that the data DOES exist in the newly recreated DB (populated 
with fixtures in my TestCase based class. 

Any suggestions would be appreciated!

-- 
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/1e727d43-93ae-462d-985f-853f3ed418ccn%40googlegroups.com.


Re: Looking for support in optimizing mobile www... tips or someone would like to do that for $ ?

2022-09-20 Thread Raphael Jonard
Hello that's my speciality. I'm working as "Web Performances Accelerator"
especially on Django.
You can send me the url of your app in order that I execute a test/audit on
it.

Best regards, I'm looking forward to help you 

Le mar. 20 sept. 2022, 15:56, DJANGO DEVELOPER  a
écrit :

> Can you please tell me that how many users do you have in your app? What
> is the current performance of your app and what is the expected performance
> in your mind?
>
> On Tue, 20 Sep 2022, 6:38 pm Krzysztof Krawczyk, <
> krzysz...@quadramedic.com> wrote:
>
>> thanks !
>>
>> --
>> 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/60b0d1cb-4eca-4f2d-8163-7729f66c0327n%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/CAKPY9pkUoYnnnFbbSmFAeW-b4Zq2Vrw_8sjM6V-6WOa6e_gQag%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/CAJ3-g0YdVk5yCWJjfxEo9Eyc-osF%3Dh%2BLyj7ggppeLJ9sYMfC7A%40mail.gmail.com.


Re: Looking for support in optimizing mobile www... tips or someone would like to do that for $ ?

2022-09-20 Thread DJANGO DEVELOPER
Can you please tell me that how many users do you have in your app? What is
the current performance of your app and what is the expected performance in
your mind?

On Tue, 20 Sep 2022, 6:38 pm Krzysztof Krawczyk, 
wrote:

> thanks !
>
> --
> 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/60b0d1cb-4eca-4f2d-8163-7729f66c0327n%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/CAKPY9pkUoYnnnFbbSmFAeW-b4Zq2Vrw_8sjM6V-6WOa6e_gQag%40mail.gmail.com.


Re: django datetime field and timefield provide different times....

2022-09-20 Thread Muhammad Juwaini Abdul Rahman
Check your timezone in settings.py.

On Tue, 20 Sep 2022 at 21:38, Kenn_ Kiragu  wrote:

> django datetime field and timefield provide different times when set to
> auto_now. The datetime field is three hrs behind.. Anyone know what could
> be causing 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/46104a05-fe4c-4c56-8c13-1ddd244487d7n%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/CAFKhtoQmncQY02VN%2BkBuvGJ1LXi2ioRbML_Uy3HJB3hCFoLFUg%40mail.gmail.com.


Looking for support in optimizing mobile www... tips or someone would like to do that for $ ?

2022-09-20 Thread Krzysztof Krawczyk
thanks !

-- 
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/60b0d1cb-4eca-4f2d-8163-7729f66c0327n%40googlegroups.com.


Re: DRF and React - request.user is "Anonymous user"

2022-09-20 Thread Deep Chirag
yes

On Tue, Sep 20, 2022 at 9:49 AM Jackson Patrick 
wrote:

> Do i need to pass token in headers?
>
> On Tue, 20 Sep, 2022, 9:44 am Mohammad Ehsan Ansari, 
> wrote:
>
>> make sure you have listed auth as jwt and added permission class for
>> authentication
>>
>> On Monday, 12 September 2022 at 09:52:22 UTC+5:30 jacks...@gmail.com
>> wrote:
>>
>>> I have used simple JWT for authentication and i have successfully logged
>>> in and am getting tokens also. But when i do a request.user in backend i
>>> get "Annonymous user".
>>> Tried passing Authorization header in axios post in FE REACT but it
>>> throws error. Am setting both refresh and access in a state variable and
>>> store it in local storage . Am really new into this and I'm totally stuck
>>> here.
>>>
>>> All i did was to temporarily solve the issue is to send the user id from
>>> frontend to backend and by the way it's a bad practice.
>>>
>>> So please help me out in this guys.
>>>
>> --
>> 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/1f69ceeb-7294-4d51-a25c-b1a222c534d0n%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/CAG2dbb0KZ79AbF35cuyq9Rk%2BkC1v8-YwCJeQN5xFrwvG%3DgSnNw%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/CAGyHLh%3DzfegVqHr8HnX%2BvgbXD4O8rdGr68dZn68yy1GmNPCpCA%40mail.gmail.com.


my admin django not correct: NoReverseMatch à /admin/login/

2022-09-20 Thread Nicodem Laurore
Hello guys,
I no longer have access to my Django admin, this in all my projects, I know 
what I did to get there, but getting out would be fine in order to continue 
my projects, if you know any way to handle this, it would be good for me, 
thank you



Environment:


Request Method: GET
Request URL: http://localhost:8000/admin/login/?next=/admin/

Django Version: 4.1
Python Version: 3.8.10
Installed Applications:
['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']


Template error:
In template 
/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/contrib/admin/templates/admin/base_site.html,
 
error at line 6
   Reverse for 'index' not found. 'index' is not a valid view function or 
pattern name.
   1 : {% extends "admin/base.html" %}
   2 : 
   3 : {% block title %}{% if subtitle %}{{ subtitle }} | {% endif %}{{ 
title }} | {{ site_title|default:_('Django site admin') }}{% endblock %}
   4 : 
   5 : {% block branding %}
   6 : {{ 
site_header|default:_('Django administration') }}
   7 : {% endblock %}
   8 : 
   9 : {% block nav-global %}{% endblock %}
   10 : 

Traceback (most recent call last):
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/core/handlers/exception.py",
 
line 55, in inner
response = get_response(request)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/core/handlers/base.py",
 
line 220, in _get_response
response = response.render()
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/response.py",
 
line 114, in render
self.content = self.rendered_content
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/response.py",
 
line 92, in rendered_content
return template.render(context, self._request)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/backends/django.py",
 
line 62, in render
return self.template.render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 175, in render
return self._render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 167, in _render
return self.nodelist.render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 1005, in render
return SafeString("".join([node.render_annotated(context) for node in 
self]))
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 1005, in 
return SafeString("".join([node.render_annotated(context) for node in 
self]))
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 966, in render_annotated
return self.render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/loader_tags.py",
 
line 157, in render
return compiled_parent._render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 167, in _render
return self.nodelist.render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 1005, in render
return SafeString("".join([node.render_annotated(context) for node in 
self]))
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 1005, in 
return SafeString("".join([node.render_annotated(context) for node in 
self]))
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 966, in render_annotated
return self.render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/loader_tags.py",
 
line 157, in render
return compiled_parent._render(context)
  File 
"/home/nicodem-laurore/PycharmProjects/Djangopro/tpenv/lib/python3.8/site-packages/django/template/base.py",
 
line 167, in _render
return self.nodelist.render(context)
  File 

django datetime field and timefield provide different times....

2022-09-20 Thread Kenn_ Kiragu
django datetime field and timefield provide different times when set to 
auto_now. The datetime field is three hrs behind.. Anyone know what could 
be causing 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/46104a05-fe4c-4c56-8c13-1ddd244487d7n%40googlegroups.com.


Re: SessionStore attribute error

2022-09-20 Thread shiva singh
hello Dear Kasper Laudrup
I am beginner
 sorry for this but my problem is not solve  yet  that's why  I have  sent 
my code for better solution of error
I am not familiar  about this file witch you are send me


On Tuesday, September 20, 2022 at 12:22:12 PM UTC+5:30 Kasper Laudrup wrote:

> On 20/09/2022 08.21, shiva singh wrote:
> > hello everyone please help how can solve this problem?
> >
>
> I suggest you ignore all the replies you've already gotten and then post 
> the exact same question a third time.
>
> 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/c7e37c46-d540-49b1-ba24-989ace6845b0n%40googlegroups.com.


Re: SessionStore attribute error

2022-09-20 Thread 'Kasper Laudrup' via Django users

On 20/09/2022 08.21, shiva singh wrote:

hello everyone please help how can solve this problem?



I suggest you ignore all the replies you've already gotten and then post 
the exact same question a third time.


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/04483ea1-1cd3-ed58-2e77-19eca96ccf40%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


SessionStore attribute error

2022-09-20 Thread shiva singh
hello everyone please help how can solve this problem?

this is session  code:-
 if user.password==password and user.role=="Company":
com=Company.objects.get(user_id=user)
request.session['id']=user.id
request.session['role']=user.role
request.session['company_name']=com.company_name
request.session['email']=user.email
return redirect('companyprofilepage')

This is my views.py code:-
def JobPostSubmit(request):
user=UserMaster.objects.get(id=request.session.id)  
if user.role == "Comapny":
comp = Company.objects.get(user_id=user)
jobname=request.POST['jobname']
comname=request.POST['comn']
comemail=request.POST['come']
comaddress=request.POST['comadd']
comcontact=request.POST['comco']
qualifications=request.POST['quli']
responsblities=request.POST['resp']
salary=request.POST['salary']
experience=request.POST['exep']
jobdesc=request.POST['jobdesc']
weburl=request.POST['weburl']
comlogo=request.FILES['comlogo']

jps=JobDetails.objects.create(company_id=comp,jobname=jobname,company_name=comname,jobdesc=jobdesc,qulifications=qualifications,resposiilites=responsblities,location=comaddress,companywebsite=weburl,companyemail=comemail,companycontact=comcontact,salarypackage=salary,experience=experience,logo=comlogo)
message="Job Post Successfully"
return redirect('jobpostsubmit',{'msg':message})


[image: image.jpeg]

-- 
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/5cbd8bee-7089-466a-8b61-7d7e3f59bb5en%40googlegroups.com.