Re: [How to enter the virtual environment created by Django Web Project in VS2019]

2023-03-10 Thread Omkar Parab
Try running  inside the env folder.

.\Scripts\activate




शुक्र, १०, मार्च २०२३, ८:३२ म.उ. ला 徐捷耀 ने  लिहीला:

> Hello, I am Jiao.
>
> I would want to know how enter the virtual environment created by "Django
> Web Project" in Visual Studio.
>
> WHAT I DID?
> I enter the file path  "~MyProjectname\env\Scripts" and type "activate",
> but nothing happen. Thanks for help!
>
> Jiao
>
> --
> 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/0432becc-afd7-43f1-933c-ec51515eaa22n%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/CAJY8mfzsE%3DknmY3LfnUtTXAq-0NxwNA5PsG4ndOe74iOOzfd4A%40mail.gmail.com.


Re: profile page and new user will not save

2022-02-23 Thread Omkar Parab
Something went wrong with the signals. Paste your signals.py file.

On Wed, Feb 23, 2022, 10:52 AM 'Delvin Alexander' via Django users <
django-users@googlegroups.com> wrote:

> Hello Everyone,
>
> I am having trouble saving a new profile, and user when they are created.
> Upon creating a new user and profile, i get this:
>
> "TypeError: Profile.save() got an unexpected keyword argument
> 'force_insert'"
>
> Would anyone know why this is popping up for me
>
>
> Here is my work for that particular page as well.
>
> from django.shortcuts import render, redirect
> from django.contrib import messages
> from .forms import UserRegisterForm, UserUpdateForm, ProfileUpdateForm
> from django.contrib.auth.decorators import login_required
>
>
> def register(request):
> if request.method == 'POST':
> form = UserRegisterForm(request.POST)
> if form.is_valid():
> form.save()
> username = form.cleaned_data.get('username')
> messages.success(request, f'Your Account has been created you
> are now able to log in {username}!')
> return redirect('login')
> else:
> form = UserRegisterForm()
> return render(request, 'users/register.html', {'form': form})
>
> @login_required
> def profile(request):
> if request.method == 'POST':
> u_form = UserUpdateForm(request.POST, instance=request.user)
> p_form = ProfileUpdateForm(request.POST, request.FILES,
> instance=request.user.profile)
> if u_form.is_valid() and p_form.is_valid():
> u_form.save()
> p_form.save()
> messages.success(request, f'Your Account has been updated!')
> return redirect('profile')
> else:
> u_form = UserUpdateForm(instance=request.user)
> p_form = ProfileUpdateForm(instance=request.user.profile)
>
> context = {
> 'u_form': u_form,
> 'p_form': p_form,
> }
>
> return render(request, 'users/profile.html', context)
>
> --
> 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/39c57e72-9e09-403e-97db-562ef943db4an%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/CAJY8mfyGCYeL1xFxsQ-ZtuyxkEdS_gGAYbfvwSPYG7BbusRPww%40mail.gmail.com.


Re: Multiple image upload using Django, Vuejs and Axiox

2021-11-19 Thread Omkar Parab
Check, whether you've added "upload_to" in your Image Field and add
MEDIA_ROOT & MEDIA_URL in settings.py file or not.



On Sat, Nov 20, 2021, 10:36 AM Alam Khazi 
wrote:

> Hi,
> By using Vuejs, Axiox and Django, Uploading multiple images. After
> uploading images are getting in list and then those list of images names we
> are storing into backend in ImageField image is saving into database but
> not saving into media folder.
>
>
> ['nature6.jpg', 'nature5.jpg', 'nature4.jpg', 'nature3.jpg',
> 'nature2.jpg', 'nature1.jpg', 'nature.jpg']
> ```
> if request.method == "POST":
> # From template we are fetching values
> data = json.loads(request.body)
> images = data['images']
> saveform = vk_service(image=images[0],
> image2=images[1],
>  image3=images[2],
>  image4=images[3],
>  image5=images[4],
>  image6=images[5],)
> ```
> Images are saving into database but not saving in media folder.
> Please help me out to solve this issue.
>
> Thanks
> ~Salima
>
> --
> 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/CABscGkSJ66hXxyOOZYfLSbaAH-Wc89QogQXX%3DVeMFheghJJp2A%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/CAJY8mfz3wxSKppg3MSnFhj8OOykipj6D4esH%3DbA0zibSowAdqQ%40mail.gmail.com.


Re: best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread Omkar Parab
try this. 
https://stackoverflow.com/questions/61868629/page-not-found-error-when-adding-facebook-authentication

On Wed, Jun 2, 2021, 11:12 AM DJANGO DEVELOPER 
wrote:

> actually I am using django-allauth and it doesn't need to have a form to
> login via facebook.
>
> On Wed, Jun 2, 2021 at 10:37 AM Omkar Parab  wrote:
>
>> You need to pass csrf_token using  tag or via JS.
>>
>> On Wed, Jun 2, 2021, 10:53 AM DJANGO DEVELOPER 
>> wrote:
>>
>>> it is working now but giving the errors attached in the photo.  when I
>>> click on send anyway, then it shows error of csrf forbidden. I am getting
>>> confused again and again.
>>>
>>> On Wed, Jun 2, 2021 at 10:18 AM Omkar Parab 
>>> wrote:
>>>
>>>> Yes.
>>>>
>>>> On Wed, Jun 2, 2021, 10:12 AM DJANGO DEVELOPER 
>>>> wrote:
>>>>
>>>>> do have I to add ngrok url in my facebook app that I created to get
>>>>> client secret?
>>>>>
>>>>> On Wed, Jun 2, 2021 at 9:40 AM DJANGO DEVELOPER <
>>>>> abubakarbr...@gmail.com> wrote:
>>>>>
>>>>>> oh, I had to run the local server first. it is running successfully
>>>>>> but giving the same error of urls.
>>>>>>
>>>>>> On Wed, Jun 2, 2021 at 9:36 AM DJANGO DEVELOPER <
>>>>>> abubakarbr...@gmail.com> wrote:
>>>>>>
>>>>>>> The connection to https://d0f7dea89f18.ngrok.io was successfully
>>>>>>> tunneled to your ngrok client, but the client failed to establish a
>>>>>>> connection to the local address localhost:8000.
>>>>>>> facing this error
>>>>>>>
>>>>>>> On Wed, Jun 2, 2021 at 9:30 AM Omkar Parab 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Run "ngrok.exe http 8000" command in ngrok terminal.
>>>>>>>>
>>>>>>>>
>>>>>>>> On Wed, Jun 2, 2021, 9:23 AM DJANGO DEVELOPER <
>>>>>>>> abubakarbr...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> let suppose I have installed ngrok, then should have I to run
>>>>>>>>> command of ngrok.exe in project's directory or anywhere?
>>>>>>>>>
>>>>>>>>> On Wed, Jun 2, 2021 at 8:39 AM Omkar Parab 
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Facebook login won't work with these local URLs. Only google
>>>>>>>>>> login will work. Don't waste your time. Either host it on Heroku or 
>>>>>>>>>> install
>>>>>>>>>> ngrok and try again.
>>>>>>>>>>
>>>>>>>>>> On Wed, Jun 2, 2021, 7:16 AM DJANGO DEVELOPER <
>>>>>>>>>> abubakarbr...@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> and last settings of my developer app
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Jun 2, 2021 at 6:44 AM DJANGO DEVELOPER <
>>>>>>>>>>> abubakarbr...@gmail.com> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> site url from my app.
>>>>>>>>>>>>
>>>>>>>>>>>> On Wed, Jun 2, 2021 at 6:43 AM DJANGO DEVELOPER <
>>>>>>>>>>>> abubakarbr...@gmail.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> I have 2 sites in my django admin side. one is localhost:8000
>>>>>>>>>>>>> and other is 127.0.0.1:8000
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Wed, Jun 2, 2021 at 1:05 AM Kasper Laudrup <
>>>>>>>>>>>>> laud...@stacktrace.dk> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 01/06/2021 21.49, DJANGO DEVELOPER wrote:
>>>>>>>>>>>>>> > I am using django-allauth library and i am following this
>>>>>>>>>>>>>> > tutorial.
>>>>>>>>>>>>>> https://medium.com/geekculture/setup-social-authentication-in-dj

Re: best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread Omkar Parab
Try using HTTPS.

On Wed, Jun 2, 2021, 10:53 AM DJANGO DEVELOPER 
wrote:

> it is working now but giving the errors attached in the photo.  when I
> click on send anyway, then it shows error of csrf forbidden. I am getting
> confused again and again.
>
> On Wed, Jun 2, 2021 at 10:18 AM Omkar Parab  wrote:
>
>> Yes.
>>
>> On Wed, Jun 2, 2021, 10:12 AM DJANGO DEVELOPER 
>> wrote:
>>
>>> do have I to add ngrok url in my facebook app that I created to get
>>> client secret?
>>>
>>> On Wed, Jun 2, 2021 at 9:40 AM DJANGO DEVELOPER 
>>> wrote:
>>>
>>>> oh, I had to run the local server first. it is running successfully but
>>>> giving the same error of urls.
>>>>
>>>> On Wed, Jun 2, 2021 at 9:36 AM DJANGO DEVELOPER <
>>>> abubakarbr...@gmail.com> wrote:
>>>>
>>>>> The connection to https://d0f7dea89f18.ngrok.io was successfully
>>>>> tunneled to your ngrok client, but the client failed to establish a
>>>>> connection to the local address localhost:8000.
>>>>> facing this error
>>>>>
>>>>> On Wed, Jun 2, 2021 at 9:30 AM Omkar Parab 
>>>>> wrote:
>>>>>
>>>>>> Run "ngrok.exe http 8000" command in ngrok terminal.
>>>>>>
>>>>>>
>>>>>> On Wed, Jun 2, 2021, 9:23 AM DJANGO DEVELOPER <
>>>>>> abubakarbr...@gmail.com> wrote:
>>>>>>
>>>>>>> let suppose I have installed ngrok, then should have I to run
>>>>>>> command of ngrok.exe in project's directory or anywhere?
>>>>>>>
>>>>>>> On Wed, Jun 2, 2021 at 8:39 AM Omkar Parab 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Facebook login won't work with these local URLs. Only google login
>>>>>>>> will work. Don't waste your time. Either host it on Heroku or install 
>>>>>>>> ngrok
>>>>>>>> and try again.
>>>>>>>>
>>>>>>>> On Wed, Jun 2, 2021, 7:16 AM DJANGO DEVELOPER <
>>>>>>>> abubakarbr...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> and last settings of my developer app
>>>>>>>>>
>>>>>>>>> On Wed, Jun 2, 2021 at 6:44 AM DJANGO DEVELOPER <
>>>>>>>>> abubakarbr...@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> site url from my app.
>>>>>>>>>>
>>>>>>>>>> On Wed, Jun 2, 2021 at 6:43 AM DJANGO DEVELOPER <
>>>>>>>>>> abubakarbr...@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> I have 2 sites in my django admin side. one is localhost:8000
>>>>>>>>>>> and other is 127.0.0.1:8000
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Jun 2, 2021 at 1:05 AM Kasper Laudrup <
>>>>>>>>>>> laud...@stacktrace.dk> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> On 01/06/2021 21.49, DJANGO DEVELOPER wrote:
>>>>>>>>>>>> > I am using django-allauth library and i am following this
>>>>>>>>>>>> > tutorial.
>>>>>>>>>>>> https://medium.com/geekculture/setup-social-authentication-in-django-rest-framework-1afdb675375f
>>>>>>>>>>>> > <
>>>>>>>>>>>> https://medium.com/geekculture/setup-social-authentication-in-django-rest-framework-1afdb675375f
>>>>>>>>>>>> >
>>>>>>>>>>>> >
>>>>>>>>>>>>
>>>>>>>>>>>> You've said so already, but at least now you've posted an error
>>>>>>>>>>>> message.
>>>>>>>>>>>>
>>>>>>>>>>>> What's the URL you're trying to load and what's currently in
>>>>>>>>>>>> the "App
>>>>>>>>>>>> Domains" field in your app settings?
>>>>>>>>>>>>
>>>>>>>>>>>> Kind regards,
>>>>>>>>>&

Re: best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread Omkar Parab
Run "ngrok.exe http 8000" command in ngrok terminal.


On Wed, Jun 2, 2021, 9:23 AM DJANGO DEVELOPER 
wrote:

> let suppose I have installed ngrok, then should have I to run command of
> ngrok.exe in project's directory or anywhere?
>
> On Wed, Jun 2, 2021 at 8:39 AM Omkar Parab  wrote:
>
>> Facebook login won't work with these local URLs. Only google login will
>> work. Don't waste your time. Either host it on Heroku or install ngrok and
>> try again.
>>
>> On Wed, Jun 2, 2021, 7:16 AM DJANGO DEVELOPER 
>> wrote:
>>
>>> and last settings of my developer app
>>>
>>> On Wed, Jun 2, 2021 at 6:44 AM DJANGO DEVELOPER 
>>> wrote:
>>>
>>>> site url from my app.
>>>>
>>>> On Wed, Jun 2, 2021 at 6:43 AM DJANGO DEVELOPER <
>>>> abubakarbr...@gmail.com> wrote:
>>>>
>>>>> I have 2 sites in my django admin side. one is localhost:8000 and
>>>>> other is 127.0.0.1:8000
>>>>>
>>>>> On Wed, Jun 2, 2021 at 1:05 AM Kasper Laudrup 
>>>>> wrote:
>>>>>
>>>>>> On 01/06/2021 21.49, DJANGO DEVELOPER wrote:
>>>>>> > I am using django-allauth library and i am following this
>>>>>> > tutorial.
>>>>>> https://medium.com/geekculture/setup-social-authentication-in-django-rest-framework-1afdb675375f
>>>>>> > <
>>>>>> https://medium.com/geekculture/setup-social-authentication-in-django-rest-framework-1afdb675375f
>>>>>> >
>>>>>> >
>>>>>>
>>>>>> You've said so already, but at least now you've posted an error
>>>>>> message.
>>>>>>
>>>>>> What's the URL you're trying to load and what's currently in the "App
>>>>>> Domains" field in your app settings?
>>>>>>
>>>>>> 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/948b7758-8ec1-ffe6-4857-9b49fb758965%40stacktrace.dk
>>>>>> .
>>>>>>
>>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAKPY9pktmf8am%3D3OioHua027_4u-fSa5OqgVHwyro%3DZpT-bJVA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAKPY9pktmf8am%3D3OioHua027_4u-fSa5OqgVHwyro%3DZpT-bJVA%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/CAJY8mfwN1f5rhRuckpShSUGKaWwD36Bam1jW9_n1sT61nuzKfg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJY8mfwN1f5rhRuckpShSUGKaWwD36Bam1jW9_n1sT61nuzKfg%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/CAKPY9pm9m_DSZLdi%3DutJoiZn4tkAOpBCVs2m0yEf_Yj5vyyuHg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAKPY9pm9m_DSZLdi%3DutJoiZn4tkAOpBCVs2m0yEf_Yj5vyyuHg%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/CAJY8mfzKZ4grWcvm%3DZkErJjCVsWG5YuNr8DMLc1hyOFx%2BpOPtQ%40mail.gmail.com.


Re: best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread Omkar Parab
Facebook login won't work with these local URLs. Only google login will
work. Don't waste your time. Either host it on Heroku or install ngrok and
try again.

On Wed, Jun 2, 2021, 7:16 AM DJANGO DEVELOPER 
wrote:

> and last settings of my developer app
>
> On Wed, Jun 2, 2021 at 6:44 AM DJANGO DEVELOPER 
> wrote:
>
>> site url from my app.
>>
>> On Wed, Jun 2, 2021 at 6:43 AM DJANGO DEVELOPER 
>> wrote:
>>
>>> I have 2 sites in my django admin side. one is localhost:8000 and other
>>> is 127.0.0.1:8000
>>>
>>> On Wed, Jun 2, 2021 at 1:05 AM Kasper Laudrup 
>>> wrote:
>>>
 On 01/06/2021 21.49, DJANGO DEVELOPER wrote:
 > I am using django-allauth library and i am following this
 > tutorial.
 https://medium.com/geekculture/setup-social-authentication-in-django-rest-framework-1afdb675375f
 > <
 https://medium.com/geekculture/setup-social-authentication-in-django-rest-framework-1afdb675375f
 >
 >

 You've said so already, but at least now you've posted an error message.

 What's the URL you're trying to load and what's currently in the "App
 Domains" field in your app settings?

 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/948b7758-8ec1-ffe6-4857-9b49fb758965%40stacktrace.dk
 .

>>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAKPY9pktmf8am%3D3OioHua027_4u-fSa5OqgVHwyro%3DZpT-bJVA%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/CAJY8mfwN1f5rhRuckpShSUGKaWwD36Bam1jW9_n1sT61nuzKfg%40mail.gmail.com.


Re: best tutorial or guidance for social login(facebook or google) using django allauth and rest auth

2021-06-01 Thread Omkar Parab
What error you're getting?

On Tue, Jun 1, 2021, 7:37 PM DJANGO DEVELOPER 
wrote:

> I need to develop a social login functionality for facebook using django
> allauth and django rest auth. I am struggling from 3 days and I would like
> to someone who can refer me a good tutorial or any other written guidance.
> till now I have only implemented some basic code and following this
> tutorial :
> https://medium.com/geekculture/setup-social-authentication-in-django-rest-framework-1afdb675375f
>
> Need urgent 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/698f6b6d-8e4a-4f2e-bb35-85ff55b0795an%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/CAJY8mfx_H3H%3DKYx_k361_TAANnOJ%2BTgBweSym5x6OfjirF3bNQ%40mail.gmail.com.


Re: In need of immediate help from Django community

2021-05-24 Thread Omkar Parab
Error is in forms.py file.

"model = User" not profile.

Default "User" model comes with username, email filed.

Why you're creating another email field in the Profile model?

Just fetch it using {{ user.email }}


On Tue, May 25, 2021, 1:38 AM Aritra Ray  wrote:

> Hi,
>
> I've been facing a problem recently in creating a Django Profile model for
> an E-commerce website.
> Error: FieldError(message) django.core.exceptions.FieldError: Unknown
> field(s) (username) specified for Profile
> Kindly help me out if possible. The screenshots have been attached below
> and the github link for the project has been provided.
>
> Link: https://github.com/First-project-01/Django-ecommerce (Check out the
> 'changes' branch)
>
> Regards,
> Aritra
>
> --
> 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/CAFecadvxBCa6w02%3DZ887%2BnaEdY-R6B9%2BVVFzVW5zYvkt1gA2hg%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/CAJY8mfzFT-GqqZ0YvdLKH9gKcTAv%2B1srG9973pXYfA5f_qVA7w%40mail.gmail.com.


