Django dynamic multiple databases

2023-08-12 Thread pankaj palmate
I want to creating  saas based application containing one super admin and
rest will be customers where each customer will have their own database
.want multiple database with dynamic credentials based on request.I want
the database to be identified from the subdomain provided.Is this possible
using django ? If yes how ? If not what's the option?
I did read about the django tenants but it is schema based but I want
multiple database approach while creating tenants.(database must be
identified from subdomains )

Thanks and regards,
Pankaj palmate

-- 
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/CAPyMU1JJXUXXDLBSy4V-f-YYex9ZuaPP1CAL%3DPZSFkvhsc5K4Q%40mail.gmail.com.


Apache and mod_wsgi with django

2023-01-01 Thread pankaj palmate
Hi i am using Apache with mod_wsgi.i want to serve 5000 users at a time.how
many processes and threads should I use in order to serve 5000 connections
concurrently...in wsgi daemon process ?

-- 
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/CAPyMU1LG_JWo_4st5mjZ5Ps%2BMdJoBnHQHCya1CK-Qm7AZjGYnw%40mail.gmail.com.


Re: Facing Problem

2022-09-10 Thread pankaj palmate
Hi Anil , you might need to pass Id In your view as argument

On Sat, 10 Sep, 2022, 9:51 pm Anil Singh,  wrote:

> Dear All
> When i running our program then coming this type of error, what is
> solutions
>
> TypeError at /errorapi/insuranceDetails/get() missing 1 required
> positional argument: 'id'
> Request Method:
> GET
> Request URL:
> http://127.0.0.1:8000/errorapi/insuranceDetails/
> Django Version:
> 2.1.7
> Exception Type:
> TypeError
> Exception Value:
> get() missing 1 required positional argument: 'id'
> Exception Location:
> /home/abcd/.local/lib/python3.8/site-packages/rest_framework/views.py in
> dispatch, line 502
> Python Executable:
> /usr/bin/python3
> Python Version:
> 3.8.10
> Python Path:
> ['/home/abcd/Desktop/error', '/usr/lib/python38.zip',
> '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload',
> '/home/abcd/.local/lib/python3.8/site-packages',
> '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages']
> Server time:
> Sat, 10 Sep 2022 09:41:27 +
>
> --
> 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/d576d224-a636-41a2-98e3-17dd0a7f7edcn%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/CAPyMU1LawtH5WPCkiir%3DPiQEUcXz1MV_37a__dAZRNm%3DqR7NFg%40mail.gmail.com.


Re: How to delete user salary record , but want to keep history till deleted date

2022-01-07 Thread pankaj palmate
Then simply make that records inactive by adding one flag in table and
instead of deleting make It inactive

On Fri, 7 Jan, 2022, 7:22 pm Feroz Ahmed,  wrote:

> Hi,
> How to delete user salary record , but want to keep history till deleted
> date.
>
> ex:
>
>1. Month June
>2. Month July
>3. Month Aug
>4. delete user record from Sep.
>
> --
> 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/f2ba2f5f-ed12-45e5-8d2a-d2b1b2590154n%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/CAPyMU1J4dBjDEYobedAe5%3DsybK4j%2BgO-g-mWam9mc7tAajcGiw%40mail.gmail.com.


Re: Handling url in class based views.

2021-11-15 Thread pankaj palmate
Also request in def get itself

On Tue, 16 Nov, 2021, 9:40 am pankaj palmate, 
wrote:

> def get(self, pk, *args,**kwargs ) :
> ...body..
>
> On Tue, 16 Nov, 2021, 2:57 am Aadil Rashid, 
> wrote:
>
>> Hello my dear Friends, I have a question regarding Class Based Views.
>>
>> If we have a url e.g,
>> path('item//',  views.funView)
>>
>> We can handle it in  Function Based Views,
>> By simply
>> def funView(request, slug) :
>>#logic
>>return render(request, "tempName")
>>
>>
>> We can even pass this slug as a context in this template,
>>
>>
>> My question is how can we achieve this by using class Based Views.
>>
>>
>> Thanks in advance.
>>
>> --
>> 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/CAAYXZx_Sn2BBhPWZXi_zEECN-x7wu9sDQJfYeVH31oHhemptpQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAAYXZx_Sn2BBhPWZXi_zEECN-x7wu9sDQJfYeVH31oHhemptpQ%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/CAPyMU1%2BNbEnuO6nDL_hmo6zqVq6cE7SN%3DciA_JgbyZxwcft0Pw%40mail.gmail.com.


Re: Handling url in class based views.

2021-11-15 Thread pankaj palmate
def get(self, pk, *args,**kwargs ) :
...body..

On Tue, 16 Nov, 2021, 2:57 am Aadil Rashid,  wrote:

> Hello my dear Friends, I have a question regarding Class Based Views.
>
> If we have a url e.g,
> path('item//',  views.funView)
>
> We can handle it in  Function Based Views,
> By simply
> def funView(request, slug) :
>#logic
>return render(request, "tempName")
>
>
> We can even pass this slug as a context in this template,
>
>
> My question is how can we achieve this by using class Based Views.
>
>
> Thanks in advance.
>
> --
> 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/CAAYXZx_Sn2BBhPWZXi_zEECN-x7wu9sDQJfYeVH31oHhemptpQ%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/CAPyMU1%2BV-e%3Dw-ZRN31d%3D_BtgPWujn%3DK7ExwJ6fOug8oLP7vPNQ%40mail.gmail.com.


Re: Celery tutorial

2021-10-26 Thread pankaj palmate
Simple is better' than complex article

On Tue, 26 Oct, 2021, 9:33 pm parag gupta,  wrote:

> Is there any good celery tutorial that might 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/CA%2BepXomxE3Dd5_aX0esDnXMdwBOOfr7f1P9PTosQSC4xLidAEA%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/CAPyMU1%2BuVjeU1J8F3%2Bqv4C-wx1%2Bsbpu7uNGLgoiJUcL45TCg8g%40mail.gmail.com.


Re:

2021-07-18 Thread pankaj palmate
Hi Abhishek thanks for the response but we cannot avoid users from download
using it

On Mon, 19 Jul, 2021, 9:13 am Abhishek Choudhury, <
choudhuryabhishe...@gmail.com> wrote:

> Hey Pankaj,
>
> I think you can achieve this by adding an expiration date field in the
> model. So for example, the respective video will be available to view only
> if the today's date is between the  expiration date. ( Today's date <
> expiration date)
>
> And once today's date is exceeding 1 year period ( today date >=
> expiration date) , you can show a small modal/pop-up saying "hey! The
> subscription is over. Please buy the subscription to enjoy the content".
>
> Hope this helps and solves the query.
>
>
>
> Thanks and Regards,
> Abhishek Choudhury
> Ph. no: +91 7903717967
>
> On Mon, 19 Jul, 2021, 7:14 AM pankaj palmate, <
> pankajpalmate61...@gmail.com> wrote:
>
>> Hello please help me in this, I want to provide my video content to
>> users  and my objects are stored in AWS s3 buckets.I want user to view
>> video for 1 year of validity but restrict to download the video...also he
>> will have acess through my website only(i.e. he should not use s3 object
>> url to access the file and download using Chrome)
>> Thanks in advance
>>
>> --
>> 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/CAPyMU1%2Bwwd6q%2B8m2LpJC6rUB1jxEzHQmh4800AzqBoZ8cW%2BAJw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAPyMU1%2Bwwd6q%2B8m2LpJC6rUB1jxEzHQmh4800AzqBoZ8cW%2BAJw%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/CA%2B3kJUbihUsFXnNCKr-R%2BffYdoGzjKO4EHfV%2BL0bb2iz%3D-saaw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CA%2B3kJUbihUsFXnNCKr-R%2BffYdoGzjKO4EHfV%2BL0bb2iz%3D-saaw%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/CAPyMU1%2BfFHm6NueEEReUH8MU8hYH%3DAMDgH3bwuRjpiYGVvTYfw%40mail.gmail.com.


