Re: How to create an individual instagram message into threads?

2023-08-28 Thread 'Steven Mapes' via Django users
I've not used that app but creating email of messaging chains is quite 
easy. How I normally do it is to generate a unique identifier by using a 
uuid4 plus some custom values when a new thread/conversation is created and 
then this is passed and maintained during replies.  There's probably 
something similar in that app. Emails tend to call it a Conversation ID

On Sunday, 27 August 2023 at 22:19:46 UTC+1 Ram wrote:

> Hi,
>
> We are using Instagram clone messaging in our ecommerce application where 
> users contact each other about market place item (sell/buy items). Once the 
> messaging started between two users on an item
> 1. we want to keep the further messaging regarding that item to be 
> continued like an email thread so that all the messaging about that item 
> will be in one thread.
> 2. New messaging on new market place item will be again new thread.
> 3. It would be nice each thread has a title of the market place item so 
> that same users can go back to previous history of messages on that 
> particular item whenever they want.
>
> I'm wondering whether anyone has implemented the above features using 
> instagram clone in your Django application?
>
> Best regards,
> ~Ram
>

-- 
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/099349c1-bfc4-42e8-8178-50141c7640d0n%40googlegroups.com.


Re: Slow Performance of Django Web App

2023-06-12 Thread 'Steven Mapes' via Django users
To start with I'd look at upgrading the project to the latest version of 
Django and Python as Python 3.10 and 3.11 have some performance 
improvements and you'll need to be on a Django 4 version to support them.

That aside it sounds like you've got good caching architecture setup  since 
it's working well when cached but that the architecture without the caching 
is not up to the job. You need to investigate where the performance hit is 
coming in, most likely it'll be database performance. Once thing to check 
would be whether you are using things like like prefetch_related, 
select_related, and defer with any queryset or are you always returning the 
whole object. If you are returning the whole object do you need to? 

After that it depends on how you are using and exposing Django as to what 
I'd suggest you check next. Are you using DRF as API backend to the pages 
in S3 or are you serving pages via Django and then caching those?  If it's 
the latter, run it locally with caching turned off and debug toolbar 
installed and look at each pages output to see how many queries you are 
hitting per page and the performance of each.

Since you are using a lot of caching how are you maintaining the cache? Are 
you letting it expire and then self populate or are you using warm-ups to 
fetch the update information and then update the cache prior to it 
expiring? If you're doing the former but the latter fits your setup look to 
switch to that. In those instances you can update the fetch the results to 
update the cache outside of a user transaction

On Monday, 12 June 2023 at 06:23:06 UTC+1 Kunal Mittal wrote:

> Hi, we are using Django 1.8.5
> Architecture is like -  Nginx side car -> wsgi server (gunicorn) -> 
> application
> On Monday, June 12, 2023 at 1:06:18 AM UTC+5:30 Mz Gz wrote:
>
>> What server do you use ?
>>
>> On Sun, 11 Jun 2023, 10:00 pm Kunal Mittal,  wrote:
>>
>>> I've a django application serving 10k+ users daily, that application has 
>>> everything to be on the top of performance metrics but still some API's 
>>> have high latencies, application serves lots of pages with nice css and 
>>> various images, on most the pages they are being served by s3 while on some 
>>> it's via django static files. We have implemented caching on akamai for 
>>> every static file that application serves, whenever that cache disappears 
>>> latency of each and every API spikes exponentially, at that time even 
>>> loading metrics becomes a pain, server does not pick those requests. Can 
>>> anyone suggest what's going on here. 
>>>
>>> -- 
>>> 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/d32868ba-a2df-41e3-8f41-3ecc3c1b3471n%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/c5e4d83c-1891-4005-939e-8c0f3f074cf2n%40googlegroups.com.


Re: how to convert to Django 3 or 4

2023-06-12 Thread 'Steven Mapes' via Django users
Ah Python 2.7, you'll need to upgrade through to at least 3.8 so unless 
it's a huge project where you have time to upgrade through the Django 
Versions and different versions of Python as you go, you may just want to 
create a new project and lift the code as you go.

On Friday, 9 June 2023 at 15:29:47 UTC+1 Rogerio Carrasqueira wrote:

> I'm using python 2.7, wich your suggestion?
>
> Thanks
>
>
> Rogério Carrasqueira
>
>
>
>
>
> Em sex., 9 de jun. de 2023 às 03:37, 'Steven Mapes' via Django users <
> django...@googlegroups.com> escreveu:
>
>> If you want to go directly then start a new project and "lift and shift" 
>> code fixing and updating as you go. Depending on the size of the project 
>> and the complexity of the processes it may be the fastest way to do it.
>>
>> If you want to keep the same project then upgrade in stages. The fact 
>> you're in 1.4 will make it hard and you'll need to do a lot of manual 
>> changes to get into 1.8 so starting new may well be quicker. If you did 
>> upgrade then I'd go 1.8 to 1.11, 2.2, 3.2 and finally 4.2.
>>
>> Branch the code using version control and see how bad it is but it'll 
>> depend on the project.
>> I went from 1.11 to 3.2 in a day for one but most of the code was bespoke 
>> without may external packages to worry about. Those could also cause you 
>> issues.
>>
>> Since the code is Django 1.4 what version of python is it also using?
>>
>>
>> On Thu, Jun 8, 2023, 21:31 Rogerio Carrasqueira  
>> wrote:
>>
>>> So just to undersand, I cannot move directly from 1.4 to 4 I have to do 
>>> it in steps, right?
>>>
>>> Thanks 
>>> Rogério Carrasqueira
>>>
>>>
>>>
>>>
>>>
>>> Em qui., 8 de jun. de 2023 às 17:01, 'Steven Mapes' via Django users <
>>> django...@googlegroups.com> escreveu:
>>>
>>>> I've used it to go from Django 3 to 4 and to move a project from 1.11 
>>>> to 2.2.
>>>>
>>>> It doesn't do everything for you but it's a great start. I've 
>>>> personally moved from 1.8 through to 4.2.2 but that was during their 
>>>> development lifecycle. Moving up to 1.7 and then 1.7 to 1.8 and 1.8 to 
>>>> 1.11 
>>>> and 1.11 to 2 will be the hardest parts but it'll get easier once you're 
>>>> on 
>>>> 1.11
>>>>
>>>> On Thu, Jun 8, 2023, 19:58 Rogério Carrasqueira <
>>>> rogerio.ca...@gmail.com> wrote:
>>>>
>>>>> Hey Steven!
>>>>>
>>>>> Thanks for this information, do you have tried it before? I would like 
>>>>> to move from 1.4 to lastest, do you think that is it possible?
>>>>>
>>>>> Thanks
>>>>>
>>>>> Em quarta-feira, 7 de junho de 2023 às 11:52:35 UTC-3, Steven Mapes 
>>>>> escreveu:
>>>>>
>>>>>> I'd suggest looking into using Adam Johnson's Django-Upgrade told -
>>>>>> https://github.com/adamchainz/django-upgrade it will help you move 
>>>>>> between versions
>>>>>>
>>>>>> On Tuesday, 6 June 2023 at 15:24:36 UTC+1 Paul Haguet wrote:
>>>>>>
>>>>>>> There is a lot of function who can change. 
>>>>>>>
>>>>>>> https://docs.djangoproject.com/en/4.2/releases/4.0/
>>>>>>>
>>>>>>> All the function declared as deprecated into Django 3 has been 
>>>>>>> removed into Django 4. In the deprecated section of django 3 new 
>>>>>>> functions 
>>>>>>> names are systematically indicated. So just search the function under 
>>>>>>> their 
>>>>>>> old name and replace them with their new name. The 2 links below give 
>>>>>>> the 
>>>>>>> list.
>>>>>>>
>>>>>>>
>>>>>>> https://docs.djangoproject.com/en/4.2/releases/3.0/#deprecated-features-3-0
>>>>>>>
>>>>>>> https://docs.djangoproject.com/en/4.2/releases/3.1/#deprecated-features-3-1
>>>>>>>
>>>>>>> Le samedi 3 juin 2023 à 10:10:31 UTC+2, Shams Ulhaq a écrit :
>>>>>>>
>>>>>>>> Just need to change url import 
>>>>>>>>
>>>>>>>> from django.urls import include, re_path as url
>>>>>>&g