Re: Project

2021-05-18 Thread Omkar Parab
Why not! Spotify is also using Django.

On Tue, May 18, 2021, 8:54 PM Vineet Kothari 
wrote:

> Hi,
> I want to create an music streaming website in djanho is it a good
> idea.
>
> Regards ,
> Vineet Kothari
>
> --
> 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/CAAcanssxpXyoReYjbzJDi3Cc_c3fito9MviY10Q2gTi2Q3RGcQ%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/CAJY8mfz-ZFTPejU2Xn9dn493O%3DtrH40%3DZCvbjpTP05TPyeRFKw%40mail.gmail.com.


Re: signup error

2021-05-07 Thread Omkar Parab
You need to import SignUpForm, in the views.py file.
Post the screenshot of the error.

On Fri, May 7, 2021, 6:48 PM EVELYNE MBAU  wrote:

> Hello, how do i solve name 'SignUpForm' is not defined
>
> --
> 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/1f44dc45-e86e-4757-9abd-0df4aef0860bn%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/CAJY8mfwDuoekjexYuo8bkFba0E7dvwUTLj4zvUn5oXBYCVy-Gw%40mail.gmail.com.


Re: Django application is slow

2021-03-24 Thread Omkar Parab
I haven't tried this yet. so can't tell you much about it.