[no subject]

2021-07-18 Thread pankaj palmate
Hii ,Thank you for your response...but what hotstar does because i think
their videos are not possible to download and if not how can we make it
hard to download ?any referell link?

On Mon, 19 Jul, 2021, 7:38 am Benjamin Schollnick, <
bscholln...@schollnick.net> wrote:

> Good luck.
>
> If the user can play the video, then they by definition have to be able to
> download the video.  Unless you want to create your own proprietary
> streaming mechanism, if the web browser can display the video, it has to be
> able to cache the video (eg download it locally).
>
> For example, you can easily download almost any video off of youtube,
> without issue.  See youtube-dl, as well as dozens of other applications
> that can do this.
>
> Yes, there are ways to make this harder, but to play the video the
> computer has to be able to use some mechanism to download the video.
>
> - Benjamin
>
>
>
> On Jul 18, 2021, at 9:44 PM, pankaj palmate 
> wrote:
>
> Hello please help me in this, I want to provide my video content to users
> and my objects are stored in AWS s3 buckets.I want user to view video for 1
> year of validity but restrict to download the video...also he will have
> acess through my website only(i.e. he should not use s3 object url to
> access the file and download using Chrome)
> Thanks in advance
>
> --
> 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/CAPyMU1%2Bwwd6q%2B8m2LpJC6rUB1jxEzHQmh4800AzqBoZ8cW%2BAJw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAPyMU1%2Bwwd6q%2B8m2LpJC6rUB1jxEzHQmh4800AzqBoZ8cW%2BAJw%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/C626942B-E102-476B-A136-733EC3B74712%40schollnick.net
> <https://groups.google.com/d/msgid/django-users/C626942B-E102-476B-A136-733EC3B74712%40schollnick.net?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/CAPyMU1%2Bycgp9oTTDNXGfRAe7mV6KqEAaZM6oHkwF18r%3D0FT97A%40mail.gmail.com.


[no subject]

2021-07-18 Thread pankaj palmate
Hello please help me in this, I want to provide my video content to users
and my objects are stored in AWS s3 buckets.I want user to view video for 1
year of validity but restrict to download the video...also he will have
acess through my website only(i.e. he should not use s3 object url to
access the file and download using Chrome)
Thanks in advance

-- 
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/CAPyMU1%2Bwwd6q%2B8m2LpJC6rUB1jxEzHQmh4800AzqBoZ8cW%2BAJw%40mail.gmail.com.


Re: Preview of Form

2021-05-29 Thread pankaj palmate
Yes using javascript

On Sat, 29 May, 2021, 11:22 pm Kumar Gaurav, 
wrote:

> Hi All,
>
> How to show a preview of the form filled before submitting. I don't want
> to edit the form in preview but just to see how it will be submitted.
>
> Can Django form tools will help or should I use Jquery or Javascript for
> this purpose. Please suggest a better solution.
>
>
> Thank You
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6a392a73-4f99-4d58-8501-780ba1cf14b7n%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/CAPyMU1%2BBmf1%3DN1h2Mxdu1oUa1JZvH%2B0%3DbyYvS7CsGohAvY6gOg%40mail.gmail.com.


Re: Conversion of web app to mobile app

2021-05-08 Thread pankaj palmate
If you want a straight approach there are some sites which will make mobile
app for your django webApp and they will send a link of the mobile app for
free if you want only a trial but if you want to do from your side and want
to publish on play store you can definitely do that with a simple code on
Android studio...

On Sun, 9 May, 2021, 3:13 am Kopal Shrivastava, 
wrote:

> Hello,
>
> I wanted to create a mobile app using django but wanted to know if I
> should straight away work on a mobile app or work on a web app and then
> convert it into a mobile app. Also wanted to know how difficult and time
> taking is the process to convert a web app into mobile app.
>
> Thanks in advance
>
> --
> 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/132268f5-894d-4ee7-96ed-2a293feefcbfn%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/CAPyMU1JCdyf728KrFBCdEthqvkYbUyPjVACyAUjdr4j_Oj1%2BEg%40mail.gmail.com.


Re: runserver problem

2021-03-28 Thread pankaj palmate
It seems you have not installed django properly

On Sun, 28 Mar, 2021, 7:34 pm Sujit Mandal,  wrote:

> i am totally new with django. I tried to print Hello World in my first app
> but i failed. Cmd showed some error but i can't understand what i make
> mistake.
>
> ERROR:
>
> C:\Users\Admission Solution\allprojects\telusko>python manage.py runserver
> Traceback (most recent call last):
>   File "C:\Users\Admission Solution\allprojects\telusko\manage.py", line
> 11, in main
> from django.core.management import execute_from_command_line
> ModuleNotFoundError: No module named 'django'
>
> The above exception was the direct cause of the following exception:
>
> Traceback (most recent call last):
>   File "C:\Users\Admission Solution\allprojects\telusko\manage.py", line
> 22, in 
> main()
>   File "C:\Users\Admission Solution\allprojects\telusko\manage.py", line
> 13, in main
> raise ImportError(
> ImportError: Couldn't import Django. Are you sure it's installed and
> available on your PYTHONPATH environment variable? Did you forget to
> activate a virtual environment?
>
> C:\Users\Admission Solution\allprojects\telusko>workon test
> (test) C:\Users\Admission Solution\allprojects\telusko>python manage.py
> runserver
> Watching for file changes with StatReloader
> Performing system checks...
>
> Exception in thread django-main-thread:
> Traceback (most recent call last):
>   File "c:\users\admission
> solution\appdata\local\programs\python\python39\lib\threading.py", line
> 954, in _bootstrap_inner
> self.run()
>   File "c:\users\admission
> solution\appdata\local\programs\python\python39\lib\threading.py", line
> 892, in run
> self._target(*self._args, **self._kwargs)
>   File "C:\Users\Admission
> Solution\Envs\test\lib\site-packages\django\utils\autoreload.py", line 53,
> in wrapper
> fn(*args, **kwargs)
>   File "C:\Users\Admission
> Solution\Envs\test\lib\site-packages\django\core\management\commands\runserver.py",
> line 118, in inner_run
> self.check(display_num_errors=True)
>   File "C:\Users\Admission
> Solution\Envs\test\lib\site-packages\django\core\management\base.py", line
> 392, in check
> all_issues = checks.run_checks(
>   File "C:\Users\Admission
> Solution\Envs\test\lib\site-packages\django\core\checks\registry.py", line
> 70, in run_checks
> new_errors = check(app_configs=app_configs, databases=databases)
>   File "C:\Users\Admission
> Solution\Envs\test\lib\site-packages\django\core\checks\urls.py", line 40,
> in check_url_namespaces_unique
> all_namespaces = _load_all_namespaces(resolver)
>   File "C:\Users\Admission
> Solution\Envs\test\lib\site-packages\django\core\checks\urls.py", line 57,
> in _load_all_namespaces
> url_patterns = getattr(resolver, 'url_patterns', [])
>   File "C:\Users\Admission
> Solution\Envs\test\lib\site-packages\django\utils\functional.py", line 48,
> in __get__
> res = instance.__dict__[self.name] = self.func(instance)
>   File "C:\Users\Admission
> Solution\Envs\test\lib\site-packages\django\urls\resolvers.py", line 589,
> in url_patterns
> patterns = getattr(self.urlconf_module, "urlpatterns",
> self.urlconf_module)
>   File "C:\Users\Admission
> Solution\Envs\test\lib\site-packages\django\utils\functional.py", line 48,
> in __get__
> res = instance.__dict__[self.name] = self.func(instance)
>   File "C:\Users\Admission
> Solution\Envs\test\lib\site-packages\django\urls\resolvers.py", line 582,
> in urlconf_module
> return import_module(self.urlconf_name)
>   File "c:\users\admission
> solution\appdata\local\programs\python\python39\lib\importlib\__init__.py",
> line 127, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 1030, in _gcd_import
>   File "", line 1007, in _find_and_load
>   File "", line 986, in
> _find_and_load_unlocked
>   File "", line 680, in _load_unlocked
>   File "", line 790, in exec_module
>   File "", line 228, in
> _call_with_frames_removed
>   File "C:\Users\Admission Solution\allprojects\telusko\telusko\urls.py",
> line 20, in 
> path('', include('calc.urls')),
>   File "C:\Users\Admission
> Solution\Envs\test\lib\site-packages\django\urls\conf.py", line 34, in
> include
> urlconf_module = import_module(urlconf_module)
>   File "c:\users\admission
> solution\appdata\local\programs\python\python39\lib\importlib\__init__.py",
> line 127, in import_module
> return _bootstrap._gcd_import(name[level:], package, level)
>   File "", line 1030, in _gcd_import
>   File "", line 1007, in _find_and_load
>   File "", line 984, in
> _find_and_load_unlocked
> ModuleNotFoundError: No module named 'calc.urls'
> Traceback (most recent call last):
>   File "C:\Users\Admission Solution\allprojects\telusko\manage.py", line
> 22, in 
> main()
>   File "C:\Users\Admission Solution\allprojects\telusko\manage.py", line
> 18, in main
> execute_from_command_line(sys.argv)
>   File "C:\Users\Admission
> 

Re: Best and affordable payment gateway for shopping carts

2021-03-24 Thread pankaj palmate
What about paypal?

On Tue, 23 Mar, 2021, 6:30 pm Ram,  wrote:

> Hi,
>
> We are exploring best payment gateway for a Django based web and mobile
> application. Our criteria for choosing this payment gateway is like  this:
>
> 1. Looking for either affordable or free option
>
> 2. Suitable for users in North America
>
> 3. Support all type of credit cards
>
> 4. Compatible for Django web an mobile application
>
> If anyone has already implemented for Django applications could you share
> you suggestions?
>
> 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/CA%2BOi5F3KfbG296_XGdQKU5fkfSgcX%2BfcO0Fxj6VeHu59-T%3DQ_A%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/CAPyMU1%2BxzjCZ9kE4e6od0T3H_uU2E3wAfnzW0KpyepCipo%2Bh8g%40mail.gmail.com.


Re: File Input from User

2021-03-19 Thread pankaj palmate
yes you can do just make one anchor tag and call view asynchronously*(using
ajax) *so that particular set of image is shown and then prepare logic for
selecting image and submit the form as you do

On Fri, Mar 19, 2021 at 12:07 PM Kumar Gaurav 
wrote:

> Hi Everyone,
>
> I have a social media kind of portal in Django where user can post an
> image and write something.
> Earlier for image , I used input type=file so that user can select image
> from there system . But for my requirement, now I want the user to to have
> an option to either upload or select images from the given set just like
> selecting some gif's or stickers in social sites. How to do that ?
>
> Please suggest some solution.
>
> Thank You!!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/67527bc4-a297-4161-bad0-0c7450b5c966n%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/CAPyMU1%2BCCQ-n-2gVFikwAnas80FMhk53BnaC81gJg6QeQ_zo3Q%40mail.gmail.com.


Re: Redirect one page to another on Django tremplate

2021-01-07 Thread pankaj palmate
can you elaborate it more means are you taking about Response?


On Thursday, January 7, 2021 at 10:48:33 PM UTC+5:30 amanmo...@gmail.com 
wrote:

> Hello Django Lover,
>
> I have a doubt how can we redirect one page to another on API response / 
> fetch response on Django template .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/b96bed14-da97-4f0e-a9d5-a1b044f45dc7n%40googlegroups.com.