Re: how to convert to Django 3 or 4

2023-06-09 Thread 'Steven Mapes' via Django users
If you want to go directly then start a new project and "lift and shift"
code fixing and updating as you go. Depending on the size of the project
and the complexity of the processes it may be the fastest way to do it.

If you want to keep the same project then upgrade in stages. The fact
you're in 1.4 will make it hard and you'll need to do a lot of manual
changes to get into 1.8 so starting new may well be quicker. If you did
upgrade then I'd go 1.8 to 1.11, 2.2, 3.2 and finally 4.2.

Branch the code using version control and see how bad it is but it'll
depend on the project.
I went from 1.11 to 3.2 in a day for one but most of the code was bespoke
without may external packages to worry about. Those could also cause you
issues.

Since the code is Django 1.4 what version of python is it also using?


On Thu, Jun 8, 2023, 21:31 Rogerio Carrasqueira <
rogerio.carrasque...@gmail.com> wrote:

> So just to undersand, I cannot move directly from 1.4 to 4 I have to do it
> in steps, right?
>
> Thanks
> Rogério Carrasqueira
>
>
>
>
>
> Em qui., 8 de jun. de 2023 às 17:01, 'Steven Mapes' via Django users <
> django-users@googlegroups.com> escreveu:
>
>> I've used it to go from Django 3 to 4 and to move a project from 1.11 to
>> 2.2.
>>
>> It doesn't do everything for you but it's a great start. I've personally
>> moved from 1.8 through to 4.2.2 but that was during their development
>> lifecycle. Moving up to 1.7 and then 1.7 to 1.8 and 1.8 to 1.11 and 1.11 to
>> 2 will be the hardest parts but it'll get easier once you're on 1.11
>>
>> On Thu, Jun 8, 2023, 19:58 Rogério Carrasqueira <
>> rogerio.carrasque...@gmail.com> wrote:
>>
>>> Hey Steven!
>>>
>>> Thanks for this information, do you have tried it before? I would like
>>> to move from 1.4 to lastest, do you think that is it possible?
>>>
>>> Thanks
>>>
>>> Em quarta-feira, 7 de junho de 2023 às 11:52:35 UTC-3, Steven Mapes
>>> escreveu:
>>>
>>>> I'd suggest looking into using Adam Johnson's Django-Upgrade told -
>>>> https://github.com/adamchainz/django-upgrade it will help you move
>>>> between versions
>>>>
>>>> On Tuesday, 6 June 2023 at 15:24:36 UTC+1 Paul Haguet wrote:
>>>>
>>>>> There is a lot of function who can change.
>>>>>
>>>>> https://docs.djangoproject.com/en/4.2/releases/4.0/
>>>>>
>>>>> All the function declared as deprecated into Django 3 has been removed
>>>>> into Django 4. In the deprecated section of django 3 new functions names
>>>>> are systematically indicated. So just search the function under their old
>>>>> name and replace them with their new name. The 2 links below give the 
>>>>> list.
>>>>>
>>>>>
>>>>> https://docs.djangoproject.com/en/4.2/releases/3.0/#deprecated-features-3-0
>>>>>
>>>>> https://docs.djangoproject.com/en/4.2/releases/3.1/#deprecated-features-3-1
>>>>>
>>>>> Le samedi 3 juin 2023 à 10:10:31 UTC+2, Shams Ulhaq a écrit :
>>>>>
>>>>>> Just need to change url import
>>>>>>
>>>>>> from django.urls import include, re_path as url
>>>>>>
>>>>>>
>>>>>> On Sat, 3 Jun 2023, 12:32 David Nugent,  wrote:
>>>>>>
>>>>>>> nppe url is obsolete and removed in 4.x.
>>>>>>>
>>>>>>> You can use re_path, which is a kind of replacement but even then
>>>>>>> you will need to adjust the regex in many cases.
>>>>>>>
>>>>>>> The best approach is to understand what the url() is doing, and
>>>>>>> replicate the same using path(). Once you do, the conversions should be
>>>>>>> more or less straight-forward. Instead of regex you use labelled 
>>>>>>> patterns
>>>>>>> making for more comprehensible path lines. For complex regex expressions
>>>>>>> you may need to define custom matches - or "converters" - that enforce
>>>>>>> specific patterns allowing you to restrict input and improve matching. 
>>>>>>> This
>>>>>>> is one area that Django has improved really well over time.
>>>>>>>
>>>>>>> But, like I said, don't try to replace this file wholesale. Instead
>>>>>>> of converting it and doing error-fix-error-fix ad infinit

Re: how to convert to Django 3 or 4

2023-06-08 Thread 'Steven Mapes' via Django users
I've used it to go from Django 3 to 4 and to move a project from 1.11 to
2.2.

It doesn't do everything for you but it's a great start. I've personally
moved from 1.8 through to 4.2.2 but that was during their development
lifecycle. Moving up to 1.7 and then 1.7 to 1.8 and 1.8 to 1.11 and 1.11 to
2 will be the hardest parts but it'll get easier once you're on 1.11

On Thu, Jun 8, 2023, 19:58 Rogério Carrasqueira <
rogerio.carrasque...@gmail.com> wrote:

> Hey Steven!
>
> Thanks for this information, do you have tried it before? I would like to
> move from 1.4 to lastest, do you think that is it possible?
>
> Thanks
>
> Em quarta-feira, 7 de junho de 2023 às 11:52:35 UTC-3, Steven Mapes
> escreveu:
>
>> I'd suggest looking into using Adam Johnson's Django-Upgrade told -
>> https://github.com/adamchainz/django-upgrade it will help you move
>> between versions
>>
>> On Tuesday, 6 June 2023 at 15:24:36 UTC+1 Paul Haguet wrote:
>>
>>> There is a lot of function who can change.
>>>
>>> https://docs.djangoproject.com/en/4.2/releases/4.0/
>>>
>>> All the function declared as deprecated into Django 3 has been removed
>>> into Django 4. In the deprecated section of django 3 new functions names
>>> are systematically indicated. So just search the function under their old
>>> name and replace them with their new name. The 2 links below give the list.
>>>
>>>
>>> https://docs.djangoproject.com/en/4.2/releases/3.0/#deprecated-features-3-0
>>>
>>> https://docs.djangoproject.com/en/4.2/releases/3.1/#deprecated-features-3-1
>>>
>>> Le samedi 3 juin 2023 à 10:10:31 UTC+2, Shams Ulhaq a écrit :
>>>
>>>> Just need to change url import
>>>>
>>>> from django.urls import include, re_path as url
>>>>
>>>>
>>>> On Sat, 3 Jun 2023, 12:32 David Nugent,  wrote:
>>>>
>>>>> nppe url is obsolete and removed in 4.x.
>>>>>
>>>>> You can use re_path, which is a kind of replacement but even then you
>>>>> will need to adjust the regex in many cases.
>>>>>
>>>>> The best approach is to understand what the url() is doing, and
>>>>> replicate the same using path(). Once you do, the conversions should be
>>>>> more or less straight-forward. Instead of regex you use labelled patterns
>>>>> making for more comprehensible path lines. For complex regex expressions
>>>>> you may need to define custom matches - or "converters" - that enforce
>>>>> specific patterns allowing you to restrict input and improve matching. 
>>>>> This
>>>>> is one area that Django has improved really well over time.
>>>>>
>>>>> But, like I said, don't try to replace this file wholesale. Instead of
>>>>> converting it and doing error-fix-error-fix ad infinitun, re-implement
>>>>> things as you enable parts of the app you have successfully ported. While
>>>>> re_path may be a fallback, try to re-implement as path() expressions and
>>>>> you'll be better in the long run.
>>>>>
>>>>>
>>>>> On Sat, Jun 3, 2023 at 11:59 AM Muhammad Juwaini Abdul Rahman <
>>>>> juw...@gmail.com> wrote:
>>>>>
>>>>>> I think Django 4 still have backward compatibility with `url`
>>>>>> although `path` is preferable.
>>>>>>
>>>>>> You can try to `runserver` in your local, upgrade your django version
>>>>>> in your virtualenv to version 4 and troubleshoot the error messages (if
>>>>>> any) one by one.
>>>>>>
>>>>>> On Sat, 3 Jun 2023 at 05:20, john fabiani 
>>>>>> wrote:
>>>>>>
>>>>>>> Hi everyone,
>>>>>>>
>>>>>>> I am tasked with updating/upgrading a very old Django web site - I
>>>>>>> believe it is 1.7.  I need convert and need what is required.
>>>>>>> Thanks in advance.
>>>>>>>
>>>>>>>
>>>>>>> I need to convert the following:
>>>>>>>
>>>>>>> from django.conf.urls import patterns, include, url
>>>>>>> from django.contrib import admin
>>>>>>> from django.conf import settings
>>>>>>> from django.conf.urls.static import static
>>>>>>>
>>>>>>> u