On Wed, Mar 24, 2021, 2:12 PM Israr Hussain Rao <
israrhussainrao5...@gmail.com> wrote:

> I am trying this but i am coınfused either i have to make a
> separate function or i have to just install Memcache and add the
> cahe binding to the settings
>
>
>
>
> On Wed, Mar 24, 2021 at 10:38 AM Omkar Parab 
> wrote:
>
>> Django documentation 
>> https://docs.djangoproject.com/en/3.1/topics/cache/
>>
>> On Wed, Mar 24, 2021, 1:52 PM Israr Hussain Rao <
>> israrhussainrao5...@gmail.com> wrote:
>>
>>>   I have rechecked my code and did my best to shorten the code and
>>> removed unused javascript as well.
>>> I will recheck my server capability as well. do you know about the
>>> Django cache technique? how can i use it?
>>>
>>>
>>>
>>>
>>> On Wed, Mar 24, 2021 at 10:17 AM Omkar Parab 
>>> wrote:
>>>
>>>> Check, if your server is capable of handling huge requests or not.
>>>> Remove unused JavaScript. Check your querysets.
>>>>
>>>>
>>>> On Wed, Mar 24, 2021, 1:31 PM Israr Hussain Rao <
>>>> israrhussainrao5...@gmail.com> wrote:
>>>>
>>>>> Dear Programmers,
>>>>> my Django application is big and slow any leads on how to make it fast
>>>>> responsive.
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> 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/CAP%2B6t01mtTdMf5hRT%3DHbrPDK4H7j5%2B0v3bWbYmUjHicNkyu-zQ%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CAP%2B6t01mtTdMf5hRT%3DHbrPDK4H7j5%2B0v3bWbYmUjHicNkyu-zQ%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/CAJY8mfy86X8_gN%3DCAoEQu1krv3L_9DvHRjH_Hrb1qS8hbfbt4g%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAJY8mfy86X8_gN%3DCAoEQu1krv3L_9DvHRjH_Hrb1qS8hbfbt4g%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/CAP%2B6t03zkT%3DY2Sk6267vaBZEpMfjL4NOfdW2dtJ%3DYqS_ER-NQA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAP%2B6t03zkT%3DY2Sk6267vaBZEpMfjL4NOfdW2dtJ%3DYqS_ER-NQA%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/CAJY8mfw88FUnKQom%3DjM10M_P%3DmNLX5wkgZnkeBFnf-v9d9TzGw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJY8mfw88FUnKQom%3DjM10M_P%3DmNLX5wkgZnkeBFnf-v9d9TzGw%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/CAP%2B6t00i_mmTgAh-wx0M30otv6UR-NCL31sEQ6Fdbm0TE%3DRnKA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAP%2B6t00i_mmTgAh-wx0M30otv6UR-NCL31sEQ6Fdbm0TE%3DRnKA%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/CAJY8mfzrwZz%3D8S_aORYfOzrh6P3fqnNBv6FfM_2cJ66m7T-Dnw%40mail.gmail.com.


Re: Django application is slow

2021-03-24 Thread Omkar Parab
Django documentation 
https://docs.djangoproject.com/en/3.1/topics/cache/

On Wed, Mar 24, 2021, 1:52 PM Israr Hussain Rao <
israrhussainrao5...@gmail.com> wrote:

>   I have rechecked my code and did my best to shorten the code and
> removed unused javascript as well.
> I will recheck my server capability as well. do you know about the Django
> cache technique? how can i use it?
>
>
>
>
> On Wed, Mar 24, 2021 at 10:17 AM Omkar Parab 
> wrote:
>
>> Check, if your server is capable of handling huge requests or not.
>> Remove unused JavaScript. Check your querysets.
>>
>>
>> On Wed, Mar 24, 2021, 1:31 PM Israr Hussain Rao <
>> israrhussainrao5...@gmail.com> wrote:
>>
>>> Dear Programmers,
>>> my Django application is big and slow any leads on how to make it fast
>>> responsive.
>>>
>>>
>>>
>>> --
>>> 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/CAP%2B6t01mtTdMf5hRT%3DHbrPDK4H7j5%2B0v3bWbYmUjHicNkyu-zQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAP%2B6t01mtTdMf5hRT%3DHbrPDK4H7j5%2B0v3bWbYmUjHicNkyu-zQ%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/CAJY8mfy86X8_gN%3DCAoEQu1krv3L_9DvHRjH_Hrb1qS8hbfbt4g%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJY8mfy86X8_gN%3DCAoEQu1krv3L_9DvHRjH_Hrb1qS8hbfbt4g%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/CAP%2B6t03zkT%3DY2Sk6267vaBZEpMfjL4NOfdW2dtJ%3DYqS_ER-NQA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAP%2B6t03zkT%3DY2Sk6267vaBZEpMfjL4NOfdW2dtJ%3DYqS_ER-NQA%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/CAJY8mfw88FUnKQom%3DjM10M_P%3DmNLX5wkgZnkeBFnf-v9d9TzGw%40mail.gmail.com.


Re: Django application is slow

2021-03-24 Thread Omkar Parab
Check, if your server is capable of handling huge requests or not.
Remove unused JavaScript. Check your querysets.


On Wed, Mar 24, 2021, 1:31 PM Israr Hussain Rao <
israrhussainrao5...@gmail.com> wrote:

> Dear Programmers,
> my Django application is big and slow any leads on how to make it fast
> responsive.
>
>
>
> --
> 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/CAP%2B6t01mtTdMf5hRT%3DHbrPDK4H7j5%2B0v3bWbYmUjHicNkyu-zQ%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/CAJY8mfy86X8_gN%3DCAoEQu1krv3L_9DvHRjH_Hrb1qS8hbfbt4g%40mail.gmail.com.


Re: Hi how to another app URL config to main project URLs

