Re: Forbidden (403) - CSRF verification failed. Request aborted.

2022-11-22 Thread Chukwudi Onwusa
Check your template, immediately after the  opening tag add
{% csrf_token %}
If you have it already, kindly check to ensure it's correctly spelt and
placed and then restart your server.
Best Regards.

On Wed, Nov 23, 2022, 00:58 Carlos Roberto  wrote:

> Hi everyone!
>
> I use ngrok to make my projects available in django. I'm having trouble
> accessing the admin page. After I enter the username and password I get the
> error 403.
>
> Has anyone had the same problem and could help me?
>
> Regards
>
>
> --
> 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/de5c4738-f540-4596-b1bf-0b0b16aabbf2n%40googlegroups.com
> 
> .
>


On Nov 23, 2022 00:58, "Carlos Roberto"  wrote:

Hi everyone!

I use ngrok to make my projects available in django. I'm having trouble
accessing the admin page. After I enter the username and password I get the
error 403.

Has anyone had the same problem and could help me?

Regards



-- 
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/de5c4738-f540-4596-b1bf-0b0b16aabbf2n%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/CAGoV8nm8QO1LKP4x7%2Bm%3DuM%3DMzdTryt-DYQOw%2BsdJREnm18c1gQ%40mail.gmail.com.


Forbidden (403) - CSRF verification failed. Request aborted.

2022-11-22 Thread Carlos Roberto
Hi everyone!

I use ngrok to make my projects available in django. I'm having trouble 
accessing the admin page. After I enter the username and password I get the 
error 403.

Has anyone had the same problem and could help me?

Regards


-- 
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/de5c4738-f540-4596-b1bf-0b0b16aabbf2n%40googlegroups.com.


Re: Need to Replace django default I'd with UUID field

2022-11-22 Thread Jason
why?

use uuid for public resource access, and internal int/bigint for primary 
keys.  that works well with the index structure and doesn't leak sequential 
information out by URLs.