Re: how to convert to Django 3 or 4

2023-06-07 Thread 'Steven Mapes' via Django users
I'd suggest looking into using Adam Johnson's Django-Upgrade told 
-https://github.com/adamchainz/django-upgrade it will help you move between 
versions

On Tuesday, 6 June 2023 at 15:24:36 UTC+1 Paul Haguet wrote:

> There is a lot of function who can change. 
>
> https://docs.djangoproject.com/en/4.2/releases/4.0/
>
> All the function declared as deprecated into Django 3 has been removed 
> into Django 4. In the deprecated section of django 3 new functions names 
> are systematically indicated. So just search the function under their old 
> name and replace them with their new name. The 2 links below give the list.
>
> https://docs.djangoproject.com/en/4.2/releases/3.0/#deprecated-features-3-0
> https://docs.djangoproject.com/en/4.2/releases/3.1/#deprecated-features-3-1
>
> Le samedi 3 juin 2023 à 10:10:31 UTC+2, Shams Ulhaq a écrit :
>
>> Just need to change url import 
>>
>> from django.urls import include, re_path as url
>>
>>
>> On Sat, 3 Jun 2023, 12:32 David Nugent,  wrote:
>>
>>> nppe url is obsolete and removed in 4.x.
>>>
>>> You can use re_path, which is a kind of replacement but even then you 
>>> will need to adjust the regex in many cases.
>>>
>>> The best approach is to understand what the url() is doing, and 
>>> replicate the same using path(). Once you do, the conversions should be 
>>> more or less straight-forward. Instead of regex you use labelled patterns 
>>> making for more comprehensible path lines. For complex regex expressions 
>>> you may need to define custom matches - or "converters" - that enforce 
>>> specific patterns allowing you to restrict input and improve matching. This 
>>> is one area that Django has improved really well over time.
>>>
>>> But, like I said, don't try to replace this file wholesale. Instead of 
>>> converting it and doing error-fix-error-fix ad infinitun, re-implement 
>>> things as you enable parts of the app you have successfully ported. While 
>>> re_path may be a fallback, try to re-implement as path() expressions and 
>>> you'll be better in the long run.
>>>
>>>
>>> On Sat, Jun 3, 2023 at 11:59 AM Muhammad Juwaini Abdul Rahman <
>>> juw...@gmail.com> wrote:
>>>
 I think Django 4 still have backward compatibility with `url` 
 although `path` is preferable.

 You can try to `runserver` in your local, upgrade your django version 
 in your virtualenv to version 4 and troubleshoot the error messages (if 
 any) one by one.

 On Sat, 3 Jun 2023 at 05:20, john fabiani  wrote:

> Hi everyone,
>
> I am tasked with updating/upgrading a very old Django web site - I 
> believe it is 1.7.  I need convert and need what is required.
> Thanks in advance.
>
>
> I need to convert the following:
>
> from django.conf.urls import patterns, include, url
> from django.contrib import admin
> from django.conf import settings
> from django.conf.urls.static import static
>
> urlpatterns = patterns('',
> # Examples:
> url(r'reg4/$', 'register.views.reg4', name='reg4'),
> url(r'reg3/$', 'register.views.reg3', name='reg3'),
> url(r'reg2/$', 'register.views.reg2', name='reg2'),
> #url(r'reg1/$', 'register.views.reg1', name='reg1'),
> url(r'reg1/$', 'register.views.reg1', name='reg1'),
> #url(r'^$', 'register.views.home', name='home'),
> url(r'reg/$', 'register.views.home', name='home'),
> url(r'get_courts/(\d+)$', 'register.views.get_courts', 
> name='get_courts'),
> url(r'get_courses/(\d+)$', 'register.views.get_courses', 
> name='get_courses'),
> url(r'autoschedule/', 'register.views.autoschedule', 
> name='autoschedule'),
> url(r'get_cities/(\d+)$', 'register.views.get_cities', 
> name='get_cities'),
> url(r'get_classes/(\d+)$', 'register.views.get_classes', 
> name='get_classes'),
> url(r'get_cities2/(\d+)/(\d+)/$', 'register.views.get_cities2', 
> name='get_cities2'),
> url(r'get_classes2/(\d+)/(\d+)/$', 'register.views.get_classes2', 
> name='get_classes2'),
> url(r'rejected/$', 'register.views.rejected', name='rejected'),
> url(r'finished/$', 'register.views.finished', name='finished'),
> 
> ##url(r'^$', 'profiles.views.home', name='home'),
> #url(r'^contact/$', 'register.views.home', name='contact'),
> #url(r'^about/$', 'register.views.about', name='about'),
> #url(r'^profile/$', 'register.views.user_profile', name='profile'),
> #url(r'^checkout/$', 'checkout.views.checkout', 
> name='checkout'),
> # url(r'^blog/', include('blog.urls')),
>
> url(r'^admin/', include(admin.site.urls)),
> ) + static(settings.STATIC_URL, document_root = settings.STATIC_ROOT)
>
> What is required?
>
> -- 
> You received this message because you are subscribed to the Google 
> Groups "Django users" group.
> To unsubscribe from 

Re: Django Froala Editor

2023-02-03 Thread 'Steven Mapes' via Django users
Sorry hit send too soon. An alternative is to update your settings.py entry 
for FROALA_STORAGE_BACKEND to point to a different backend as per their 
docs https://github.com/froala/django-froala-editor#other-settings

On Friday, 3 February 2023 at 14:30:12 UTC Steven Mapes wrote:

> Easiest way will be to overload their default upload view.
>
> If you look in the urls.py for the package it has two entries
>
>
> *path('image_upload/', views.image_upload, 
> name='froala_editor_image_upload'),path('file_upload/', views.file_upload, 
> name='froala_editor_file_upload'),*
>
> Take a look at those view here 
> https://github.com/froala/django-froala-editor/blob/master/froala_editor/views.py
>
> Then create your own views doing what you want but serve them from the URL 
> path that these would be on by default so that they are called instead.
>
> On Friday, 3 February 2023 at 12:00:32 UTC akino...@gmail.com wrote:
>
>> Please I need help on how to change the upload path of django froala 
>> editor. Possiby to Cloudinary 
>> Please I need help 
>
>