2021-03-20 Thread Omkar Parab
path('' ", include('name_of_your_app.urls')).

Tip - You should learn more about, how to send an email.

On Sat, Mar 20, 2021, 10:41 PM Mahendra  wrote:

>
>
> Mahendra Yadav
>
> --
> 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/CAN-6G3xxU%3DMCXSKP%2BbJRUoo5GbT-9akM25QeT%2B-4n7zML6XsMQ%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/CAJY8mfxMKUDrDq_FS-wy1KgxZC%2B31qV6cBa%2BUkhZ2VO8dUnACw%40mail.gmail.com.


Re: Improperly Configured at /blog/write/

2021-03-20 Thread Omkar Parab
First, import slugify 

from django.template.defaultfilters import slugify

then,

Add this  below the "def __str__()" in your Blog model.

def save(self, *args, **kwargs):
if not self.slug:
self.slug = slugify(self.blog_title)
return super().save(*args, **kwargs)

On Sat, Mar 20, 2021, 6:33 PM Noyon Barman 
wrote:

>
>
> On Sat, Mar 20, 2021 at 6:02 PM Omkar Parab  wrote:
>
>> Looks like, the slug is not configured correctly. Post the screen-shot of
>> the models.py file of the "App_blog" App.
>>
>> On Sat, Mar 20, 2021, 4:48 PM Noyon Barman 
>> wrote:
>>
>>> Please help me what should I do now
>>>
>>> On Sat, Mar 20, 2021 at 12:39 PM Omkar Parab 
>>> wrote:
>>>
>>>> Post the screen-shot of app/urls.py file.
>>>>
>>>> On Sat, Mar 20, 2021, 4:05 AM Noyon Barman 
>>>> wrote:
>>>>
>>>>>
>>>>>
>>>>> On Sat, Mar 20, 2021 at 4:00 AM Anornymous u 
>>>>> wrote:
>>>>>
>>>>>> Send the error displayed on the browser in red
>>>>>>
>>>>>> On Sat, Mar 20, 2021, 00:54 Noyon Barman 
>>>>>> wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Sat, Mar 20, 2021 at 3:31 AM Noyon Barman <
>>>>>>> noyonbarman1...@gmail.com> wrote:
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Sat, Mar 20, 2021 at 3:26 AM Héctor Alonso Lozada Echezuría <
>>>>>>>> ima...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Exactly
>>>>>>>>>
>>>>>>>>> El vie, 19 mar 2021 a las 15:25, Anornymous u (<
>>>>>>>>> anornymou...@gmail.com>) escribió:
>>>>>>>>>
>>>>>>>>>> Line 17 not 14
>>>>>>>>>>
>>>>>>>>>> On Sat, Mar 20, 2021, 00:22 Héctor Alonso Lozada Echezuría <
>>>>>>>>>> ima...@gmail.com> wrote:
>>>>>>>>>>
>>>>>>>>>>> Line 14: fields not feilds
>>>>>>>>>>>
>>>>>>>>>>> El vie, 19 mar 2021 a las 15:17, Noyon Barman (<
>>>>>>>>>>> noyonbarman1...@gmail.com>) escribió:
>>>>>>>>>>>
>>>>>>>>>>>> What happens here? How do I solve this problem?
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> 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/CAL-bCoy-SMKGDhOPdrBStDtzx5a3f2LxHAj%3DfCX_5%3DyrdCXNSw%40mail.gmail.com
>>>>>>>>>>>> <https://groups.google.com/d/msgid/django-users/CAL-bCoy-SMKGDhOPdrBStDtzx5a3f2LxHAj%3DfCX_5%3DyrdCXNSw%40mail.gmail.com?utm_medium=email_source=footer>
>>>>>>>>>>>> .
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Héctor Alonso Lozada Echezuría
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> 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/CADTS2YzWi%3D2R5AsVKEnAn_HJ3syvFxS7DanmQb%2BPqLu64qF7ug%40mail.gmail.com
>>>>>>&

Re: Improperly Configured at /blog/write/

2021-03-20 Thread Omkar Parab
Your slug is adding extra characters after the main title.

On Sat, Mar 20, 2021, 5:31 PM Omkar Parab  wrote:

> Looks like, the slug is not configured correctly. Post the screen-shot of
> the models.py file of the "App_blog" App.
>
> On Sat, Mar 20, 2021, 4:48 PM Noyon Barman 
> wrote:
>
>> Please help me what should I do now
>>
>> On Sat, Mar 20, 2021 at 12:39 PM Omkar Parab 
>> wrote:
>>
>>> Post the screen-shot of app/urls.py file.
>>>
>>> On Sat, Mar 20, 2021, 4:05 AM Noyon Barman 
>>> wrote:
>>>
>>>>
>>>>
>>>> On Sat, Mar 20, 2021 at 4:00 AM Anornymous u 
>>>> wrote:
>>>>
>>>>> Send the error displayed on the browser in red
>>>>>
>>>>> On Sat, Mar 20, 2021, 00:54 Noyon Barman 
>>>>> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> On Sat, Mar 20, 2021 at 3:31 AM Noyon Barman <
>>>>>> noyonbarman1...@gmail.com> wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Sat, Mar 20, 2021 at 3:26 AM Héctor Alonso Lozada Echezuría <
>>>>>>> ima...@gmail.com> wrote:
>>>>>>>
>>>>>>>> Exactly
>>>>>>>>
>>>>>>>> El vie, 19 mar 2021 a las 15:25, Anornymous u (<
>>>>>>>> anornymou...@gmail.com>) escribió:
>>>>>>>>
>>>>>>>>> Line 17 not 14
>>>>>>>>>
>>>>>>>>> On Sat, Mar 20, 2021, 00:22 Héctor Alonso Lozada Echezuría <
>>>>>>>>> ima...@gmail.com> wrote:
>>>>>>>>>
>>>>>>>>>> Line 14: fields not feilds
>>>>>>>>>>
>>>>>>>>>> El vie, 19 mar 2021 a las 15:17, Noyon Barman (<
>>>>>>>>>> noyonbarman1...@gmail.com>) escribió:
>>>>>>>>>>
>>>>>>>>>>> What happens here? How do I solve this problem?
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> 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/CAL-bCoy-SMKGDhOPdrBStDtzx5a3f2LxHAj%3DfCX_5%3DyrdCXNSw%40mail.gmail.com
>>>>>>>>>>> <https://groups.google.com/d/msgid/django-users/CAL-bCoy-SMKGDhOPdrBStDtzx5a3f2LxHAj%3DfCX_5%3DyrdCXNSw%40mail.gmail.com?utm_medium=email_source=footer>
>>>>>>>>>>> .
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Héctor Alonso Lozada Echezuría
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> 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/CADTS2YzWi%3D2R5AsVKEnAn_HJ3syvFxS7DanmQb%2BPqLu64qF7ug%40mail.gmail.com
>>>>>>>>>> <https://groups.google.com/d/msgid/django-users/CADTS2YzWi%3D2R5AsVKEnAn_HJ3syvFxS7DanmQb%2BPqLu64qF7ug%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,
>>>>>>>>>

Re: Improperly Configured at /blog/write/

2021-03-20 Thread Omkar Parab
Looks like, the slug is not configured correctly. Post the screen-shot of
the models.py file of the "App_blog" App.

On Sat, Mar 20, 2021, 4:48 PM Noyon Barman 
wrote:

> Please help me what should I do now
>
> On Sat, Mar 20, 2021 at 12:39 PM Omkar Parab 
> wrote:
>
>> Post the screen-shot of app/urls.py file.
>>
>> On Sat, Mar 20, 2021, 4:05 AM Noyon Barman 
>> wrote:
>>
>>>
>>>
>>> On Sat, Mar 20, 2021 at 4:00 AM Anornymous u 
>>> wrote:
>>>
>>>> Send the error displayed on the browser in red
>>>>
>>>> On Sat, Mar 20, 2021, 00:54 Noyon Barman 
>>>> wrote:
>>>>
>>>>>
>>>>>
>>>>> On Sat, Mar 20, 2021 at 3:31 AM Noyon Barman <
>>>>> noyonbarman1...@gmail.com> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> On Sat, Mar 20, 2021 at 3:26 AM Héctor Alonso Lozada Echezuría <
>>>>>> ima...@gmail.com> wrote:
>>>>>>
>>>>>>> Exactly
>>>>>>>
>>>>>>> El vie, 19 mar 2021 a las 15:25, Anornymous u (<
>>>>>>> anornymou...@gmail.com>) escribió:
>>>>>>>
>>>>>>>> Line 17 not 14
>>>>>>>>
>>>>>>>> On Sat, Mar 20, 2021, 00:22 Héctor Alonso Lozada Echezuría <
>>>>>>>> ima...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Line 14: fields not feilds
>>>>>>>>>
>>>>>>>>> El vie, 19 mar 2021 a las 15:17, Noyon Barman (<
>>>>>>>>> noyonbarman1...@gmail.com>) escribió:
>>>>>>>>>
>>>>>>>>>> What happens here? How do I solve this problem?
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> 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/CAL-bCoy-SMKGDhOPdrBStDtzx5a3f2LxHAj%3DfCX_5%3DyrdCXNSw%40mail.gmail.com
>>>>>>>>>> <https://groups.google.com/d/msgid/django-users/CAL-bCoy-SMKGDhOPdrBStDtzx5a3f2LxHAj%3DfCX_5%3DyrdCXNSw%40mail.gmail.com?utm_medium=email_source=footer>
>>>>>>>>>> .
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Héctor Alonso Lozada Echezuría
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> 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/CADTS2YzWi%3D2R5AsVKEnAn_HJ3syvFxS7DanmQb%2BPqLu64qF7ug%40mail.gmail.com
>>>>>>>>> <https://groups.google.com/d/msgid/django-users/CADTS2YzWi%3D2R5AsVKEnAn_HJ3syvFxS7DanmQb%2BPqLu64qF7ug%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/CAMXTB%3DcA44t63_n4WnRtDOBq1KXMG%3DmdyLDqOBQduiAxFPqmgA%40mail.gmail.com
>>>>>>>> <https://groups.google.com/d/msgid/django-users/CAMXTB%3DcA44t63_n4WnRtDOBq1KXMG%3DmdyLDqOBQduiAxFPqmgA%40mail.gmail.com?utm_me

Re: Improperly Configured at /blog/write/

2021-03-20 Thread Omkar Parab
Post the screen-shot of app/urls.py file.

On Sat, Mar 20, 2021, 4:05 AM Noyon Barman 
wrote:

>
>
> On Sat, Mar 20, 2021 at 4:00 AM Anornymous u 
> wrote:
>
>> Send the error displayed on the browser in red
>>
>> On Sat, Mar 20, 2021, 00:54 Noyon Barman 
>> wrote:
>>
>>>
>>>
>>> On Sat, Mar 20, 2021 at 3:31 AM Noyon Barman 
>>> wrote:
>>>


 On Sat, Mar 20, 2021 at 3:26 AM Héctor Alonso Lozada Echezuría <
 ima...@gmail.com> wrote:

> Exactly
>
> El vie, 19 mar 2021 a las 15:25, Anornymous u ()
> escribió:
>
>> Line 17 not 14
>>
>> On Sat, Mar 20, 2021, 00:22 Héctor Alonso Lozada Echezuría <
>> ima...@gmail.com> wrote:
>>
>>> Line 14: fields not feilds
>>>
>>> El vie, 19 mar 2021 a las 15:17, Noyon Barman (<
>>> noyonbarman1...@gmail.com>) escribió:
>>>
 What happens here? How do I solve this problem?

 --
 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/CAL-bCoy-SMKGDhOPdrBStDtzx5a3f2LxHAj%3DfCX_5%3DyrdCXNSw%40mail.gmail.com
 
 .

>>>
>>>
>>> --
>>> Héctor Alonso Lozada Echezuría
>>>
>>> --
>>> 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/CADTS2YzWi%3D2R5AsVKEnAn_HJ3syvFxS7DanmQb%2BPqLu64qF7ug%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/CAMXTB%3DcA44t63_n4WnRtDOBq1KXMG%3DmdyLDqOBQduiAxFPqmgA%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> Héctor Alonso Lozada Echezuría
>
> --
> 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/CADTS2Ywn4Oz48PjgRjuQcOUN8SXZtj_hEW89wz3xJdYA_KSY8Q%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/CAL-bCowOJtd4L%3DFzaUjuRAN6F6L-ApZVjLZ4Ro5YYNySWFBG3Q%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/CAMXTB%3DcdAVucSz%2B6JXuyMrU1schTdpETC%3DD48Zd3xcy58KwJpg%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
> 

Re: Python libraries for visualisations

2021-03-14 Thread Omkar Parab
You can integrate chart.js with Django for visualization.

Check out this video 
https://youtu.be/B4Vmm3yZPgc


On Mon, Mar 15, 2021, 10:19 AM GEETHANJALI S P 
wrote:

> Hi..How to build a dashboard using django and python libraries for
> creating visualisations?. Please let me know .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/CAMKAcO%2BJqqp0kYMbWaWqjqJDcmMT9xMndv%3DD%2BNHbtYBvqL9CQg%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/CAJY8mfyHFmLYkKU2sKZcumcZKSGszoRvH9XPiJS2G4uR9KJk%2Bg%40mail.gmail.com.


Re: Date Range picker

2021-02-24 Thread Omkar Parab
Use django-filter

On Wed, Feb 24, 2021, 5:12 PM neha bhurke  wrote:

>
> *Regard,*
> *Neha Bhurke*
>
> Like this 
>
>
> On Wed, Feb 24, 2021 at 5:04 PM Omkar Parab  wrote:
>
>> Something like this? 
>>
>> On Wed, Feb 24, 2021, 4:37 PM neha bhurke  wrote:
>>
>>> How to create the range format means the calendar view with the list
>>>
>>> On Wednesday, February 24, 2021 at 4:35:52 PM UTC+5:30
>>> deshde...@gmail.com wrote:
>>>
>>>> U can use js libraray
>>>>
>>>> On Wed, 24 Feb 2021, 4:03 pm neha bhurke,  wrote:
>>>>
>>>>> Hello ,
>>>>>
>>>>> I want to create a date picker in which it should contain a format of
>>>>> list which consist of today , yesterday, tomorrow ,  next week , previous
>>>>> week , next month previous month ...
>>>>>
>>>>> How can I create this
>>>>>
>>>>> Please help 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...@googlegroups.com.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/8791262b-6e5e-4ef5-92d4-ee7f74e9d3d8n%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/django-users/8791262b-6e5e-4ef5-92d4-ee7f74e9d3d8n%40googlegroups.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/40c3ef96-2c6a-4bc0-a3d5-710823835043n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/40c3ef96-2c6a-4bc0-a3d5-710823835043n%40googlegroups.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/CAJY8mfw94xgBWd%2BRn5i9WmnMiuKoKqbgV72oj8%2BPfJ2uMTENrg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJY8mfw94xgBWd%2BRn5i9WmnMiuKoKqbgV72oj8%2BPfJ2uMTENrg%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/CAEwf5Q0zPxRUSsWztt3hnNjqb1dFbw98ri1-3y9PFwk_e1SSug%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAEwf5Q0zPxRUSsWztt3hnNjqb1dFbw98ri1-3y9PFwk_e1SSug%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/CAJY8mfzQr6Z78Psdz1Org78uieQxOYrdDucgzMzQFRx9EbZYBw%40mail.gmail.com.


Re: Help needed

2021-02-22 Thread Omkar Parab
datetime=models.DateTimeField(auto_now=False) ?
Or remove "auto_now"
datetime=models.DateTimeField()

On Tue, Feb 23, 2021, 11:34 AM neha bhurke  wrote:

> Hello everyone,
>
> I am trying to select the custom date but
> datetime=models.DateTimeField(auto_now=True)
> is only taking current date 
> Please help 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/b1c53101-c7c6-403f-9b43-6713d7f66c07n%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/CAJY8mfxi-bxtyMVWiOWCESK969Ok6nZaoyhWNSLvFO_0tEGp1Q%40mail.gmail.com.


Re: Timezone UTC Problem

2021-02-17 Thread Omkar Parab
LANGUAGE_CODE = 'en-us'

TIME_ZONE = 'Asia/Kolkata'

USE_I18N = True

USE_L10N = True

USE_TZ = True



On Wed, Feb 17, 2021, 5:13 PM neha bhurke  wrote:

> How to set the Time zone in Setting.py
> How to set UTC..
>
> --
> 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/f99cb42c-5dcb-4031-8a54-3e7c0ec4a3aen%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/CAJY8mfyRxNe-%3DUenTjBVMUbgVZ8PmD0rXu1OKgzXL-9hJ5s5sA%40mail.gmail.com.


Re: how to pass multiple query sets in Django

2021-02-16 Thread Omkar Parab
pass your multiple query sets using the get_context_data" method.


https://docs.djangoproject.com/en/3.1/topics/class-based-views/generic-display/

On Tue, Feb 16, 2021, 7:28 PM Anil s  wrote:

>
> Hello Everyone:
>
> Can somebody please tell me how to pass multiple query sets in Django.
>
> Thank you for your 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/a9b86c7a-e084-4f86-8c78-db8c4c56f82en%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/CAJY8mfwVnvzWjzgLrmJ2akcuVv-szk0oeWkJK74LfmbPPmvuOw%40mail.gmail.com.


Re: Notification System

2021-02-15 Thread Omkar Parab
Simplest solution is, import "send_mail" and add that after form.save in
your create_post function/view.

If you want push notifications then search about django FCM/GCM.

On Tue, Feb 16, 2021, 10:14 AM Kumar Gaurav 
wrote:

> Hi Everyone,
>
> I have a LinkedIn kind of portal where I want to implement Notification
> system. It is only used within a team. I want to send email notification to
> all the members whenever a new post is posted.
>
> What is the best way to implement this in Djnago ??
>
>
> 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/29a1c098-4886-4ff5-b140-01a01da7f9cdn%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/CAJY8mfxNxNac%3DpyqXjyKtDq1GToYQzvbkh2h1Y7QXEj8froVkQ%40mail.gmail.com.


Re: How to add css class and attribute to username,password

2021-02-14 Thread Omkar Parab
crispy-forms will give you bootstrap design. If you want to apply your own
css then install "django-widget-tweaks".

On Mon, Feb 15, 2021, 1:10 AM Omkar Parab  wrote:

> Install django-widget-tweaks package.
>
> On Mon, Feb 8, 2021, 2:11 AM Tal Bar-Or  wrote:
>
>>
>> Hello ,
>>
>> I writing project which the user login with my own customized HTML page
>> (boosstrap)
>>
>> i can manually add the form.username and form.password , but seems they
>> don't get the attribute from my forms.py , dode is added below , please
>> advise
>>
>> Thanks
>>
>>
>> urls.py
>> from django.urls import path
>> from django.contrib.auth import views as auth_views from .views import *
>> urlpatterns = [
>> path('login/', auth_views.LoginView.as_view(), name = 'login'),
>>  path('signup/', SignUpView.as_view(), name='signup'), ]
>>
>>
>> views.py
>> from django.contrib.auth.forms import UserCreationForm
>> from django.contrib.auth.views import LoginView
>> from django.urls import reverse_lazy from django.views import generic
>> from .forms import * class UsersLoginView(LoginView):
>> template_name = 'login.html' success_url = 'blog-home'
>> success_message = 'Welcome to your profile'
>> form_class = UserLoginForm
>>
>> forms.py
>> from django import forms from django.forms import ModelForm
>> from .models import User class UserLoginForm(forms.ModelForm):
>> username = forms.CharField(widget=forms.TextInput(attrs={'class': 
>> 'form-control', 'type':'email', 'name':'Username', 
>> 'placeholder':'Username'}))
>> password = forms.CharField(widget=forms.PasswordInput(attrs={'class': 
>> 'form-control', 'type': 'password', 'name': 'password', 
>> 'placeholder':'Password'}))
>>
>>
>> --
>> 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/f757c3c4-d8bf-4cc0-89a2-48638130b59an%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/f757c3c4-d8bf-4cc0-89a2-48638130b59an%40googlegroups.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/CAJY8mfwdUK8eh%2BZynZ2fX4oH6-34g6PEPa9TqSGCpbvhmGcD0A%40mail.gmail.com.


Re: How to add css class and attribute to username,password

2021-02-14 Thread Omkar Parab
Install django-widget-tweaks package.

On Mon, Feb 8, 2021, 2:11 AM Tal Bar-Or  wrote:

>
> Hello ,
>
> I writing project which the user login with my own customized HTML page
> (boosstrap)
>
> i can manually add the form.username and form.password , but seems they
> don't get the attribute from my forms.py , dode is added below , please
> advise
>
> Thanks
>
>
> urls.py
> from django.urls import path
> from django.contrib.auth import views as auth_views from .views import *
> urlpatterns = [
> path('login/', auth_views.LoginView.as_view(), name = 'login'),
>  path('signup/', SignUpView.as_view(), name='signup'), ]
>
>
> views.py
> from django.contrib.auth.forms import UserCreationForm
> from django.contrib.auth.views import LoginView
> from django.urls import reverse_lazy from django.views import generic
> from .forms import * class UsersLoginView(LoginView):
> template_name = 'login.html' success_url = 'blog-home'
> success_message = 'Welcome to your profile'
> form_class = UserLoginForm
>
> forms.py
> from django import forms from django.forms import ModelForm
> from .models import User class UserLoginForm(forms.ModelForm):
> username = forms.CharField(widget=forms.TextInput(attrs={'class': 
> 'form-control', 'type':'email', 'name':'Username', 'placeholder':'Username'}))
> password = forms.CharField(widget=forms.PasswordInput(attrs={'class': 
> 'form-control', 'type': 'password', 'name': 'password', 
> 'placeholder':'Password'}))
>
>
> --
> 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/f757c3c4-d8bf-4cc0-89a2-48638130b59an%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/CAJY8mfyMdoBMn_OgMihe1u1bS%3DSS7JaP%2BPZ%2B_7GsLWqwY5V2Fw%40mail.gmail.com.


Re: CRUD Generator

2021-01-07 Thread Omkar Parab
You can build whatever you want, using Django!

On Fri, Jan 8, 2021, 11:13 AM Chandrashekhar Singh <
chandrashekhar...@gmail.com> wrote:

> Hello,
>
> Does anyone one know ? Is django is best framework for developing delivery
> applications?
>
> Thanks
>
> On Thu, Jan 7, 2021, 11:39 PM Noel Simela  wrote:
>
>> Good day,
>>
>> I have explored several crud generator packages.
>>
>> I am looking for an opinion on the best package to adopt that has been
>> maintained for the past few months,
>>
>> If you have experience in django crud generators.Please let me know the
>> one you have used, the pros and cons.
>>
>> Many thanks.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAGBhr7ZO4skwE7UXvth2EvGv70fX1DrCGXek5FkbgWoEtnqPVQ%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/CADNvQ1P6sDaGJT-toLSyU6p0jzGQ-GOJpx59Hw%3DquUcgnYW2%3Dw%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/CAJY8mfzmx1dfh55cLxdYJ29%2BBqVM%3Dvpp2PmLm865ryBRoN4LAA%40mail.gmail.com.


Re: Migration of database

2020-12-14 Thread Omkar Parab
Check out this video. 
https://youtu.be/6DI_7Zja8Zc

On Tue, Dec 15, 2020, 12:09 PM Dhruvil Shah  wrote:

> I have already made my project in Django and used built-in database Sqlite
> and now I want it in production on heroku so how can I switch all data from
> Sqlite database to Postgresql database?
>
> --
> 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/CADsP_iywX5jsBNRsoSgtPZtzgDD3befGdJgjWL-XgZi-feRdAA%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/CAJY8mfyKgnhPUNL6dbLcsZgMK%2BEQ2aQnt7B0wUOEu1thi33%3Dpw%40mail.gmail.com.


Re: Built in views how to change in django watson package.

2020-12-09 Thread Omkar Parab
I'm not familiar with the Django-Watson package.

Maybe you missed some initial steps.

Go through this medium blog. you will get an idea. 

https://link.medium.com/nFPB7cMM4bb

On Wed, Dec 9, 2020, 5:35 PM Salima Begum 
wrote:

> Hi Omkar parab ,
> I have followed the suggested path but Still it is not giving the search
> results.
>  what I have to write in views.py in home function.
>
> Thanks
> ~salima
>
>
> On Wed, Dec 9, 2020 at 3:11 PM Omkar Parab  wrote:
>
>> Here's the link for template tag 
>>
>> https://github.com/etianen/django-watson/wiki/Template-tags
>>
>> This tag will return the searched list 
>>
>> {% search_results search_entry_list %}
>>
>>
>> Here's the link for the frontend structure 
>>
>>
>> https://github.com/etianen/django-watson/blob/master/watson/templates/watson/search_results.html
>>
>> Front-end code
>> 
>>  Search results {% if query %} for .
>> {{query}}{% endif %}
>>
>>
>> {% if search_results %}
>>
>> {% search_results search_results %}
>>
>> {% else %}
>>
>> {% if query %}
>>
>> There are no results to display.
>>
>> Try entering a less specific search term.
>>
>>     {% else %}
>>
>> Please enter a query in the search form.
>> {% endif %}
>>
>> {% endif %}
>>
>> 
>>
>> On Wed, Dec 9, 2020, 2:35 PM Salima Begum 
>> wrote:
>>
>>> Thank you @Omkar Parab, I have tried your suggestion. It is working but
>>> the only thing i want is how to show the result search list in the front
>>> end page in template.
>>>
>>> Please can you help me out in this also.
>>>
>>> Thanks
>>> ~Salima
>>>
>>> On Wed, Dec 9, 2020 at 11:16 AM Omkar Parab 
>>> wrote:
>>>
>>>> Here's the link for the built-in-views,
>>>>
>>>> https://github.com/etianen/django-watson/wiki/Built-in-views
>>>>
>>>> To return search results on the home page, you need to add your,
>>>>
>>>> {℅ Url "your_home_namespace" ℅}
>>>>
>>>> in
>>>>
>>>> 
>>>>
>>>> On Wed, Dec 9, 2020, 9:35 AM Salima Begum 
>>>> wrote:
>>>>
>>>>> Hi all,
>>>>>
>>>>> I am using the django watson package in my project. How to achieve to
>>>>> change built in views to change default template rendering and to search
>>>>> results in the home page.
>>>>>
>>>>> This is url of django watson
>>>>>
>>>>> '''https://github.com/etianen/django-watson/wiki/Built-in-views'''
>>>>>
>>>>> Please Help me out to achieve this, Thank you in advance,
>>>>>
>>>>> Thanks
>>>>> ~Salima
>>>>>
>>>>> --
>>>>> 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/CAMSz6bk2iK6X7sL25%3DDefbMxgcfzzokpW-T3yNoJgZp%3D8LN4jA%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CAMSz6bk2iK6X7sL25%3DDefbMxgcfzzokpW-T3yNoJgZp%3D8LN4jA%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/CAJY8mfwf_gcAM2ZnkUNbhh4VRFua-SYqo8nPMtaoPzawVk%3DGTw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAJY8mfwf_gcAM2ZnkUNbhh4VRFua-SYqo8nPMtaoPzawVk%3DGTw%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 

Re: Built in views how to change in django watson package.

2020-12-09 Thread Omkar Parab
Here's the link for template tag 

https://github.com/etianen/django-watson/wiki/Template-tags

This tag will return the searched list 

{% search_results search_entry_list %}


Here's the link for the frontend structure 

https://github.com/etianen/django-watson/blob/master/watson/templates/watson/search_results.html

Front-end code

 Search results {% if query %} for . {{query}}{%
endif %}
   

{% if search_results %}

{% search_results search_results %}

{% else %}

{% if query %}

There are no results to display.

Try entering a less specific search term.

{% else %}

Please enter a query in the search form.
{% endif %}

{% endif %}



On Wed, Dec 9, 2020, 2:35 PM Salima Begum 
wrote:

> Thank you @Omkar Parab, I have tried your suggestion. It is working but
> the only thing i want is how to show the result search list in the front
> end page in template.
>
> Please can you help me out in this also.
>
> Thanks
> ~Salima
>
> On Wed, Dec 9, 2020 at 11:16 AM Omkar Parab  wrote:
>
>> Here's the link for the built-in-views,
>>
>> https://github.com/etianen/django-watson/wiki/Built-in-views
>>
>> To return search results on the home page, you need to add your,
>>
>> {℅ Url "your_home_namespace" ℅}
>>
>> in
>>
>> 
>>
>> On Wed, Dec 9, 2020, 9:35 AM Salima Begum 
>> wrote:
>>
>>> Hi all,
>>>
>>> I am using the django watson package in my project. How to achieve to
>>> change built in views to change default template rendering and to search
>>> results in the home page.
>>>
>>> This is url of django watson
>>>
>>> '''https://github.com/etianen/django-watson/wiki/Built-in-views'''
>>>
>>> Please Help me out to achieve this, Thank you in advance,
>>>
>>> Thanks
>>> ~Salima
>>>
>>> --
>>> 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/CAMSz6bk2iK6X7sL25%3DDefbMxgcfzzokpW-T3yNoJgZp%3D8LN4jA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAMSz6bk2iK6X7sL25%3DDefbMxgcfzzokpW-T3yNoJgZp%3D8LN4jA%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/CAJY8mfwf_gcAM2ZnkUNbhh4VRFua-SYqo8nPMtaoPzawVk%3DGTw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJY8mfwf_gcAM2ZnkUNbhh4VRFua-SYqo8nPMtaoPzawVk%3DGTw%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/CAMSz6bky_0Lk78ose2Fu7nCfHrz0VHH_-wiyK2K%3DP%2BO45JACYA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAMSz6bky_0Lk78ose2Fu7nCfHrz0VHH_-wiyK2K%3DP%2BO45JACYA%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/CAJY8mfx5h4W62qwbv7C5G0F%2BH__XMtSm%3DnGgnmjOqe_wH1RgaA%40mail.gmail.com.


Re: Built in views how to change in django watson package.

2020-12-08 Thread Omkar Parab
Here's the link for the built-in-views,

https://github.com/etianen/django-watson/wiki/Built-in-views

To return search results on the home page, you need to add your,

{℅ Url "your_home_namespace" ℅}

in



On Wed, Dec 9, 2020, 9:35 AM Salima Begum 
wrote:

> Hi all,
>
> I am using the django watson package in my project. How to achieve to
> change built in views to change default template rendering and to search
> results in the home page.
>
> This is url of django watson
>
> '''https://github.com/etianen/django-watson/wiki/Built-in-views'''
>
> Please Help me out to achieve this, Thank you in advance,
>
> Thanks
> ~Salima
>
> --
> 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/CAMSz6bk2iK6X7sL25%3DDefbMxgcfzzokpW-T3yNoJgZp%3D8LN4jA%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/CAJY8mfwf_gcAM2ZnkUNbhh4VRFua-SYqo8nPMtaoPzawVk%3DGTw%40mail.gmail.com.


Re: Looking for a new project

2020-12-05 Thread Omkar Parab
Welcome to the django community! 

Here's the playlist for Django 3.0
https://www.youtube.com/playlist?list=PL-51WBLyFTg2vW-_6XBoUpE7vpmoR3ztO

On Sat, Dec 5, 2020, 9:59 PM Dishita Bhasin  wrote:

> Warm Greetings everyone, myself Dishita Bhasin. I would love to contribute
> to this wonderful organization. Can someone please help me out on how to
> get started and suggest some projects? I have knowledge of C++ and Python.
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a95f842a-77bd-46be-ba78-5933abbfa1d6n%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/CAJY8mfxa6OsUy3VibWT387GBzHE7%2BXiBCu%3D5OvSN4_1cG6Gv4w%40mail.gmail.com.


Re: Is it possible to use REST API on Django template ?

2020-11-25 Thread Omkar Parab
Creating REST API in Django is similar to any app on Django. All you need
to do is, install the djangorestframework library, and serialize your
models.

YT video 
https://youtu.be/TmsD8QExZ84
On Wed, Nov 25, 2020, 7:48 PM Aman Modi  wrote:

>
>
> Hello Django lovers.
>
> I want to use REST API  on the Django template but I have no idea how can
> I do that.
> I want to use the same API on the android app and the Django template.
>
> Any suggestion.
>
> Thanks and regard
> Aman Modi
>
> --
> 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/99c6d921-9ea7-4f3b-9d69-03b06fbbd5d8n%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/CAJY8mfychw%2BNiKpPvho_whycaT0y2nCQaV2ChecwxPm1VW8yVQ%40mail.gmail.com.


Re: How to connect django and React js but getting Error

2020-10-26 Thread Omkar Parab
In Trmplates 
os.path.join(BASE_DIR, 'new/build')

At the bottom 
STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'new/build/static') ]