in other words, a resource is accessed via 
`somesite.com/some-resource/

internally, you do a lookup like 

SomeModel.objects.filter(uuid =  When you use SQL System like Postgres and you have Version 13+ then you 
> can use gen_random_uuid() to create a uuid. I would make it following: 
> Delete all constraint that checks that id is int and also checks if 
> foreignkey exists in related table.
>
> I would create a Postgres Function with a cursor on your table. Then 
> iterate over table get id. Create new uuid. If relation exists to another 
> tables exists then you must first update relations table with new uuid and 
> then update in original db.
>
> This is my idea but i dont have such a function. This you must write self. 
> But this isn't too much complex.
>
> Good luck
>
> Am Di., 22. Nov. 2022 um 19:55 Uhr schrieb Rajesh Kumar <
> rjcse...@gmail.com>:
>
>> Hi everyone!
>> Hope everyone is doing well...
>>
>> Actually I have 100+ existing data in my database with default I'd field 
>> of django 
>> Now I need to replace that default I'd to UUID.
>>
>> How I can do  this without loosing any records of my database.
>>
>> If anyone can give me suggestions that would be great.
>>
>> Thanks
>> Rajesh Kumar 
>>
>> -- 
>>
> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAKNDe%3D%3DEa0ZagzpZ-Y_bXKrCi3ZHdG_PNr5%3DgxeJCTbKdM_tdA%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/88569393-9a9b-4590-b008-313a663c385fn%40googlegroups.com.


Re: Django Request

2022-11-22 Thread Alexander Neilson
The answers will be somewhat joking like the ones above because it is so
heavily dependent on how you code your application in django and the system
you run it on.

A super basic function that returns a static value to a browser may do huge
numbers but that is not actual work (a static response it better written
out once and a highly optimised HTTP server to fling it out of ram)

The workload you actually perform on it will change performance numbers
massively and the libraries you use, coding methodologies, etc.

You could describe what you want to do with it and someone may have some
experience with that sort of system who could give you some guidance. But
in general any framework only has to be able to perform and scale to the
needs of your system while working within the constraints you have, Django
may be the perfect system for you, if you are making an API possibly with
DRF. But another python framework may suit you better for your particular
goals.

This shows some of the massive range in performance of a basic function
before some optimisation and after
https://www.toptal.com/python/performance-optimization-testing-django

Regards
Alexander

Alexander Neilson
Neilson Productions Limited

alexan...@neilson.net.nz
021 329 681
022 456 2326


On Wed, 23 Nov 2022 at 09:10, nana kwame  wrote:

> Please how many request (range of numbers of request) can Django process?
>
> On Tue, 22 Nov 2022 at 14:47, 'Kasper Laudrup' via Django users <
> django-users@googlegroups.com> wrote:
>
>> On 22/11/2022 12.20, nana kwame wrote:
>> > Please how many requests can Django process based on real test
>> conducted.
>>
>> All of them.
>>
>> Kind regards,
>>
>> Kasper Laudrup
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/Ba2HwWZiKB0/unsubscribe.
>> To unsubscribe from this group and all its topics, 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/b9779b25-6f0e-66a3-d441-69c2f437a8c5%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/CALShLH%3DCK2sH1j8iiB3oKK5xPkASXYLx4A5UHo4Bv_evkyFchw%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/CAHYTDkSryWpKjbsYKww5dGcK0WC%3DBawO7sXZng4QA3ctPKrh0w%40mail.gmail.com.


Re: Need to Replace django default I'd with UUID field

2022-11-22 Thread Sebastian Jung
You have also relations like foreignkey to this table? Then you must
replace also all ids from foreignkey to new uuid Not simple this task

Am Di., 22. Nov. 2022 um 19:55 Uhr schrieb Rajesh Kumar <
rjcse131...@gmail.com>:

> Hi everyone!
> Hope everyone is doing well...
>
> Actually I have 100+ existing data in my database with default I'd field
> of django
> Now I need to replace that default I'd to UUID.
>
> How I can do  this without loosing any records of my database.
>
> If anyone can give me suggestions that would be great.
>
> Thanks
> Rajesh Kumar
>
> --
> 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/CAKNDe%3D%3DEa0ZagzpZ-Y_bXKrCi3ZHdG_PNr5%3DgxeJCTbKdM_tdA%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/CAKGT9mwtkAQU4E22ScxYpaEZEiznUH0C5jq%3DZhmVpTe7KC%3DP1A%40mail.gmail.com.


Re: Django Request

2022-11-22 Thread nana kwame
Please how many request (range of numbers of request) can Django process?

On Tue, 22 Nov 2022 at 14:47, 'Kasper Laudrup' via Django users <
django-users@googlegroups.com> wrote:

> On 22/11/2022 12.20, nana kwame wrote:
> > Please how many requests can Django process based on real test conducted.
>
> All of them.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/Ba2HwWZiKB0/unsubscribe.
> To unsubscribe from this group and all its topics, 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/b9779b25-6f0e-66a3-d441-69c2f437a8c5%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/CALShLH%3DCK2sH1j8iiB3oKK5xPkASXYLx4A5UHo4Bv_evkyFchw%40mail.gmail.com.


Re: Need to Replace django default I'd with UUID field

2022-11-22 Thread Rajesh Kumar
Hi Jason,
Thanks for a quick reply.

I got your point, but I am worry about my existing data/records which is
already associated with id , which is default one.

On Wed, 23 Nov, 2022, 12:29 am Jason Turner,  wrote:

> I would just add another column that holds the UUID value instead of
> changing the default ID.
>
> On Tue, Nov 22, 2022, 12:55 PM Rajesh Kumar  wrote:
>
>> Hi everyone!
>> Hope everyone is doing well...
>>
>> Actually I have 100+ existing data in my database with default I'd field
>> of django
>> Now I need to replace that default I'd to UUID.
>>
>> How I can do  this without loosing any records of my database.
>>
>> If anyone can give me suggestions that would be great.
>>
>> Thanks
>> Rajesh Kumar
>>
>> --
>> 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/CAKNDe%3D%3DEa0ZagzpZ-Y_bXKrCi3ZHdG_PNr5%3DgxeJCTbKdM_tdA%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/CADoyC17Ar%2B5aHx2GHCdqTuHJagbJx6%3DFzj9zHP19-4-E1j6Pew%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/CAKNDe%3Dks0Gc%2BR8Hs6u%3DmhtQv3PjwyxaRqF2%3D7pwyP1NF34t5bQ%40mail.gmail.com.


Re: Need to Replace django default I'd with UUID field

2022-11-22 Thread Jason Turner
I would just add another column that holds the UUID value instead of
changing the default ID.

On Tue, Nov 22, 2022, 12:55 PM Rajesh Kumar  wrote:

> Hi everyone!
> Hope everyone is doing well...
>
> Actually I have 100+ existing data in my database with default I'd field
> of django
> Now I need to replace that default I'd to UUID.
>
> How I can do  this without loosing any records of my database.
>
> If anyone can give me suggestions that would be great.
>
> Thanks
> Rajesh Kumar
>
> --
> 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/CAKNDe%3D%3DEa0ZagzpZ-Y_bXKrCi3ZHdG_PNr5%3DgxeJCTbKdM_tdA%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/CADoyC17Ar%2B5aHx2GHCdqTuHJagbJx6%3DFzj9zHP19-4-E1j6Pew%40mail.gmail.com.


Need to Replace django default I'd with UUID field

2022-11-22 Thread Rajesh Kumar
Hi everyone!
Hope everyone is doing well...

Actually I have 100+ existing data in my database with default I'd field of
django
Now I need to replace that default I'd to UUID.

How I can do  this without loosing any records of my database.

If anyone can give me suggestions that would be great.

Thanks
Rajesh Kumar

-- 
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/CAKNDe%3D%3DEa0ZagzpZ-Y_bXKrCi3ZHdG_PNr5%3DgxeJCTbKdM_tdA%40mail.gmail.com.


Re: Django Request

2022-11-22 Thread Eric 247ERICPOINTCOM
Good evening,

I would like a partner to work on a Django project.

It is a social media site for, I have created most of the parts. I just
need to implement a few things that I am struggling with.

Anyone willing to work with me?

*Kind Regards*

*Eric Bawakuno | Computer Engineer | Data Analyst **| 247ERICPOINTCOM |
247ericpointcom.co.za ** | +27 815152254
| eric...@gmail.com   | **29 Rochester Road, Observatory
| Cape Town, South Africa | 7925 *



On Tue, Nov 22, 2022 at 4:46 PM 'Kasper Laudrup' via Django users <
django-users@googlegroups.com> wrote:

> On 22/11/2022 12.20, nana kwame wrote:
> > Please how many requests can Django process based on real test conducted.
>
> All of them.
>
> 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/b9779b25-6f0e-66a3-d441-69c2f437a8c5%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/CAFgqToWRsCp3j%2BEF8FcGNM%2B5vVWEN4kjt%3DinsipJoBTdpAx6sA%40mail.gmail.com.


Re: Django Request

2022-11-22 Thread 'Kasper Laudrup' via Django users

On 22/11/2022 12.20, nana kwame wrote:

Please how many requests can Django process based on real test conducted.


All of them.

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/b9779b25-6f0e-66a3-d441-69c2f437a8c5%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Django Request

2022-11-22 Thread nana kwame
Please how many requests can Django process based on real test conducted.

-- 
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/3e11c1e9-6f57-4838-bd4c-3d45f8f605efn%40googlegroups.com.