-- 
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/39b39288-711b-464a-9f13-e9d3173a62a8n%40googlegroups.com.


Re: Django Froala Editor

2023-02-03 Thread 'Steven Mapes' via Django users
Easiest way will be to overload their default upload view.

If you look in the urls.py for the package it has two entries


*path('image_upload/', views.image_upload, 
name='froala_editor_image_upload'),path('file_upload/', views.file_upload, 
name='froala_editor_file_upload'),*

Take a look at those view 
here 
https://github.com/froala/django-froala-editor/blob/master/froala_editor/views.py

Then create your own views doing what you want but serve them from the URL 
path that these would be on by default so that they are called instead.

On Friday, 3 February 2023 at 12:00:32 UTC akino...@gmail.com wrote:

> Please I need help on how to change the upload path of django froala 
> editor. Possiby to Cloudinary 
> Please I need help 

-- 
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/f2a9d21c-1ac6-4bbd-8eb3-c4061ea148f4n%40googlegroups.com.


Re: Django microservice authentication problem.

2023-01-28 Thread 'Steven Mapes' via Django users
Are you trying to authenticate via Django Rest FrameWork API or via the 
standard Django authentication system?  It shouldn't really matter which it 
is as both can be scaled horizontally and you'll have no issue with 
authenticating so in order for us to help we'd need to understand what you 
are doing better.

For example are you trying to share the database across multiple domains? 
Are you simply placing multiple servers behind a load balancer on the same 
domain?

On Saturday, 28 January 2023 at 06:53:12 UTC mdanar...@gmail.com wrote:

> How to communicate and authenticate with multiple Django servers. Is it 
> possible?
>
> If possible you can help me, I am trying more than 15 days in this section 
> but not getting any solution.
>
> Please share with me any requirements like books, videos, blogs, or code 
> examples.
>

-- 
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/16326b9e-0656-45b4-b975-faf9b676a559n%40googlegroups.com.


Re: Card-Payment Integration.

2023-01-04 Thread 'Steven Mapes' via Django users
There's several that you'll find integration projects for on github, 
personally I wrote my own lib to integrate Stripe and Paypal and much 
prefer stripe over paypal. it's a cleaner integration, faster flow for the 
user, lower fees, allows refunds for payments of any age whilst the card is 
valid and, for my clients, the money is paid out. Had lots of bad 
experience with Paypal withholding money for clients for over a year 
because they don't understand their business model and stopping refunds 
after 3 months even if the business allows them for longer

On Tuesday, 3 January 2023 at 13:37:39 UTC satyajit...@gmail.com wrote:

> You can try Paypal or Braintree payment gateway. Both work perfectly.
>
>
> Regards,
> Satyajit
>
> On Tue, Jan 3, 2023 at 9:56 AM Mike Dewhirst  
> wrote:
>
>> On 3/01/2023 3:12 pm, Harshwardhan Waghela wrote:
>>
>> Other Then Stripe ?  
>>
>>
>> Speak to your favourite bank and see what they offer. That's what I did 
>> before going to Stripe. 
>>
>> Otherwise google for local gateway providers.
>>
>>
>> On Monday, 2 January 2023 at 18:05:34 UTC+5:30 Mike Dewhirst wrote:
>>
>>> I use Stripe. It works well.
>>>
>>> Mike
>>>
>>>
>>>
>>> -- 
>>> (Unsigned mail from my phone) 
>>>
>>>
>>>
>>>  Original message 
>>> From: Harshwardhan Waghela  
>>> Date: 2/1/23 22:40 (GMT+10:00) 
>>> To: Django users  
>>> Subject: Card-Payment Integration. 
>>>
>>> Can Anyone Can Suggest me of Card-Payment Integration(means Visa, 
>>> Master-Card...etc)  with Documentation.
>>> -- 
>>> 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/a6d08f33-f1eb-4d1a-8247-c17236859d59n%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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/a37322f4-2354-46ea-8618-6626f7dcb812n%40googlegroups.com
>>  
>> 
>> .
>>
>>
>>
>> -- 
>> Signed email is an absolute defence against phishing. This email has
>> been signed with my private key. If you import my public key you can
>> automatically decrypt my signature and be sure it came from me. Just
>> ask and I'll send it to you. Your email software can handle signing.
>>
>> -- 
>> 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/9cb82857-9a09-4da3-1ca6-792a39271d7e%40dewhirst.com.au
>>  
>> 
>> .
>>
>

-- 
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/9d763ba9-37fc-4839-8ade-01906772b8f4n%40googlegroups.com.


Re: Looking for available support to start a School Management Application

2022-11-07 Thread 'Steven Mapes' via Django users
I'd be very reluctant to use existing OS projects for such a project unless 
they have proven security and a strong policy in place as you're talking 
about handling sensitive data.

You should also double check with the school what license requirements they 
have as many will not allow 3rd party packages to be included for security 
or IP reasons.



On Monday, 7 November 2022 at 14:09:30 UTC julika...@gmail.com wrote:

> You have to do it yourself
> Not cloning an existing project on GitHub
> This will help you deburg the code yourself 
>
> On Mon, Nov 7, 2022, 5:03 PM Milson Munakami  wrote:
>
>> You can give it a try, my open sourced side project: 
>> https://github.com/Milstein/Student_Management_System
>>
>> On Mon, Nov 7, 2022 at 4:48 AM Eric Francis  wrote:
>>
>>> Many thanks for all your feedback.
>>> I will share details on what has been requested and the level of what I 
>>> have done so far.
>>> Thank you
>>>
>>> Eric
>>>
>>> On Mon, 7 Nov 2022, 12:33 kateregga julius,  wrote:
>>>
 Before starting on the system.
 Do information gathering,
 Design your database schema. 
  (Visual paradigm)
 Then set your development environment 

 On Mon, Nov 7, 2022, 11:44 AM Adekola Aderonmu  
 wrote:

> I am also interested  in collaborating with you. 
>
> On Mon, 7 Nov 2022, 06:37 DJANGO DEVELOPER,  
> wrote:
>
>> Are you looking for a paid support?
>>
>> On Mon, 7 Nov 2022, 9:41 am ritik sahoo,  wrote:
>>
>>> I have 
>>>
>>> On Mon, 7 Nov, 2022, 5:34 am Makrand,  wrote:
>>>
 I have developed School management system. I am interested to 
 complete support.

 On Mon, Nov 7, 2022, 4:27 AM Ahmed omar miladi <
 ahmedom...@gmail.com> wrote:

> hello frncseric i'm ahmed omar miladi i'm full stack developer and 
> django specialist i build a platform with name is allcarta check 
> https://www.allcarta.com and i can help you to build a 
> school management system
>
> On Sun, 6 Nov 2022 at 23:05, nef  wrote:
>
>> Hi everyone,
>> I am beginer in Django, not much experience.
>> I have been task to develop an application for school management 
>> (Admission, Registration,  Attendance, Report marks, and more 
>> functions).
>> I am wondering if there is an existing open smilare app or 
>> something which can be use as baseline to start or guide me with 
>> best 
>> practices.
>> Thank you
>> Eric
>>
>> -- 
>> 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/176ec5a0-2e00-4f53-b5c3-1bfc72f3aa94n%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...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/CAE3Dc2PkKJUF19fSykG%2BAmYByW6MY49UW%3DHSiKEL%2BPnZ6CHrvA%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...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/django-users/CAA_ekM%2BRQKYixBpZnZzYaN9cE9ete_PpPX%2BVJEj3e%2B%2BK2jktbQ%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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/CAJwehCvV8YkQXf5y5AM_OGTH0vmv_f_kuHyTq7K0p_HyKG3-Sg%40mail.gmail.com
>>>  
>>> 

Re: Using django 4.1 code in django 3.2