On Mon, Oct 26, 2020, 3:24 PM Vineeth  wrote:

> I am using django 3.1 version how to connect django and react  i am trying
> to connect but
> getting Error like TemplateDoesNotExist at /index.html  i attached my
> folder structure and error image
>
> --
> 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/09f5e196-12b7-44f0-a7fd-52dd8ce035cdn%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/CAJY8mfzO_rnx_2LyG7R2r_U-eSaUsXyRQGXNPYMy%3D7H%2Bo%3DA%2BpA%40mail.gmail.com.


Re: Login form

2020-10-05 Thread Omkar Parab
Check my video
https://youtu.be/uws1ThBRBLQ


On Mon, Oct 5, 2020, 7:07 PM Moses Omoto  wrote:

> How to I create a login form to authenticate users in django web
> application using django 3.1
>
> --
> 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/CAKMqJM6XszxR%3DtHWQnohzjvrPXxEXF8BBcVtTfZe0BkoXrot0A%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/CAJY8mfyfM3SC5_Dj6_wXD3zrPTEtF17GXyX8RKf%3DXKpzjZmFXw%40mail.gmail.com.


Re: Django Sitemap on heroku error h13

2020-09-21 Thread Omkar Parab
Put your code on github. I'll compare with my code. I've done sitemap for
my site and it's working.

On Mon, Sep 21, 2020, 8:55 AM dum dum  wrote:

> Anyone has solution for this issue?
> Please let me know
> Thanks
>
> On Mon, Sep 14, 2020 at 12:31 PM dum dum  wrote:
>
>> Update for this case:
>> I fixed the h13 error by limiting records that I pulled from database.
>> I still don't understand yet why heroku gave me that error, maybe because
>> the server spec is not good enough for my data that has lot rows to pulled.
>> I'm using heroku hobby-basic.
>>
>> Firefox:
>> I open domain/sitemap.xml
>> sitemap.xml  page generated.
>>
>> Chrome:
>> I open domain/sitemap.xml
>> redirected to "/" as I set for 404 page.
>>
>> I did:
>> - Clear cache browsers and clear build cache on heroku.
>> - try to submit sitemap.xml on google search console in chrome and
>> firefox. The results are the same.
>> Couldn't fetch the data. Because it's redirected to "/".
>>
>> Is anyone here ever experienced something like this?
>> Please kindly help, this problem got me tinkering around for months.
>>
>> Thanks
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CANV3w%3DZpLr9OhyLQX9_UMWgyS-ZM-B0ViGn%3DdTqfPEpLT1Bfig%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/CAJY8mfzq_VmtMwoZ2E5Djvr%2BvTn1yGGoKhh-pitoX5V5vq7LSw%40mail.gmail.com.