2022-11-03 Thread 'Steven Mapes' via Django users
It'll depend on whether your code is 3.2 compatible or not so you'd need to 
test it and check dependencies first

On Thursday, 3 November 2022 at 09:28:40 UTC Kasper Laudrup wrote:

> On 03/11/2022 10.18, Lakshyaraj Dash wrote:
> > Is there any problem if I deploy my django app written with django 4.1 
> > in django 3.2 on render ?
>
> Yes.
>
> 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/cb156148-ba0d-4460-bb54-cacc4cba9660n%40googlegroups.com.


Re: Looking for a Django firm

2022-09-15 Thread 'Steven Mapes' via Django users
I would be interesting in learning more Mike as would a one of my other 
business partners, both run companies UK based. https://mapestech.co.uk 
and https://www.springbourne-tech.com/

On Tuesday, 13 September 2022 at 01:02:09 UTC+1 Mike Dewhirst wrote:

> Hi all - I'm looking for a Django outfit with an interest in chemistry 
> or customers in the chemical industry in Australia.
>
> Possible opportunity.
>
> Best to respond off list and there will be an NDA.
>
> Cheers
>
> Mike
>

-- 
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/39c21d50-4dd8-4ce0-adfb-6f2b7f816c02n%40googlegroups.com.


Re: upgrading from 1.11 and ran into builtin permission clash

2022-07-04 Thread 'Steven Mapes' via Django users
What I'd advise is to upgrade to point just before it breaks, then update 
the permission to use a different name, then upgraded to 2.2 avoiding the 
name clash. Once upgraded then edit the permission to grant the permission 
to the users who need that permission based on your now renamed custom 
permission. Then remove your custom permission.

I'd do it this way so that you don't loose data on which users had that 
permission in the first place.  Or rename the permission at the start then 
upgrade.

For those saying "why not upgrade to 4" there are many good reasons why you 
may not/ can not, use Django 4 at the moment such as reliance on 
unsupported 3rd party libs or, more commonly, regressions and lack of LTS.  
It's quite common for companies/projects that need stability to only 
upgrade from LTS version to LTS version as they can't risk the regressions 
that often happen in between

On Sunday, 3 July 2022 at 14:16:36 UTC+1 jefrisimo...@gmail.com wrote:

> Deal
>
>
> Pada tanggal Min, 3 Jul 2022 03.48, Sheila Miguez  
> menulis:
>
>> I could try that.
>>
>> So far I've made a toy project to reproduce the problem and made a 
>> migration in 1.11 to remove the permission. When I started it up in 2.2 it 
>> suddenly said I had unapplied migrations in admin and auth.
>>
>> I don't know if renaming would have the same effect. I'll try it.
>>
>> On Friday, July 1, 2022 at 11:35:02 AM UTC-5 Jason wrote:
>>
>>> Joel Goldstick, would definitely not recommend doing an all in one 
>>> update.  That'd be like going from windows XP to 10 in one go.  For 
>>> personal projects, you could do it, but would side-eye any professional who 
>>> suggested doing this with a company or workplace project.
>>>
>>> https://docs.djangoproject.com/en/4.0/releases/2.1/#model-view-permission 
>>> is 
>>> liekly the permission being hit.  OP, would it be possible for you to 
>>> rename the original permission name in a migration in 1.11, and then move 
>>> forward with the migration?
>>>
>>>
>>> On Friday, July 1, 2022 at 9:35:31 AM UTC-4 mma...@gmail.com wrote:
>>>
 > What do I do about this? Clearly I should remove the permission I 
 created. How do I deal with the migration? Should I remove the permission 
 while I run the app as Django 1.11 before moving on to a 2.2 environment? 

 You could rename the current view_inventorychangelog record with a data 
 migration to avoid the constraint, upgrade to 2.2, and then move any 
 references to the old DB record to the new using a data migration.

 > Sorry, I can't answer your question. But, I am wondering why you are 
 > upgrading to a very out of date version of Django that is no longer 
 > supported. I think 3.2 is the oldest supported version. Why not 
 > upgrade to 4? 

 The options for uplifting severely out of date projects are to either 
 step-by-step migrate through older versions, or rewrite in the target 
 version.

 Cheers,
 Michael Manfre

 -- 
>> 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/cdfce75a-6bb1-4d1b-81a5-a03785cdddb4n%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/ef92d745-6cb1-41c2-9285-f4c0722759a3n%40googlegroups.com.


Re: Looking for experienced Django backend engineer

2022-07-04 Thread 'Steven Mapes' via Django users
I'm always looking for new clients, over 2 decades development experience, 
server admin experience, DBA etc See https://www.mapestech.co.uk/ for more

On Monday, 4 July 2022 at 04:11:26 UTC+1 anderso...@gmail.com wrote:

> Just forward to my teammate. 
> Good luck 
>
> On Sun, Jul 3, 2022 at 2:04 PM Mohammad Foysal  wrote:
>
>>
>> I have been working with python for the last two years. so I feel that I 
>> have some transferable skills to the position you are looking for. As a web 
>> application developer I have professional experience in various concepts of 
>> design and development.
>>
>> Please find enclosed my CV if you have any questions about my skills and 
>> experiences.
>>
>> Thank you for your time and consideration and I look forward to hearing 
>> from you soon.
>>
>>
>>
>> -- 
>> 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/veFA7lPluGg/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> django-users...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/529F41A5-EF89-437E-9DEF-5A1F6909811C%40gmail.com
>>  
>> 
>> .
>
>
>>
>> -- 
>> 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/veFA7lPluGg/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> django-users...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/529F41A5-EF89-437E-9DEF-5A1F6909811C%40gmail.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/e9b1b040-0a5e-4167-a947-25169bd26661n%40googlegroups.com.


Re: django html error

2022-04-05 Thread 'Steven Mapes' via Django users
If you check the output of runserver can you see a HTTP200 response? If so 
then the best starting place is to look into your projects base 
.urls.py and match up the URL you are requesting to the view 
being used. Once you have that what is happening next will depend on 
whether you are using functional views of class-based views.  If you are 
using an IDE with debugging such as PyCharm then I'd suggest adding a 
breakpoint walking through the code to make sure it is using  the view you 
expect

On Monday, 4 April 2022 at 01:40:08 UTC+1 rakeshsh...@gmail.com wrote:

> Will you send me some project codes pics so that i can help you.
>
> On Sat, 2 Apr, 2022, 8:34 pm 5021-Chandra Prakash.S,  
> wrote:
>
>> i am new to django, there is no error in my project but my html page is 
>> not loading ,its just appearing white blank screen when i run the server.I 
>> had checked settings.py file and edited the templates setting but then too 
>> my html file isn't loading.
>>
>> -- 
>> 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/e2efbfba-b612-48d8-9012-e277cb21d7e9n%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/23574240-b320-4e55-a668-a2f2f95ca4abn%40googlegroups.com.


Re: Django 1.5 app had subclasses without tables without proxy and now 1.6 won't sync with proxy

2022-04-05 Thread 'Steven Mapes' via Django users
Migrations came in in 1.7 the docs for 1.8 show the following


*Prior to version 1.7, Django only supported adding new models to the 
database; it was not possible to alter or remove existing models via 
the syncdb command (the predecessor to migrate 
).**Third-party
 
tools, most notably South , provided support 
for these additional types of change, but it was considered important 
enough that support was brought into core Django.*
I'd like to wish you good luck in making the move. I remember going from 
1.8 to 1.11 was often a pain and 1.11 to 2 a little less. Personally 
depending on the size of the project I'd be tempted to dump the data 
against whichever data it is and start a whole new project from scratch 
then import the data in at the end and then use django dumps-data but I 
feel your pain
On Monday, 4 April 2022 at 16:24:10 UTC+1 Antonis Christofides wrote:

> This looks strange, although I'm not familiar with exactly this particular 
> use case. I'm assuming you are referring to multi-table inheritance. Are 
> you certain Django 1.5 wasn't creating these tables? Was it using 
> migrations or South maybe? (Obviously I don't remember when Django started 
> supporting migrations.) When you say it tries to query these tables, when 
> does it attempt to do so? Could you post an example of a subclasss, 
> preferably with its base class?
>
>
> On 04/04/2022 09.09, John Abraham wrote:
>
> Hello. We're migrating someone else's app that was at Django 1.5.12 and 
> we're trying to bring it more up-to-date, step-by-step, starting with 
> Django 1.6.11. 
>
> There's an odd thing. There were a bunch of subclasses of a Model class, 
> that didn't have any database fields. Django wasn't creating nor using 
> tables for them at 1.5.12. But, Django 1.6.11 keeps trying to query these 
> non-existent tables for these subclasses, expecting them to have a single 
> field which would just be the pointer to their superclass.
>
> It seems the proper way to tell Django not to use tables for a class is to 
> set:
>
> class Meta:
> proxy = True
>
> But if we put this in, then when we run syncdb it strangly tries to query 
> the base classes before any tables are created at all in the database.  
>
> Any old-timers run into anything like this? Did Django 1.5 not need the 
> proxy = True in the meta to avoid creating tables for subclasses of Models 
> that didn't add any fields?
>
> They are using InheritanceManager from django_model_utils. 
>
> Thanks for any help! Banging our heads against the wall on this one for 
> quite a while now...
>
> -- 
> 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/45eec62d-a27c-4b5e-b8ff-6fc2981efa17n%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/2fe87247-13ba-41d5-a38e-6915de6822b3n%40googlegroups.com.


Re: Needs help

2022-02-23 Thread Steven Mapes
If you mean how can you take an image of something and turn it into a 
working design for a LEGO build then you need to look into tools that can 
convert 2D or better, 3D captures into lego designs if such sites/code 
exists. It certainly won't be in Django, but then you can build a Django 
site to use it.

For example https://legoimage.com/ and http://me.brickapic.com/ both take 
2D images and try to convert them into lego representations. You could 
write a script to use these websites via Selenium or possible just the 
request library, then wrap a Django front end to upload the original image 
and then submit that to the site fetching the results but why not just use 
them directly

On Tuesday, 22 February 2022 at 22:21:29 UTC heman...@gmail.com wrote:

> Did you mean to turn(print) images to physical objects especially using 3D 
> printers?
>
> On Tue, Feb 22, 2022, 12:55 Antonis Christofides <
> ant...@antonischristofides.com> wrote:
>
>> Hello Loic,
>>
>> Please how to turn a picture into a LEGO version? 
>> A project that does this will be welcome.
>>
>> Not sure what you mean by that and what it has to do with Django. You 
>> aren't going to get any useful answers in this list unless you change the 
>> way you ask questions.
>>
>> You should really take some time to read 
>> http://www.catb.org/~esr/faqs/smart-questions.html.
>>
>> Regards,
>>
>> Antonis
>>
>> Antonis Christofides+30-6979924665 <+30%20697%20992%204665> (mobile)
>>
>>
>> On 22/02/2022 11.30, loic ngounou wrote:
>>
>> Please how to turn a picture into a LEGO version? 
>> A project that does this will be welcome.
>> -- 
>> 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/26ef7fae-d58c-45f7-b132-c863aa2ebb03n%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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/990f2eab-b8d3-5ecc-1f5f-635d44e06c05%40antonischristofides.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/3b846993-955e-4190-a984-d2216c4731fdn%40googlegroups.com.


Re: Formsets

2022-02-06 Thread Steven Mapes
For me using select_related, prefetch_related and defer generally soft the 
issues. If that's still too slow then, if possible, you could look at using 
caching the queryset(s) you need the values. Have you run debug toolbar on 
the page to check what queries are running?

On Saturday, 5 February 2022 at 20:27:10 UTC stevesm...@hotmail.com wrote:

> Hello all!   
>
> I find formsets wildly useful...but very difficult to architect.  I have 
> them working...But I am running into a commonly documented problem...They 
> are slow as you build up the number of fields and queries.  Are there any 
> general tips that can be used or share on how to improve this issue?  I 
> have tried all of the commonly prescribed 
> solutions...select_related...prefetch_related...etc...But nothing seems to 
> help.  
>
> I realize that Queries take timebut I'm just trying to see if there is 
> a way to streamline them a bit.  It seems to me that formsets use a lot of 
> queries depending on the amount of data and that's the trade off. 
>
> Again thanks for any thoughts or comments.
>
> Steve
>
>

-- 
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/6513c105-8151-4c7a-8fd2-e692d5c5dcb5n%40googlegroups.com.


Re: Sanitize field from xss attacks in django models

2021-11-06 Thread Steven Mapes
Are you using the safe filter in your templates as otherwise that "attack" 
won't do anything but you are right that other XSS attack vectors can be 
used as per the example in the docs 
- 
https://docs.djangoproject.com/en/3.2/topics/security/#cross-site-scripting-xss-protection

If you are using safe then you could put a clean method on the form you are 
using to store the data in the first place to perform the 
validation/cleaning and if you wanted to go a step further and have places 
that update outside of forms then overload the save method of the class, 
put the custom validation in, then call super afterwards.

You could also look at django-bleach - 
https://pypi.org/project/django-bleach/

On Saturday, 6 November 2021 at 12:44:05 UTC omark...@gmail.com wrote:

> hi all
> i want to sanitize 'content' field from XSS attacks in django models
> so i installed 'bleach' and used but script like "an 
> evil() example" store as is (without sanitize script)
> Note: i need bleach via function in models
> Any idea ?
> Thanks
> [image: bleach-Models.png]
>

-- 
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/ba551e69-e4be-4f96-9aee-01c58c54c09en%40googlegroups.com.


Re: The Django app does not recognize a file that is in the folder for me

2021-10-22 Thread Steven Mapes
It'll most likely be because you are executing a file with a relative path 
and the Django is probably running in another folder so your best bet is to 
import BASE_DIR from settings.py then append the path to the app from your 
project root so /app.py

On Thursday, 21 October 2021 at 17:26:36 UTC+1 moriy...@gmail.com wrote:

> [image: image.png]
> Hi everyone
> I have an app.py file and the views.py file does not recognize it even 
> though they are in the same folder.
> In which file should I update that django will also recognize the app.py 
> file
> Thank you all
>
>
>
>

-- 
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/ed80fb87-5014-49c5-9c2c-78640665ddeen%40googlegroups.com.


Re: Single page Application

2021-10-07 Thread Steven Mapes
You can use Django as a back-end for an SPA by using something like Django 
Rest Framework  to put APIs in 
front of your models but it's not something that Django itself was planned 
to be. If you search online you'll find various other ways of making Django 
play nice with Angular or React along with various github projects within 
that space as well.

So in short, no it has not been in Django's plan but yes is it very much 
possible

On Thursday, 7 October 2021 at 13:23:18 UTC+1 acc.k...@gmail.com wrote:

> Hi 
>
> Did Django Have plan to issue Django version with Single page application 
> technic ??? 
>
> 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/7e0fac40-db13-4cb1-9147-16bbcc8852b2n%40googlegroups.com.


Re: Django Permission

2021-10-06 Thread Steven Mapes
If you have the code in a file as you have then what's happening is that 
you trying to create the same Permission everytime Django runs.  What you 
want to do is to create the permission against the BlogPost model itself 
within the class Meta. Then run a makemigrations and migrate to create the 
permission once. After that you'll be able to use it.

See 
https://docs.djangoproject.com/en/3.2/topics/auth/customizing/#custom-permissions

On Wednesday, 6 October 2021 at 04:38:14 UTC+1 aadil1...@gmail.com wrote:

> I am creating custom permission in my Django myapp's module with the 
> follwing code;
>
> from myapp.models import BlogPost
> from django.contrib.auth.models import Permission from 
> django.contrib.contenttypes.models import ContentType 
>
> content_type = ContentType.objects.get_for_model(BlogPost) 
>
> permission = Permission.objects.create(
> codename='can_publish', 
>   name='Can Publish Posts', 
>   content_type=content_type, )
>
> when i use this permission in my views, i get the following error,
>
> File 
> "/home/aadil/.local/share/virtualenvs/crawling_next-ao7NwWLu/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py",
>  
> line 423, in execute
>
> return Database.Cursor.execute(self, query, params)
>
> django.db.utils.IntegrityError: UNIQUE constraint failed: 
> auth_permission.content_type_id, auth_permission.codename
>
> I am new to djagno please help??
>
>

-- 
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/1e303e72-1d0c-43b3-a23f-60bd0aa797c9n%40googlegroups.com.


Re: Multiple websites but one authentication system

2021-08-26 Thread Steven Mapes
You could use oauth between the projects. Look 
into https://django-oauth-toolkit.readthedocs.io/en/latest/ which would 
enable you to set up domain one as your authentication backend which the 
others could use

On Thursday, 26 August 2021 at 09:46:11 UTC+1 Isaac wrote:

> Am trying to understand what you said sir but am still confuse, how will 
> the domain2.com recognize that this person is a user ? Also how will the 
> database schema  look like ? Will the two database be connected in a way ? 
>
> On Thursday, 26 August 2021 at 09:29:47 UTC+1 eugenet...@gmail.com wrote:
>
>> My suggestion is that you can create a single entry where after login the 
>> system redirects users to the home page containing all these domains as 
>> icons and then the user selects the one he wants.
>>
>> On Thu, 26 Aug 2021 at 10:18, Isaac  wrote:
>>
>>> Am working on a company website and there will be having more websites 
>>> as time goes on, they don't want to be creating authentication system in 
>>> each of their website. To avoid stress in creating multi account on these 
>>> platform, there is a need to have one website that will do everything 
>>> relating to authentication and authorization, just Google is.
>>>  For example we will have domain1.com which will handle everything 
>>> relating to  authentication and authorization(Signup,Signin,Password reset, 
>>> Password change, Logout) while other domains like domain2.com, 
>>> domain3.com, domain5.com etc will be falling back to domain1.com for 
>>> authenticating users. Plz any suggesting on how i can do this will be 
>>> highly 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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/django-users/efe93e26-23cb-4557-a763-1c2790bf541bn%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>
>>
>> -- 
>> *TUYIZERE Eugene*
>>
>>
>>
>> *Msc Degree in Mathematical Science*
>>
>> *African Institute for Mathematical Sciences (AIMS Cameroon)Crystal 
>> Garden-Lime, Cameroon*
>>
>> Bsc in Computer Science
>>
>> *UR-Nyagatare Campus*
>>
>> Email: eugene@aims-cameroon.org
>>eugenet...@gmail.com
>>
>> Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38
>>
>

-- 
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/29ad46bc-86ce-45bc-a83a-441fe2208e6an%40googlegroups.com.


Async Help Needed

2021-08-12 Thread Steven Mapes
Does anyone have some links to good guides on getting asnyc to work with 
Django? I have a use case where I really need to have a view give an async 
response but I can't get even the most basic of examples working.

I've tried the examples from https://testdriven.io/blog/django-async-views/ 
with a simple view of:

async def test_view(request):
return HttpResponse("Hello, async Django!")

I've installed uvicorn and am running it with  uvicorn 
my_project.asgi:application --reload

My sync views work as expected but the async one just returns an error of "*The 
view sample.views.test_view didn't return an HttpResponse object. It 
returned an unawaited coroutine instead. You may need to add an 'await' 
into your view.*"


-- 
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/64f90a01-76fe-4e01-ab3a-a6a0910038c9n%40googlegroups.com.


Re: Django Search Between 2 Dates