Re: Admin site's css doesn't work.

2020-09-17 Thread Omkar Parab
server is not able to find your static files. Run collect static command
and add static root to your settings.py

On Thu, Sep 17, 2020, 7:16 PM English Learning 
wrote:

> when I host it, Admin's *CSS* doesn't show. Also, I am using SQLite
> database. Screenshot is here:
>
> [image: DjangoAdmin.png]
> Is it a Database problem? Please let me know the answer. I am suffering
> from it because it is a Client project.
>
> --
> 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/3832905f-33cf-484f-bc01-8ee78dbc487dn%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/CAJY8mfzdS72WY%3D_yAKZG7X0ah%2Bs3BQ6FZ_O28ZYXWB5X5%3D_RdA%40mail.gmail.com.


Re: Help with payment processing in django

2020-09-11 Thread Omkar Parab
Check-out last few videos of this  series.

https://www.youtube.com/playlist?list=PLpyspNLjzwBnGesxJOt_0r4xTWR80j7Y3

On Fri, Sep 11, 2020, 4:22 PM shyam.ac...@gmail.com <
shyam.acharjy...@gmail.com> wrote:

>
> Hi guys, I am working on a project which offers contents  and every
> content has a different price. i want the users to see only the overview of
> the content, and if they want full access to the content they have to buy
> it. If anyone here has done something like this before please let me know.
>
> --
> 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/688d1a79-c94c-406b-9305-67927a9346f0n%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/CAJY8mfxJMOLH4r8NOdtZfZOyvW2vYgeCRM93VxW15u3U1WCvug%40mail.gmail.com.


Re: deploying a django project

2020-09-07 Thread Omkar Parab
Follow this video.
https://youtu.be/6DI_7Zja8Zc

On Tue, Sep 8, 2020, 2:36 AM programmer 262 
wrote:

> hy guys i start learning django  and i build a ecommerce website as
> myfirst project and i don't know how to deploy it in heroku
>
> --
> 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/2742aa36-8108-4810-9990-3a78866171can%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/CAJY8mfzxQxh_ef9MtSzRq2VeJ_Rsyfqa9COj%2BYidNLTyxf2EWg%40mail.gmail.com.


Re: Project setup

2020-09-04 Thread Omkar Parab
Check-out this repository. 
https://github.com/adigunsherif/Django-School-Management-System

On Fri, Sep 4, 2020, 10:18 PM Kritika Paul  wrote:

> Hi
>
> I am a beginner to django and trying to create a full fledged school
> management system on django.
> I need someone to help in setting up the project from base.
> Basic ideas like from which module to start.
>
> Also,i need to create 4 different roles apart from superadmin, how to
> create those.
> Please someone reply soon.
> --
> Regards,
>
> Kritika Paul
> rkritikapau...@gmail.com
> +91-7905147674
>
> --
> 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%2BQJGq7sHJ7korE%2BmsUiQ34%2Bmtx0vc_6bj-u6EtdENOFP3Mp2Q%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/CAJY8mfy76-eo0VwBgvwecZwDrH8m5s9EQtV28Ou_J84asE8gMg%40mail.gmail.com.


Re: Django app to PWA

2020-07-24 Thread Omkar Parab
I just installed django-pwa in my django site, and it's working properly.

On Wed, Jul 22, 2020, 2:06 AM Anirudh choudhary <
anirudhchoudary...@gmail.com> wrote:

> Hello everyone
>
> can anyone share me the link how to make your webpage to Progressive web
> app
>
> i have tried
>
> django-pwa and other package
>
>
> Thankyou
>
> --
> 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/CAL8_rkH6u%2BJE1CpGWYYsWPPAnnpS2H71sEXiUBQfTTj8rheqxA%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/CAJY8mfxXNLRLJnmguWmCNTc%3DH3nTOp6t6Z78B4MWcNEvBVWqrw%40mail.gmail.com.


Re: How to exit of pipenv in vscode

2020-07-14 Thread Omkar Parab
.\Script\deactivate

On Tue, Jul 14, 2020, 7:16 PM sunday honesty 
wrote:

> While in the VS Code Terminal, the 'exit' command closes the terminal
> directly, whereas I just want to deactive pipenv, is there a way to do this?
>
> --
> You received this message because you are subscribed to the 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/f8a9886a-b318-4985-9abb-2907a2b078a4o%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/CAJY8mfwh%3D_GpQAmbP2HvbpRO-v8_KPGOVWA-3A4fBQm7Z4V5uw%40mail.gmail.com.


Re: user visit count

2020-04-15 Thread Omkar Parab
Django hit count package will help you..

On Wed, Apr 15, 2020, 1:09 PM shreehari Vaasistha L 
wrote:

> how can i get the number of views of an endpoint by a single user.
>
> --
> 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/b9e434ba-8378-45cb-a67f-b344773340b6%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/CAJY8mfxe%3Dgx4YnJj_%2BWLuVD-iTaeNy0BhMR4U1_bAXa93ObAMg%40mail.gmail.com.


Re: guys help me please, page doesn't open image

2020-03-06 Thread Omkar Parab


On Fri, Mar 6, 2020, 5:46 PM Omar Abou Mrad  wrote:

>
> https://docs.djangoproject.com/en/3.0/howto/static-files/#configuring-static-files
>
> {% load static %}
>
>
> On Fri, Mar 6, 2020 at 2:04 PM Aly_34_04 MR_34_04 <
> allaberdi16yazha...@gmail.com> wrote:
>
>> it doesn't work, I tried(
>> [06/Mar/2020 15:01:39] "GET /products/ HTTP/1.1" 200 1719
>> Not Found: /products/3.png
>> [06/Mar/2020 15:01:39] "GET /products/3.png HTTP/1.1" 404 2137
>>
>>
>>
>> On Friday, March 6, 2020 at 2:35:52 PM UTC+3, Omkar Parab wrote:
>>>
>>> {{ product.image.url }}
>>>
>>> On Fri, Mar 6, 2020, 4:50 PM Aly_34_04 MR_34_04 
>>> wrote:
>>>
>>>> [image: Capture.JPG]
>>>> Enter code here...
>>>> #django templates
>>>>
>>>> {% extends 'base.html' %}
>>>> {% block content %}
>>>> Products
>>>> 
>>>> {% for product in products %}
>>>> 
>>>> 
>>>>   
>>>>   
>>>> {{product.name}}
>>>> $ {{product.price}}
>>>> add to card
>>>>   
>>>> 
>>>> 
>>>> {% endfor %}
>>>> 
>>>> {% endblock %}...
>>>>
>>>>
>>>> #python code
>>>>
>>>> class Product(models.Model):
>>>> name = models.CharField(max_length=50)
>>>> price = models.FloatField()
>>>> image = models.FileField()
>>>>
>>>>
>>>>
>>>> --
>>>> 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...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/a9354269-5866-4332-9acb-a0b558501d0d%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/a9354269-5866-4332-9acb-a0b558501d0d%40googlegroups.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/509b5541-dfbb-43a8-a3b9-5e4c56807fbe%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/509b5541-dfbb-43a8-a3b9-5e4c56807fbe%40googlegroups.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/CAFwtXp2rCiDCxxJjs_ZcqQN0dK0Lts-AaQ%2BxKNG5r9x-va1TZg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAFwtXp2rCiDCxxJjs_ZcqQN0dK0Lts-AaQ%2BxKNG5r9x-va1TZg%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/CAJY8mfy59Yb4Xu4svwyektGwDY3QmTZimnfp7Zu_-pxwM13LaQ%40mail.gmail.com.


Re: guys help me please, page doesn't open image

2020-03-06 Thread Omkar Parab
{{ product.image.url }}

On Fri, Mar 6, 2020, 4:50 PM Aly_34_04 MR_34_04 <
allaberdi16yazha...@gmail.com> wrote:

> [image: Capture.JPG]
> Enter code here...
> #django templates
>
> {% extends 'base.html' %}
> {% block content %}
> Products
> 
> {% for product in products %}
> 
> 
>   
>   
> {{product.name}}
> $ {{product.price}}
> add to card
>   
> 
> 
> {% endfor %}
> 
> {% endblock %}...
>
>
> #python code
>
> class Product(models.Model):
> name = models.CharField(max_length=50)
> price = models.FloatField()
> image = models.FileField()
>
>
>
> --
> 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/a9354269-5866-4332-9acb-a0b558501d0d%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/CAJY8mfzaOxZ3KaDhXOt_%3Dpuw-GeUkCgMC9JyQo%3Dd1zU3fLD7Dw%40mail.gmail.com.


Re: website using django

2020-03-02 Thread Omkar Parab
Destination_name
Image
Description
Ratings