2021-02-03 Thread Steven Mapes
Are you looking at client-side filtering within datatables or server side 
filtering? Thiago's suggestion related to using filters when you fetch the 
queryset 
(https://docs.djangoproject.com/en/3.1/topics/db/queries/#retrieving-specific-objects-with-filters)

On Wednesday, 3 February 2021 at 13:24:40 UTC eugenet...@gmail.com wrote:

> Dear Thiago,
>
> Can I have some documentations or sample codes please?
>
> On Wed, 3 Feb 2021 at 15:16, Thiago Luiz Parolin  
> wrote:
>
>> Hi...
>> Normally i use field__lte and field__gte 
>>
>> Em qua, 3 de fev de 2021 08:11, Eugene TUYIZERE  
>> escreveu:
>>
>>> Dear Team,
>>>
>>> I need help. I have a list of Items in a table. And I want to filter 
>>> some data between dates (start and end date). Please help me to do a search 
>>> between the two date. I am using Data table but I can use the other way if 
>>> possible for this purpose.
>>>
>>> Regards, 
>>>
>>> -- 
>>> *TUYIZERE Eugene*
>>>
>>>
>>>
>>> *Msc Degree in Mathematical Science*
>>>
>>> *African Institute for Mathematical Sciences (AIMS Cameroon)Crystal 
>>> Garden-Lime, Cameroon*
>>>
>>> Bsc in Computer Science
>>>
>>> *UR-Nyagatare Campus*
>>>
>>> Email: eugene@aims-cameroon.org
>>>eugenet...@gmail.com
>>>
>>> Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38
>>>
>>> -- 
>>> 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/CABxpZHuPozCVEUFjWFYxipwTyGrY9Syyw-Et%2B_NAqXn6GevNow%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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CANbmKytQ%3D1hiSQyj5%2Bkj-Dvy2Tk%2B0YUukORMui0cP7BPwXNZdg%40mail.gmail.com
>>  
>> 
>> .
>>
>
>
> -- 
> *TUYIZERE Eugene*
>
>
>
> *Msc Degree in Mathematical Science*
>
> *African Institute for Mathematical Sciences (AIMS Cameroon)Crystal 
> Garden-Lime, Cameroon*
>
> Bsc in Computer Science
>
> *UR-Nyagatare Campus*
>
> Email: eugene@aims-cameroon.org
>eugenet...@gmail.com
>
> Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38
>

-- 
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/98702a6a-6341-4495-b879-977e7447c6f8n%40googlegroups.com.


Re: hello guys, how can I upload multiple images using single button? help me please

2021-01-07 Thread Steven Mapes
Within Django Admin or somewhere else?
Are you using FileFields and trying to save to the models or are you just 
trying to POST multiple files?

On Thursday, 7 January 2021 at 12:25:10 UTC allaberdi...@gmail.com wrote:

>

-- 
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/ba3a4c6a-0788-457f-8e7d-576d612a7f61n%40googlegroups.com.


Re: Please help. ImportError with django 3.1

2021-01-05 Thread Steven Mapes
Do you have a function in the hello/views.py? That's the first place to 
start as the error suggests you do not.
 

On Monday, 4 January 2021 at 14:39:32 UTC joshr...@gmail.com wrote:

> hello is ur app name if so
> from hello import views 
> try this 
> if not be clear what is hello,index
>
> On Mon, Jan 4, 2021 at 4:24 PM Gasar Iyali  wrote:
>
>> Hi
>> Please I need your help.
>> I have just installed django and when I try to run django I get this 
>> error message and nothing comes up in my browser.
>> This is the error message that I get in the command prompt
>>
>> !*<<<(env) C:\Users\Documents\Learn 
>> Python\django\my_django_work\my_django_work\urls.py", line 19, in 
>> from hello.views import index
>> ImportError: cannot import name 'index' from 'hello.views'>>>!!
>>
>> 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...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/cec9f80a-7d69-4702-8b4c-37817fc6caean%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/60b7ffc6-88d0-4057-b61c-6885ebdefb23n%40googlegroups.com.


Re: attempt to write a readonly database

2020-12-30 Thread Steven Mapes
It's a permissions error on the file.  For those running Linux change to 
the directory and type  *ls -l *.sqllite* so we can see who the owner and 
group are on the file. If you are running nginx it should be the same user 
as nginx is configured to run as (www-data) by default.  If the owner (or 
group) are www-data then look at the permissions, does that user/group have 
read and write on the file.

If you are on windows it's the same issue either the owner or the file 
permissions are wrong

On Wednesday, 30 December 2020 at 16:14:10 UTC jayo...@gmail.com wrote:

> I got the same error when I deployed my Django web app over Nginx server 
> and tried to access Django admin. If anyone knows the solution please 
> revert back.
> regards,
> govind
>
>
>
> On Wed, 30 Dec 2020 at 20:45, RANGA BHARATH JINKA  
> wrote:
>
>> hi,
>>
>> Try running as the root user using sudo permissions.
>>
>> All the best
>>
>> On Wed, Dec 30, 2020 at 8:18 PM Steven Mapes  
>> wrote:
>>
>>> This normally means that the user you are running your project as does 
>>> not have access to the SQLLite database file. I can see that you are 
>>> running on windows so fine the database in the file system and check and 
>>> change the owner as well as ensuring that the owner/group has read/write 
>>> access to the file.
>>>
>>> On Thursday, 24 December 2020 at 07:23:24 UTC parul@gmail.com wrote:
>>>
>>>> Can anyone help with this?
>>>>
>>>>
>>>> OperationalError at /users/
>>>> Request Method: POST
>>>> Request URL: http://localhost:8000/users/
>>>> Django Version: 3.0.3
>>>> Exception Type: OperationalError
>>>> Exception Value: 
>>>>
>>>> attempt to write a readonly database
>>>>
>>>> Exception Location: 
>>>> C:\Users\parul\anaconda\envs\MyDjangoEnv\lib\site-packages\django\db\backends\sqlite3\base.py
>>>>  
>>>> in execute, line 396
>>>> Python Executable: C:\Users\parul\anaconda\envs\MyDjangoEnv\python.exe
>>>> Python Version: 3.8.5
>>>> Python Path: 
>>>>
>>>> ['C:\\Users\\parul\\Desktop\\Djangoforms\\ProTwo',
>>>>  'C:\\Users\\parul\\anaconda\\envs\\MyDjangoEnv\\python38.zip',
>>>>  'C:\\Users\\parul\\anaconda\\envs\\MyDjangoEnv\\DLLs',
>>>>  'C:\\Users\\parul\\anaconda\\envs\\MyDjangoEnv\\lib',
>>>>  'C:\\Users\\parul\\anaconda\\envs\\MyDjangoEnv',
>>>>  'C:\\Users\\parul\\anaconda\\envs\\MyDjangoEnv\\lib\\site-packages']
>>>>
>>>> Server time: Wed, 23 Dec 2020 16:14:46 +
>>>>
>>>>
>>>>
>>>> ->>> Also, i checked the properties in db.sqlite3, all the 
>>>> permissions are checked...write permission also
>>>> can anyone help 
>>>>
>>> -- 
>>> 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/e5d80366-037b-4ebc-a4ac-9bc1e32bf5ben%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/django-users/e5d80366-037b-4ebc-a4ac-9bc1e32bf5ben%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>
>>
>> -- 
>> 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...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/CAK5m3151VcaY1uoYhapa5e8cRdNwtzm8OND3Gf9k7qxtwOP_6Q%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/django-users/CAK5m3151VcaY1uoYhapa5e8cRdNwtzm8OND3Gf9k7qxtwOP_6Q%40mail.gmail.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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/a1467545-f551-4760-ac2c-d28671dc30b9n%40googlegroups.com.


Re: attempt to write a readonly database

2020-12-30 Thread Steven Mapes
This normally means that the user you are running your project as does not 
have access to the SQLLite database file. I can see that you are running on 
windows so fine the database in the file system and check and change the 
owner as well as ensuring that the owner/group has read/write access to the 
file.

On Thursday, 24 December 2020 at 07:23:24 UTC parul@gmail.com wrote:

> Can anyone help with this?
>
>
> OperationalError at /users/
> Request Method: POST
> Request URL: http://localhost:8000/users/
> Django Version: 3.0.3
> Exception Type: OperationalError
> Exception Value: 
>
> attempt to write a readonly database
>
> Exception Location: 
> C:\Users\parul\anaconda\envs\MyDjangoEnv\lib\site-packages\django\db\backends\sqlite3\base.py
>  
> in execute, line 396
> Python Executable: C:\Users\parul\anaconda\envs\MyDjangoEnv\python.exe
> Python Version: 3.8.5
> Python Path: 
>
> ['C:\\Users\\parul\\Desktop\\Djangoforms\\ProTwo',
>  'C:\\Users\\parul\\anaconda\\envs\\MyDjangoEnv\\python38.zip',
>  'C:\\Users\\parul\\anaconda\\envs\\MyDjangoEnv\\DLLs',
>  'C:\\Users\\parul\\anaconda\\envs\\MyDjangoEnv\\lib',
>  'C:\\Users\\parul\\anaconda\\envs\\MyDjangoEnv',
>  'C:\\Users\\parul\\anaconda\\envs\\MyDjangoEnv\\lib\\site-packages']
>
> Server time: Wed, 23 Dec 2020 16:14:46 +
>
>
>
> ->>> Also, i checked the properties in db.sqlite3, all the 
> permissions are checked...write permission also
> can anyone help 
>

-- 
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/e5d80366-037b-4ebc-a4ac-9bc1e32bf5ben%40googlegroups.com.


Re: Multiple registration and login in django

2020-02-03 Thread Steven Mapes
First of all I urge you to ask yourself this question before you begin *"Why 
do I want to write my own authentication system?". *Generally speaking 
there is little reason not to use either the built in django authentication 
system or an existing 3rd party library if you wish to use OAuth for 
example.

That said sometimes you do, and I indeed have had to once myself but I 
still used the django users table I just had to use different way of 
performing authentication and then used the login() function to 
programmatically log the user in afterwards.

Putting that aside from what you have described I do not see why you could 
not and indeed should not use the built in authentication system. You can 
extend the users table by creating a new model with a models.OneToOneField 
and then setup a post_save signal on the User model to automatically an 
instance of that new model (assuming it had no required attributes other 
than the foreign key.  

If you wish to have custom registration forms then just create them as you 
would any other form and use Django's authentication system to authenticate 
them and then log them in - 
https://docs.djangoproject.com/en/3.0/topics/auth/default/#authenticating-users

Here's a very loose example of a user profile model that extends the user 
table to store the date of birth

class UserProfile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE, 
related_name="profile")

dob = models.DateField(blank=True, null=True, verbose_name="Date Of Birth")

 
With this being an example of a signal that is used to ensure that a record 
is created when the user instance is saved

@receiver(post_save, sender=User)
def create_user_profile(sender, instance, created, **kwargs):
if created:
UserProfile.objects.create(user=instance)




On Monday, 3 February 2020 04:44:49 UTC, nrupesh08 wrote:
>
> Hi, 
> How to create multiple registration in django. and login also. without 
> default django registeration and login form.
> my own and saparet registration table and login table . to authencation my 
> own tables (registration and login).
>
> ex: registration table (id, name, email, mobile, date of birth, gender, 
> password, profile pic) and leaterly, upload files an individual persons 
> through registration id.
>
> plese tell me how do it? or reference code or links send me 
>

 

-- 
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/b3a6b1b7-cb75-43eb-9fe7-7734a937a22f%40googlegroups.com.