On Mon, Mar 2, 2020, 11:06 PM bijay subedi  wrote:

> i am simply not getting to the point what to keep in model.py  when
> creating a webpage for tourist guide website .what are the things i
> basiclly  need to put in database fields?
> please help me out with
>
> --
> 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/7f98f436-5e63-4e37-8bc5-c1265c3994de%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/CAJY8mfzDuB7FmMfy1XwLoGSJcy_%3D775f5sJiTDzrFYmmRV_eBA%40mail.gmail.com.


Re: new to django

2020-03-01 Thread Omkar Parab
Here's the Perfect Django tutorial.
>From development to production.

https://www.youtube.com/playlist?list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p

On Sun, Mar 1, 2020, 11:33 PM Gurjot Kawatra  wrote:

> hello everyone ...if anybody could help me out
> my django server is started and i'm able to see congratulation messege...
> now plz tell me the next step to create a project and run and watching
> output at the localhost:8000
>
> --
> 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/f336394b-8fff-4893-ac04-ee5049357d85%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/CAJY8mfz_etvYx68asZwps0Fqb67_arNW6ByC%3DzpFg62OEo8rgw%40mail.gmail.com.


Re: Request to disallow using django name in third party django packages name

2020-02-20 Thread Omkar Parab
All the third party apps are open source. Codes are available on github.
You can create your own. Just like you, they've also created, and kept
public.

On Thu, Feb 20, 2020, 6:57 PM 'Artem Vasin' via Django users <
django-users@googlegroups.com> wrote:

> Hi!
>
> *Tl;dr no I don’t think so, actually it’s very useful.*
>
> IMHO, you are barking at the wrong tree. As I see it, and I think many
> would agree with me, using third-party libraries instead of implementing
> your own, are the way to go in Django and Python and open-source community
> in general. It gives you advantages of not wasting your time writing
> something that already exists from scratch and focus more of business-logic
> of your project instead of technical things like organising auth or
> request-response handling (something for which we using Django in first
> place).
>
> Why it may be fun and educational to write something like your own auth
> system or rest-api from scratch and probably you should really at least try
> something like that when you learning Django or any other framework, you
> probably should not do so, when developing application which is more then
> study project. Using third-party apps not only saves your time, but
> provides you with some advantages over something written from scratch. For
> example you talking about authentication. Are you sure that your
> self-written library is really secure? Is it tested better than result of
> work and debugging of several people (or in case of DRF baby people) over
> the course of multiple years? Will it work with different versions of
> python or Django, which you can be forced to use in other projects or you
> should write another version if you will need to use older python or
> Django? Will someone help you with problem in your library or they simple
> say 'You should have used  be to take what you write in one project and use in another? Etc.
>
> As I see it, modern day programming is not about writing from scratch and
> more about knowing which libraries you can use and when and how use them. I
> think that most of programmers, using Django for serious projects actually
> very happy every time when they can use third-party library to add some
> functionality in project.
>
> Now about third-party-app naming. Actually I think that in contrary to
> your position all third-party Django apps’ names *should* start with
> *django-. *
> *Firstly*, it really helps in finding third-party apps in google, and as
> I say earlier using third-party libraries instead of writing everything
> from scratch is python way as I see it.
> *Secondly* it helps differentiating Django apps from other libraries in
> PyPI, GitHub or others list of libraries. For example we have app^ which
> allows authorise Django user through ldap. If we call it simply auth-ldap
> it may be named the same is some more general ldap auth library in PyPI and
> we could not publish it here. Naming it Django-auth-ldap decreases chance
> of this collision.
> *Thirdly*, this naming implies that this library designed to work only in
> concert with django. Many of Django third-party app would not work without
> Django core packages, or such a small part of them will be useful, so
> including this app in your project will bring a lot of overhead.
> *And lastly*, this naming helps you understand what this package is when
> you see it somewhere in *requirements.txt *or in *pip freeze* output.
>
> Now to address your problem about trying to write something from scratch
> and finding only third-party libraries. If you writing something like auth
> system in production system may be it’s real better to use already existing
> and tested third-party library. But if you want to write something from
> scratch to deeper your understanding of Django or programming in general,
> that’s actually a wonderful idea, wish more of my colleagues do something
> like that in their free time. So how to do it, when google only wants to
> show you third-party libraries?
>
> Try to add words like *«from scratch» *or* «without third-party apps» *in
> your search query. There is plenty of posts in internet where someone
> writes about how to implement something without adding new dependencies.
>
> And why do you think, that third-party apps is useless when writing
> something from scratch? Actually no one forbids you to open GitHub of
> third-party app doing something that you trying to write and read it’s
> code. Most of big de-facto-standart libraries, like DRF is actually well
> written and you even can get something from their sources, of which you
> didn’t even think. You can even try to contact authors and ask them, why
> they did something the way it is. I think that you can learn something new
> that way.
>
> So no, I don’t think that *django- *prefix is as big problem as you
> trying to make it. Actually, I think that when you start write something
> meant to work in production and solve someone problems you will be very
> glad for that 

Re: TINYMCE Configuration on Django

2020-02-16 Thread Omkar Parab
Ckeditor is also cool, and easy to use in production.

On Mon, Feb 17, 2020, 12:02 AM Hedrick Godson's 
wrote:

> In ur settings.py file add this
> Add to installed apps
> INSTALLED_APPS = [
> 'tinymce',
>
> ]
>
> Configure it
>
> TINYMCE_DEFAULT_CONFIG = {
> 'plugins' :"image, imagetools, media, codesample,link, code, textcolor,
> save, preview, table",
> 'theme' : 'modern',
> 'cleanup_on_startup' : True,
> 'menubar' : True,
> 'statusbar' : True
>
> }
> You can also add a lot of features, read their docs is straight
>
> On Sun, 16 Feb 2020, 18:13  wrote:
>
>> On settings.py
>>
>>
>>
>> # TIYMCE
>>
>> DJANGO_SETTINGS_MODULE='testtinymce.settings'
>>
>>
>>
>> *From:* django-users@googlegroups.com  *On
>> Behalf Of *Hedrick Godson's
>> *Sent:* Sunday, 16 February 2020 17:57
>> *To:* django-users@googlegroups.com
>> *Subject:* Re: TINYMCE Configuration on Django
>>
>>
>>
>> How did you configure tinymce in settings.py?You have to add other
>> functionalities too.
>>
>>
>>
>> On Sun, 16 Feb 2020, 17:43 N'BE SORO  wrote:
>>
>> Hello, please use tinymce 4 Lite
>>
>>
>>
>> https://github.com/Soro08/django-tinymce4-lite
>>
>>
>>
>> Le dim. 16 févr. 2020 à 14:28,  a écrit :
>>
>> Hello
>>
>> Am Luqman from Tanzania
>>
>> Am trying to configure tinymce on one of my project(blog).
>>
>> My Post model as show below
>>
>>
>>
>>
>>
>> The problem is, it doesn’t display correctly on the admin as expected.
>>
>>
>>
>> I would like to ask for your support
>>
>> --
>> 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/00bf01d5e4d5%2457b58ae0%240720a0a0%24%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/CAOtSHp8HK5%3DcMBxPpKXoEL5qwkJxMuAyUGVj9QnszzLV%3DhT_%3Dg%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/CAJAxQDmoKPmF3fnuwEuUwz-cTk%2BPFZ%2B2uydxDZeHPYNQN6Me%3DA%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/00e801d5e4db%249eec3a70%24dcc4af50%24%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/CAJAxQDnAjazzswzqdBgNai2rksv7gTJs0%2B%2Bhaf4%3DbXPyM5uZ3g%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/CAJY8mfyjFjkZbWGmLXi50mPDwOqWJSkNvDrm%3DQmoZPxp6pxr1w%40mail.gmail.com.


Re: Django tutorial part 2: "It’s important to add __str__() methods to your models"

2020-01-12 Thread Omkar Parab
Atom, sublime never show this error.
On Mon, Jan 13, 2020, 10:09 AM Jorge Gimeno  wrote:

> Hmm.  Not doing that on mine.  It is correct that __str__() is defined in
> models.Model, which your models inherit from.  I don't know why it would be
> considered an error.
>
> -Jorge
>
> On Sun, Jan 12, 2020 at 1:56 PM Julius Lange 
> wrote:
>
>> Dear people,
>>
>> currently doing the django tutorial! Really enjoy it so far.
>>
>> I am using PyCharm, Django version 3.0.2, Python version 3.7.1.
>>
>> In part 2  of
>> the tutorial it comes to a point i need to insert a __str__ function. I add
>> it like said in the tutorial and PyCharm says "Overrides Method in model"
>> already.
>>
>> If i keep going ignoring that, i keep getting errors.
>>
>>
>> --
>> 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/12005821-01f0-46bd-8869-aa77cd604ea8%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/CANfN%3DK8Z1cknONhgj%3DahT2%3D8HRAT68%2BhmODLTYBCgn7OsJKOSA%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/CAJY8mfwsY0HGD3TsZUXWDTz6F6kB13D7EMKvHPN8Vo1FRMOUwA%40mail.gmail.com.


Re: Django tutorial part 2: "It’s important to add __str__() methods to your models"

2020-01-12 Thread Omkar Parab
__str__()  represent string in a readable format. If you removed __str__()
it will show you object 1, object 2 in admin panel.

On Mon, Jan 13, 2020, 3:25 AM Julius Lange  wrote:

> Dear people,
>
> currently doing the django tutorial! Really enjoy it so far.
>
> I am using PyCharm, Django version 3.0.2, Python version 3.7.1.
>
> In part 2  of
> the tutorial it comes to a point i need to insert a __str__ function. I add
> it like said in the tutorial and PyCharm says "Overrides Method in model"
> already.
>
> If i keep going ignoring that, i keep getting errors.
>
>
> --
> 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/12005821-01f0-46bd-8869-aa77cd604ea8%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/CAJY8mfwj_dXGipTh6ucpimkNwDW_ed5WBZXQ4%2Bby_1sVZ0Vcxg%40mail.gmail.com.