Re: how to Display images other than from static folder.

2022-02-01 Thread RANGA BHARATH JINKA
Hi,

Pass the pdf URL as a context variable in the views function. Then you can
easily access it in your HTML using jinja templating and HTML anchor tag 

All the best

On Wed, Feb 2, 2022 at 11:03 AM ramsha azhar 
wrote:

> still, I'm confused, Guide me what to write in views.py to display images
> on my HTML page.
> the main problem is how to set this path in views.py file to get image
> from this path. I jst want to display this tree.pdf file on my html page.
> Any one tell me what to write in views.py?
> BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
> filename = 'Tree.pdf'
> filepath = BASE_DIR + '//' + filename
> path = open(filepath, 'rb')
>
> On Mon, Jan 31, 2022 at 9:00 PM ramsha azhar 
> wrote:
>
>> yes, I set check the attached settings.py file
>>  just want to know In template page how I set the path od
>> back directory folder where tree.png is placed.
>>
>> On Mon, Jan 31, 2022 at 8:55 PM DJANGO DEVELOPER 
>> wrote:
>>
>>> have you set up the static files in settings.py ?
>>>
>>> On Mon, Jan 31, 2022 at 8:49 PM ramsha azhar 
>>> wrote:
>>>
 I just want to display the attached Tree.png image on the HTML page but
 this image is created each time new according to the user input file. guide
 me how to set the path of this mage on an HTML page or how to display this
 tree.png as a user output image.

 On Mon, Jan 31, 2022 at 8:36 PM DJANGO DEVELOPER <
 abubakarbr...@gmail.com> wrote:

> tell me what you want to get as a result? do you want to display
> multiple images on HTML template?
>
> On Mon, Jan 31, 2022 at 8:27 PM ramsha azhar 
> wrote:
>
>> So guide me the write way ...
>>
>> On Mon, 31 Jan 2022, 7:45 pm DJANGO DEVELOPER, <
>> abubakarbr...@gmail.com> wrote:
>>
>>> you are doing it the wrong way. totally the wrong way. I am not
>>> being rude.
>>>
>>> On Mon, Jan 31, 2022 at 7:42 PM ramsha azhar <
>>> ramshaazha...@gmail.com> wrote:
>>>
 Gide me Django develpers. I just want to display my pictures that
 are created each time new.
 My mages are created in my project folder, not in the static folder.
 how I display images on the HTML page by using the path of my
 project folder.

 views.py

 def Image_display(request):
   BASE_DIR =
 os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
   filename = 'Tree.jpg'
   filepath = BASE_DIR + '//' + filename
   images = Image.objects.all('filepath')
   return render(request, "xyz.html", {'images': images})

 url.py
 path('Image_display/', views.Image_display, name="Image_display"),

 HTML page
 
 
 
 

 --
 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/8da245ea-ea90-4730-83c0-accafc93b86bn%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/CAKPY9p%3DE1FmUc%3Dqqy1tGYBJbimFX873XXSTDndnn4kVUjo3ZWg%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/CAMyb2%3DheLgJo5dMxsCgQ8cm%3Dp0px5EHpLr2frYtDowV8mmC%2BbQ%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: how to Display images other than from static folder.

2022-02-01 Thread RANGA BHARATH JINKA
Hi,

Please follow this.
https://djangocentral.com/managing-media-files-in-django/
You have to store your images in a static media folder by adding the media
path in settings.py.
This is the recommended way and easy to access the images

All the best

On Wed, Feb 2, 2022 at 11:30 AM RANGA BHARATH JINKA <
bharathjink...@gmail.com> wrote:

> Hi,
>
> Pass the pdf URL as a context variable in the views function. Then you can
> easily access it in your HTML using jinja templating and HTML anchor tag  href="{{pdf_url}}"  download target="__blank" />
>
> All the best
>
> On Wed, Feb 2, 2022 at 11:03 AM ramsha azhar 
> wrote:
>
>> still, I'm confused, Guide me what to write in views.py to display images
>> on my HTML page.
>> the main problem is how to set this path in views.py file to get image
>> from this path. I jst want to display this tree.pdf file on my html page.
>> Any one tell me what to write in views.py?
>> BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
>> filename = 'Tree.pdf'
>> filepath = BASE_DIR + '//' + filename
>> path = open(filepath, 'rb')
>>
>> On Mon, Jan 31, 2022 at 9:00 PM ramsha azhar 
>> wrote:
>>
>>> yes, I set check the attached settings.py file
>>>  just want to know In template page how I set the path od
>>> back directory folder where tree.png is placed.
>>>
>>> On Mon, Jan 31, 2022 at 8:55 PM DJANGO DEVELOPER <
>>> abubakarbr...@gmail.com> wrote:
>>>
>>>> have you set up the static files in settings.py ?
>>>>
>>>> On Mon, Jan 31, 2022 at 8:49 PM ramsha azhar 
>>>> wrote:
>>>>
>>>>> I just want to display the attached Tree.png image on the HTML page
>>>>> but this image is created each time new according to the user input file.
>>>>> guide me how to set the path of this mage on an HTML page or how to 
>>>>> display
>>>>> this tree.png as a user output image.
>>>>>
>>>>> On Mon, Jan 31, 2022 at 8:36 PM DJANGO DEVELOPER <
>>>>> abubakarbr...@gmail.com> wrote:
>>>>>
>>>>>> tell me what you want to get as a result? do you want to display
>>>>>> multiple images on HTML template?
>>>>>>
>>>>>> On Mon, Jan 31, 2022 at 8:27 PM ramsha azhar 
>>>>>> wrote:
>>>>>>
>>>>>>> So guide me the write way ...
>>>>>>>
>>>>>>> On Mon, 31 Jan 2022, 7:45 pm DJANGO DEVELOPER, <
>>>>>>> abubakarbr...@gmail.com> wrote:
>>>>>>>
>>>>>>>> you are doing it the wrong way. totally the wrong way. I am not
>>>>>>>> being rude.
>>>>>>>>
>>>>>>>> On Mon, Jan 31, 2022 at 7:42 PM ramsha azhar <
>>>>>>>> ramshaazha...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Gide me Django develpers. I just want to display my pictures that
>>>>>>>>> are created each time new.
>>>>>>>>> My mages are created in my project folder, not in the static
>>>>>>>>> folder.
>>>>>>>>> how I display images on the HTML page by using the path of my
>>>>>>>>> project folder.
>>>>>>>>>
>>>>>>>>> views.py
>>>>>>>>>
>>>>>>>>> def Image_display(request):
>>>>>>>>>   BASE_DIR =
>>>>>>>>> os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
>>>>>>>>>   filename = 'Tree.jpg'
>>>>>>>>>   filepath = BASE_DIR + '//' + filename
>>>>>>>>>   images = Image.objects.all('filepath')
>>>>>>>>>   return render(request, "xyz.html", {'images': images})
>>>>>>>>>
>>>>>>>>> url.py
>>>>>>>>> path('Image_display/', views.Image_display, name="Image_display"),
>>>>>>>>>
>>>>>>>>> HTML page
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>> --

Re: migrations: "no changes detected"

2022-02-07 Thread RANGA BHARATH JINKA
Hi,

I think you forgot to add the app name in settings file. Please add the app
names in installed apps. Then it will find out the models.

All the best


On Tue, 8 Feb 2022, 10:14 am 'Delvin Alexander' via Django users, <
django-users@googlegroups.com> wrote:

> I am trying to run migrations so that i can create a table, but when I
> type out, "python manage.py makemigrations"
> it returns this: "no changes detected"
>
> would anyone know the reason for 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/639770ea-db24-469a-a123-6f4cb2af3036n%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/CAK5m314skg-HBhQx25mxzg4rHEp8-5jZEX8%2BT9Kr8uDHv-bR5A%40mail.gmail.com.


Re: Django App

2022-02-07 Thread RANGA BHARATH JINKA
What is the error. Please share here

On Tue, 8 Feb 2022, 12:13 am Abdulrahman Abbas, 
wrote:

> Pls I'm trying to host a Django app on a free hosting sites basically
> netlify and heroku but it keeps failing while building pls is there
> anything I need to install or any other alternative
>
> --
> 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/CAGGqo0PykUHdvNUUkDhDtwU_SD_w7-%2BZ%2BOZEZyJ-Kh4BDwdTSw%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/CAK5m317Z4bt%2BUvZRRLirCR1aCfzsz7CPhbHhaqJBvjU0HbbNyA%40mail.gmail.com.


Re: Help : Embedding pdf in Django detailview

2022-03-17 Thread RANGA BHARATH JINKA
Hi,

Please try this.

https://stackoverflow.com/questions/11779246/how-to-show-a-pdf-file-in-a-django-view

On Thu, Mar 17, 2022 at 12:12 PM Dexterr Jay  wrote:

> Hello guys, I'm developing a job board, and I want to display uploaded
> files in job detailview without downloading the file.
> When job seakers open a posted job I want the uploaded file from employer
> to be rendered in web browser
>
> --
> 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/CAC32Mkjj-frMgLdc0_MY1_sBrN_MxV0DLPb3gXAY8%3DZ4oL%2BnXQ%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: Error django.db.utils.OperationalError: no such column:

2022-04-26 Thread RANGA BHARATH JINKA
Hi,

Run python manage.py makemigrations

python manage.py migrate

Thanks and Regards

J. Ranga Bharath
Cell: 9110334114


On Tue, 26 Apr 2022, 1:07 pm Israel Lewis,  wrote:

> Hello guys,
>
> I'm having an error in my models when I add the FK to the faculty or the
> student.
> model.py
> from django.db import models
>
> # Create your models here.
>
>
> class Student(models.Model):
> first_name = models.CharField(max_length=100)
> last_name = models.CharField(max_length=100)
> reg_no = models.CharField(max_length=20, unique=True)
>
> def __str__(self):
> return self.first_name
>
>
> class Faculty(models.Model):
> faculty_name = models.CharField(max_length=100)
> student = models.ForeignKey(Student, on_delete=models.CASCADE)
>
> def __str__(self):
> return self.faculty_name
>
>
> class Course(models.Model):
> course_name = models.CharField(max_length=100, unique=True)
> faculty = models.ForeignKey(Faculty, on_delete=models.CASCADE)
>
> def __str__(self):
> return self.course_name
>
>
> class Dean(models.Model):
> dean_name = models.CharField(max_length=100)
> faculty = models.OneToOneField(Faculty, on_delete=models.CASCADE)
>
> def __str__(self):
> return self.dean_name
>
>
> class StudentRequest(models.Model):
> student_name = models.CharField(max_length=100)
> faculty = models.ForeignKey(Faculty, on_delete=models.CASCADE)
> course = models.ForeignKey(Course, on_delete=models.CASCADE)
> reg_no = models.CharField(max_length=20)
> reasons = models.CharField(max_length=300, null=False)
>
> def __str__(self):
> return f"{self.student_name}"
>
>
> class FinancialRecords(models.Model):
> ACADENIC_YEAR_CHOICES = [
> ('Year 3 Sem 2'),
> ('Year 4 Sem 2')
> ]
> PAYMENT_PLAN_CHOICES = [
> ('Full'),
> ('Follow'),
> ('Fail'),
> ]
>
> payment_plan_category = models.CharField(
> PAYMENT_PLAN_CHOICES, max_length=10)
>
> student_reg = models.ForeignKey(Student, models.CASCADE)
> academic_year = models.CharField(ACADENIC_YEAR_CHOICES, max_length=20)
> course = models.ForeignKey(Course, on_delete=models.CASCADE)
>
>
>
> Errors
> Traceback (most recent call last):
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/backends/utils.py",
> line 89, in _execute
> return self.cursor.execute(sql, params)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py",
> line 477, in execute
> return Database.Cursor.execute(self, query, params)
> sqlite3.OperationalError: no such column: exams_app_faculty.student_id
>
> The above exception was the direct cause of the following exception:
>
> Traceback (most recent call last):
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/core/handlers/exception.py",
> line 55, in inner
> response = get_response(request)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/core/handlers/base.py",
> line 197, in _get_response
> response = wrapped_callback(request, *callback_args, **callback_kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/contrib/admin/options.py",
> line 683, in wrapper
> return self.admin_site.admin_view(view)(*args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/utils/decorators.py",
> line 133, in _wrapped_view
> response = view_func(request, *args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/views/decorators/cache.py",
> line 62, in _wrapped_view_func
> response = view_func(request, *args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/contrib/admin/sites.py",
> line 242, in inner
> return view(request, *args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/utils/decorators.py",
> line 46, in _wrapper
> return bound_method(*args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/utils/decorators.py",
> line 133, in _wrapped_view
> response = view_func(request, *args, **kwargs)
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/contrib/admin/options.py",
> line 2063, in changelist_view
> "selection_note": _("0 of %(cnt)s selected") % {"cnt":
> len(cl.result_list)},
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/models/query.py",
> line 302, in __len__
> self._fetch_all()
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/models/query.py",
> line 1507, in _fetch_all
> self._result_cache = list(self._iterable_class(self))
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python3.8/site-packages/django/db/models/query.py",
> line 57, in __iter__
> results = compiler.execute_sql(
>   File
> "/home/israel/Desktop/exams-clearance/env/lib/python

Re: Sending Live Streaming Images from Client’s Webcam to Django Server

2022-10-13 Thread RANGA BHARATH JINKA
Hi,
Please follow this. All the best

https://www.geekfeed.co.jp/geekblog/sending-live-streaming-images-from-clients-webcam-to-django-server/

Thanks and Regards

J. Ranga Bharath
Cell: 9110334114


On Wed, 12 Oct 2022, 9:13 pm Anshuman Thakur, 
wrote:

> Sir my question is: Sending Live Streaming  from Client’s Webcam to
> Django Server.
>
>
> On Tue, Oct 11, 2022 at 2:39 AM 'Kasper Laudrup' via Django users <
> django-users@googlegroups.com> wrote:
>
>> On 08/10/2022 21.28, Anshuman Thakur wrote:
>> > Sr plz anyone help me for this question
>> >
>>
>> Which question?
>>
>> It would be easier for someone to help you if you actually asked a
>> question.
>>
>> 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/fe047fd3-39e1-3eaf-eb41-05ecc54bfc34%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/CADGZiBqbJYj%3DvQ8D%2BuL3rL8hRQpxYQhr-EBsLA9ySC%3Dp3sm9uw%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/CAK5m314Dy-6PHYHz1vBRetOSgsTAQdnqy-XsGWxoO8PiEKU1wg%40mail.gmail.com.


Re: Random different values on each request

2022-11-19 Thread RANGA BHARATH JINKA
Hi,

You can use random module in python to generate random numbers

Thanks and Regards

J. Ranga Bharath
Cell: 9110334114


On Thu, 17 Nov 2022, 7:51 pm cs.s...@gmail.com,  wrote:

> Hello friends,
> I am trying to get 2 random values on each response using
> order_by('?')[:2], but getting the same response each time.  also tried
> RandomManager() as described here.
> https://stackoverflow.com/questions/962619/how-to-pull-a-random-record-using-djangos-orm
> , but still getting the same response.   (SQL query:  SELECT TOP 2 * FROM
> QuizBank ORDER BY NEWID())
>
> views.py:
> class GetEssayQuestion(APIView):
> def get(self, request):
> data = Quizbank.objects.all().filter(status=1,
> section=5).order_by('?')[:2]
> serializer = QuizbankSerializer(data, many=True)
> return Response(serializer.data)
>
> Appreciate any reference? 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/800a6bc3-9870-47dd-8f41-54f13de108bdn%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/CAK5m317RvY8e3zW-e1hHS5r66grz5KvztWuuwJ0KzvPTODAUKA%40mail.gmail.com.


Re: django internationalization

2022-11-29 Thread RANGA BHARATH JINKA
Hi,

Please follow this

https://stackoverflow.com/questions/2345708/how-can-i-get-the-full-absolute-url-with-domain-in-django

Thanks and Regards

J. Ranga Bharath
Cell: 9110334114


On Tue, 29 Nov 2022, 11:53 am Dhrub Kumar Sharma, 
wrote:

> I want the remaining slug part print dynamically rather than listing
> manually like https://example.com/ru/hello-world
>
> Here,
> https://example.com/ is a domain
>
> ru - country code
>
> Hello-word is slug
>
> Domain and country code is easy to print using for loop up to available
> country code but for slug i dint get exact code to print when I use {{%
> request.path %} } it also wont work because when the user visit the page
>
> https://example.com/ru/hello-world
>
> Then request.path become
> ru/hello-word
>
> And at this time {{% request.path %} } fetch ru/hello-world so ru will be
> repeated twice in this case and our url become insane like
>
> https://example.com/ru/ru/hello-world
>
> But acutally i want to print only the page path not the full url directory
>
> In the django documentation there is only code avaiable form type select
> to switch language but i want there dropdown with anchor tag there also i
> am facing the same problm and second picture is of dropdown
>
> On Tue, Nov 29, 2022, 4:08 AM David Emanuel Sandoval <
> davidemanuelsando...@gmail.com> wrote:
>
>> Hi, in my case I'm not sure if I'm understanding the problem well.
>>
>> Do you have a different url for every language? Are the urls also
>> translated?
>>
>> In the docs i see they use a tag to get the correct url for the given
>> language, but as I said, I'm not sure if that is what you want.
>>
>>
>> https://docs.djangoproject.com/en/4.1/topics/i18n/translation/#reversing-in-templates
>>
>> El lun, 28 nov 2022 16:54, Dhrub Kumar Sharma 
>> escribió:
>>
>>> Hi everybody I am applying Django internalization for a multilingual
>>> site. I am facing a problem with making href URL dynamic instead of
>>> repeating same code manually.
>>>
>>> [image: url.png]
>>> I tried this but cant get perfect href dynamically. please help me same
>>> problem I am facing in language switcher href also.
>>>
>>> {% get_current_language as LANGUAGE_CODE %}
>>> {% get_available_languages as LANGUAGES %}
>>> {% get_language_info_list for LANGUAGES as languages %}
>>> {% get_language_info for LANGUAGE_CODE as lang %}
>>> {% for lang in languages %}
>>> 
>>> {% endfor %}
>>>
>>> [image: loop.png]
>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/6c5c96ea-9866-40b2-9c23-9b03d771ae7en%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/CAHUWMCaTSbE%2B9fhkNxYJ9ApmRqs9nGfUXgmft8pzajHtuwgmgw%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/CAEgZrmGTB9u%2BdO31zrAK37b0T%3DGJznaqDYDhDAb2Akd2QWmYFA%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/CAK5m317X9H-UT-y12%2BbCf25FLRSec3fy-sZSK4CgppLiT2ohYw%40mail.gmail.com.


Re: Finding Help in getting started in Django

2023-05-31 Thread RANGA BHARATH JINKA
Hi,

Go through this quick start tutorial and understand. You can do this. It is
very easy.

https://www.django-rest-framework.org/tutorial/quickstart/

Thanks and Regards

J. Ranga Bharath
Cell: 9110334114


On Wed, 31 May 2023, 2:16 pm DieHardMan 300, 
wrote:

> I'd like to give some advice before start your Django journey and Django
> project configurations
> -- Before Start Django --
> 1. master Python "class" bacause you might use django class-based view a
> lot, learn "decorator" and standard library "datetime" and "re"
> 2. choose "Python version" for your django project, I recommend Python
> 3.10 or 3.11. You should check current installed Python version
> in your terminal --> py --version
> ** if you use Unix OS like MacOS or Linux, type "python3" instead of "py"
> 3. I highly recommend create virtual environment for each django project,
> install virtualenv with pip
> windows cmd --> py -m pip install virtualenv
> then --> py -m virtualenv app-env
> macos terminal --> python3 -m pip install virtualenv
> then --> python3 -m virtualenv app-env
> 4. activate virtual environment you just created
> windows cmd --> app-env\Scripts\activate.bat   or
>  app-env\Scripts\activate
> macos terminal --> source/bin/activate
> to stop virtualenv just type --> deactivate
> 5. install django latest version via pip (you must activate virtualenv
> first)
> --> py -m pip install django
> -- Start Django --
> 1. start new django project (don't forget to activate virtualenv first)
> --> django-admin startproject my-app
> 2. go inside project folder and create "requirements.txt" and type all
> requirement library for your project
>--- requirements.txt ---
> django >= 4.2.0, < 4.3.0
> wheel >= 0.4.0
> ipython >= 8.11.0   # python shell for django project
> python-decouple >= 3.7.0# for hiding sensitive data in settings.py
> before uploading to git
> setuptools >= 67.7.0
> psycopg >= 3.0.0   # postgresql database driver. if
> you use django 4.1 or lower you must install psycopg2 instead of psycopg
>  mysqlclient => 2.1.1# mysql database driver. if you
> already use postgresql you don't need this
> 3. install specified dependencies
> --> py -m pip install -r requirements.txt
> for upgrade your dependencies --> py -m pip install --upgrade -r
> requirements.txt
> by doing this you have more control to your project dependencies
> for example if you specified "django >= 4.2.0, < 4.3.0" it will
> upgrade django between 4.2.0 to 4.2.* but never 4.3.0
> 4. in your main project directory it will have 3 files now
> my-app,  manage.py  and  requirements.txt
> 5. open "settings.py" in "my-app"
> first thing you need to be cautious is SECRET_KEY constant. You must
> never lose it or expose this to public that's why "python-decouple" library
> needed
> for more information https://pypi.org/project/python-decouple/
> 6. in DATABASE section change it to your database
> --- for postgresql ---
> DATABASES = {
> 'default': {
> DATABASE_ENGINE='django.db.backends.postgresql'
> DATABASE_NAME='mydatabase'
> DATABASE_USER='root'
> DATABASE_PASSWORD=''
> DATABASE_HOST='localhost'
> DATABASE_PORT='5432'
> }
> }
> --- for mysql ---
> DATABASES = {
> 'default': {
> ALLOWED_HOSTS='localhost'
> DATABASE_ENGINE='django.db.backends.mysql'
> DATABASE_NAME='mydatabase'
> DATABASE_USER='root'
> DATABASE_PASSWORD=''
> DATABASE_HOST='localhost'
> DATABASE_PORT='3306'
> }
> add your "user" and "password", both database port above are default port
> though
> 7. start your first database migrate
> --> py manage.py migrate
>
> Now go for Django Tutorial --> https://docs.djangoproject.com/en/4.2/
> I hope this help you avoid some problems in the future.
>
> ในวันที่ วันอังคารที่ 30 พฤษภาคม ค.ศ. 2023 เวลา 21 นาฬิกา 56 นาที 14
> วินาที UTC+7 Veronica Ndemo เขียนว่า:
>
>> Hi guys I need help.I am just getting started in using Django and I would
>> love to get guidance on how to go about the Django framework
>
> --
> 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/8f7da283-844b-4fd3-aa73-324a5ada7d7cn%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/CAK5m316NYXbxJXg0skFM79dKANbqKq%2BnL-eMa

Re: Any free MAP API available

2020-06-04 Thread RANGA BHARATH JINKA
You can refer these links.

https://towardsdatascience.com/visualizing-data-at-the-zip-code-level-with-folium-d07ac983db20

https://morioh.com/p/d896544d6977

https://towardsdatascience.com/making-3-easy-maps-with-python-fb7dfb1036

On Thursday, June 4, 2020 at 3:15:55 AM UTC+5:30, Ram wrote:
>
> Hi,
>
> We need to add location map based on the zip code in our DJango web 
> application. Is there any free API available out there? if you have used it 
> already could you suggest one?
>
> Thanks,
> ~Ram
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/78804b7c-c0c4-4258-bafb-809aa349f4b9%40googlegroups.com.


Re: Any free MAP API available

2020-06-04 Thread RANGA BHARATH JINKA
Hi, You can use folium module in python to achieve this. Link to module.

Folium Maps 

Hope this helps. All the best.

On Thursday, June 4, 2020 at 3:15:55 AM UTC+5:30, Ram wrote:
>
> Hi,
>
> We need to add location map based on the zip code in our DJango web 
> application. Is there any free API available out there? if you have used it 
> already could you suggest one?
>
> Thanks,
> ~Ram
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5d7f945f-2472-487b-ba8d-52b4cc17256a%40googlegroups.com.


Re: Any free MAP API available

2020-06-04 Thread RANGA BHARATH JINKA
Hi, I created this python module. It will convert zipcode to a html map. 
You can use this. I will link the example usage github link.

https://github.com/bharathjinka09/zipcode_to_map

https://pypi.org/project/zipcode-to-map/

On Thursday, June 4, 2020 at 3:15:55 AM UTC+5:30, Ram wrote:
>
> Hi,
>
> We need to add location map based on the zip code in our DJango web 
> application. Is there any free API available out there? if you have used it 
> already could you suggest one?
>
> Thanks,
> ~Ram
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/089c1398-6656-41fc-a595-475cee1f1831%40googlegroups.com.


Re: Any free MAP API available

2020-06-04 Thread RANGA BHARATH JINKA
Hi, You can convert zipcode to latitude and longitude using this module. 
And use those in your map using folium.

https://pypi.org/project/pgeocode/

On Thursday, June 4, 2020 at 3:15:55 AM UTC+5:30, Ram wrote:
>
> Hi,
>
> We need to add location map based on the zip code in our DJango web 
> application. Is there any free API available out there? if you have used it 
> already could you suggest one?
>
> Thanks,
> ~Ram
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/16faa60b-b52b-492c-a1d4-3e03e29f96fa%40googlegroups.com.


Re: Any free MAP API available

2020-06-04 Thread RANGA BHARATH JINKA
import pgeocode
import folium


'''
Provide a Country code and postal code.
It will generate a map in a html file based on these details.
Used pgeocode and folium packages.
'''

def zipcode_to_map(country_code, postal_code):
country_code = pgeocode.Nominatim(country_code)

zip_code = country_code.query_postal_code(postal_code)

postal_code = zip_code['postal_code']
multiple_zip_codes = country_code.query_postal_code(["560034", "560083"])

m = folium.Map(location=[zip_code['latitude'], zip_code['longitude']], 
zoom_start=9,
   detect_retina=True, control_scale=False)

m.save(f'{postal_code}-map.html')

zipcode_to_map('in','515411')

I wrote this function.You can use this function to generate map using a 
zipcode and countrycode. Hope it will be useful for you.

On Thursday, June 4, 2020 at 3:15:55 AM UTC+5:30, Ram wrote:
>
> Hi,
>
> We need to add location map based on the zip code in our DJango web 
> application. Is there any free API available out there? if you have used it 
> already could you suggest one?
>
> Thanks,
> ~Ram
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7b985c15-b523-497b-91a4-8b08586e7f28%40googlegroups.com.


Re: Need help

2020-06-14 Thread RANGA BHARATH JINKA
Hi,
You should not load html file directly. You have to include html file
inside a view, and call the url linked to that view in urls.py file. You
have to use the url to access the view. All the best.

On Mon, Jun 15, 2020 at 3:33 AM Yannick Kiki  wrote:

> {% load static %} should be the first line in the template
>
> On Sun, Jun 14, 2020 at 20:27 Julio Cojom 
> wrote:
>
>> Based on the url of the browser, seems like python isn't interpreting the
>> HTML file. This url isn't friendly, django not shows ".html" when you
>> browse inside your app. Are you running with py manage.py runserver?
>>
>> Why the port is 63342? Usualy the port is 8000 unless you explicit
>> changed it.
>>
>> Try with the first steps in the django tutorial, that will be config
>> template spaces, urls, views and models.
>>
>>
>> https://docs.djangoproject.com/en/3.0/intro/tutorial01/
>>
>>
>> El dom., 14 de junio de 2020 1:15 p. m., Ragnar Örn Ólafsson Ólafsson <
>> ragnar@gmail.com> escribió:
>>
>>> Category:{%category%} is being parsed as normal text inside of the HTML.
>>>
>>> On Sun, 14 Jun 2020 at 19:04, Deborah  wrote:
>>>


 Le dimanche 14 juin 2020 20:38:43 UTC+2, Deborah a écrit :
>
> good evening
> the tags that I use in the html file, appear on browsers when I launch
> the server, what to do ???
>
 --
 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/50e03cdf-2aae-4f20-a19a-ed06e1ac4148o%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/CAL1UQP3ECFwL6tLByftURPGA5m2odRjk38%3DouY2jv6zWQ%2BiS-g%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/CAHRQUHmbCtY64OYpX8u-%3DuvbXOhKv%2BQwTCvm3%2BNUQuP-2vCq0w%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/CACVVTn0HcYG2QxywD_K9uksSDeSnBFwN3Y%3DZDQYjXhHE%2BQ_Qug%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: cant be able to setup GDAL in django prject

2020-06-16 Thread RANGA BHARATH JINKA
Hi,

If you want to work with maps u can use foilum package. Watch foilum
video of traversy media on youtube. On seeing your error, it is saying that
the loation path is not correct. It is not able to find the file path
correctly. Instead use python os module to locate the file exactly. Ex:-
os.path.join(BASE_DIR, 'YOUR-FILE-NAME').

I hope this helps. Thank you.

On Tue, Jun 16, 2020 at 4:07 PM Puneet Makhija 
wrote:

> Please reply please please please please
>
> On Monday, June 15, 2020 at 6:51:51 PM UTC+5:30, Puneet Makhija wrote:
>>
>> As i am Stuck in this Error from 2 days. But cant get the Solution why
>> this was Happening
>> I am getting an Error:
>>
>> self._handle = _dlopen(self._name, mode)
>>indusli  | OSError: /usr/local/lib/libgdal.so: cannot open shared
>> object file: No such file or directory
>>
>> And below is my django settings.py filelibrary path for GDAL and
>> GEOS
>>
>> GDAL_LIBRARY_PATH="/usr/local/lib/libgdal.so"
>> GEOS_LIBRARY_PATH="/usr/local/lib/libgeos_c.so"
>>
>>
>> As i setted up the path in the /etc/ld.so.conf :-
>> include /etc/ld.so.conf.d/*.conf
>> /usr/local/lib
>> then sudo ldconfig
>>
>> still im geeting the same error :-
>> cannot open shared object file: No such file or directory
>> As i stuck in this from last 2 days why this was happening
>>
>> As i am using Ubuntu 18.04 version
>> GDAL: gdal-3.1.0
>> Proj: proj-7.0.1
>> Geos: geos-3.8.1
>>
>> ** Any help will be highly Appreciated ***
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/c307f59c-440e-4bba-8f00-586f1bdab3bco%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m315geVhLA%3DeiCS5-nO40-z685Qrtkcs-29yP9GWATNB%3D0Q%40mail.gmail.com.


Re: cant be able to setup GDAL in django prject

2020-06-16 Thread RANGA BHARATH JINKA
https://www.youtube.com/playlist?list=PL7amXK4vKqATa_KrfQ3_tEF_ywAgAqWeJ

You can watch this playlist on youtube.

On Tue, Jun 16, 2020 at 4:43 PM RANGA BHARATH JINKA <
bharathjink...@gmail.com> wrote:

> Hi,
>
> If you want to work with maps u can use foilum package. Watch foilum
> video of traversy media on youtube. On seeing your error, it is saying that
> the loation path is not correct. It is not able to find the file path
> correctly. Instead use python os module to locate the file exactly. Ex:-
> os.path.join(BASE_DIR, 'YOUR-FILE-NAME').
>
> I hope this helps. Thank you.
>
> On Tue, Jun 16, 2020 at 4:07 PM Puneet Makhija 
> wrote:
>
>> Please reply please please please please
>>
>> On Monday, June 15, 2020 at 6:51:51 PM UTC+5:30, Puneet Makhija wrote:
>>>
>>> As i am Stuck in this Error from 2 days. But cant get the Solution why
>>> this was Happening
>>> I am getting an Error:
>>>
>>> self._handle = _dlopen(self._name, mode)
>>>indusli  | OSError: /usr/local/lib/libgdal.so: cannot open shared
>>> object file: No such file or directory
>>>
>>> And below is my django settings.py filelibrary path for GDAL and
>>> GEOS
>>>
>>> GDAL_LIBRARY_PATH="/usr/local/lib/libgdal.so"
>>> GEOS_LIBRARY_PATH="/usr/local/lib/libgeos_c.so"
>>>
>>>
>>> As i setted up the path in the /etc/ld.so.conf :-
>>> include /etc/ld.so.conf.d/*.conf
>>> /usr/local/lib
>>> then sudo ldconfig
>>>
>>> still im geeting the same error :-
>>> cannot open shared object file: No such file or directory
>>> As i stuck in this from last 2 days why this was happening
>>>
>>> As i am using Ubuntu 18.04 version
>>> GDAL: gdal-3.1.0
>>> Proj: proj-7.0.1
>>> Geos: geos-3.8.1
>>>
>>> ** Any help will be highly Appreciated ***
>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/c307f59c-440e-4bba-8f00-586f1bdab3bco%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/c307f59c-440e-4bba-8f00-586f1bdab3bco%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: events calendar

2020-06-16 Thread RANGA BHARATH JINKA
Hi,
You can make use of django-calendars to implement this. All the best.

https://pypi.org/project/django-calendarium/

https://medium.com/@unionproject88/django-and-python-calendar-e647a8eccff6

On Tue, Jun 16, 2020 at 5:59 PM Nouhaila Khiyate <
nouhaila.khiyat...@gmail.com> wrote:

> hello, i'm creating a leave system and i want to add a calendar that
> display existing leaves from my database something like this calendar ,but
> i don't know what i should use for that ,help me please!!
> ᐧ
>
> --
> 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/CAHBR0sAOZfYYBKhorL7Y8bwpJXUdoGz9pS9Y0vU9DCnphJpJ3w%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: Work in django!!

2020-06-16 Thread RANGA BHARATH JINKA
Hi, You can use the folium package.

On Wed, Jun 17, 2020 at 9:28 AM meera gangani 
wrote:

> Hello ,
>
>I want to work with maps in django, which libraries i installed!
>
> Thank to you in advance
> -Meera
>
>
> --
> 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/CANaPPPKCrrTbdUNC-JDujx7wn05kp%3Dd5xXbu-qKYsGH%2BGO00YQ%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m3158B8nSkjKRrY1KGZ7p3G2MY%2Be-Pkv9kqYDXBbZ3BV-8A%40mail.gmail.com.


Re: import my data and generating models.py

2020-06-18 Thread RANGA BHARATH JINKA
Hi,

Try this.
https://simpleisbetterthancomplex.com/packages/2016/08/11/django-import-export.html

https://docs.djangoproject.com/en/3.0/howto/initial-data/

https://django-import-export.readthedocs.io/en/latest/getting_started.html

On Fri, Jun 19, 2020 at 11:37 AM Mohsen Pahlevanzadeh <
m.pahlevanza...@gmail.com> wrote:

> Hello,
>
> I have two sql files : 1.creating tables 2.INSERT data
>
> Now I want to import to my database and generating my models.py according
> to my sql files.
>
> Is it possible?
>
>
> if true, please guide 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/7dc184da-2dac-4f9a-940c-6ddeefdad86ao%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314E_%3D73XOe4h45%3DoAKDqDM7%2Bwg0-1nSAH_4dunP3m94FQ%40mail.gmail.com.


Re: Please help me out!

2020-06-19 Thread RANGA BHARATH JINKA
Hi, You can use this.

https://pypi.org/project/django-notifications-hq/

https://pypi.org/project/django-notification/

On Fri, Jun 19, 2020 at 1:38 PM Doddahulugappa.B 
wrote:

> Please elaborate more on your requirement
>
> On Fri, Jun 19, 2020, 10:31 AM meera gangani 
> wrote:
>
>> Hello ,
>>
>> I want to implement a Notification module in my Project
>> could you please help me out!
>>
>>
>> Thank you
>> -Meera Gangani
>>
>> --
>> 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/CANaPPPJJq_r9AZqeQACGqMpGjPzzx1sJA%3DLQr-K3FJ6s4%3DQkbA%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/CAKfjjGpDpgBQ%3DK4%3DbjACmsSNE%2BddHndVvJMqR3FF43fLvjpejw%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m3172%2BEbLGW0X%2Bdht4sSg7Ba8DejZCQXq%2B6%3D3tbJfiHtD7A%40mail.gmail.com.


Re: python manage.py runserver error

2020-06-19 Thread RANGA BHARATH JINKA
Hi,
You have to go into your django project folder where manage.py file is
located. Test with using "ls" inside your command prompt. All the best.

On Fri, Jun 19, 2020 at 5:08 PM Tanisha Jain 
wrote:

> still the problem persists.
>
> On Fri, 19 Jun 2020 at 07:15, Utsab Bashyal  wrote:
>
>> enter inside your project directory   using command cd project_name in
>> termina and run manage.py runserver
>>
>>
>> On Fri, Jun 19, 2020 at 6:52 AM Thomas Furtado 
>> wrote:
>>
>>> Hii, thanks for answering but it didn't work
>>> Now it showed: no module named 'django.contrib.statics'
>>>
>>> Em qui, 18 de jun de 2020 22:03, chaitanya orakala <
>>> chaitu.orak...@gmail.com> escreveu:
>>>
 Hi Thomas,
 Please run the following commands to solve this problem, before running
 the server.

 python manage.py makemigrations
 python manage.py migrate

 and then command
 python manage.py runserver

 Hope this helps. Let me know if you have any questions

 On Thu, Jun 18, 2020 at 6:15 PM Thomas Furtado <
 thomasfurtad...@gmail.com> wrote:

> Hi, I've seen you sent this last year and I'm having the same error
> message at my pycharm... Did you solve this?? could you help me with this
> please??
>
> Em sábado, 13 de julho de 2019 08:35:31 UTC-3, Jack Bergemann escreveu:
>>
>> (venv) C:\Users\Chas\rp-portfolio\personal_portfolio>python manage.py
>> runserver
>> Watching for file changes with StatReloader
>> Exception in thread django-main-thread:
>> Traceback (most recent call last):
>>   File "C:\Python37\lib\threading.py", line 926, in _bootstrap_inner
>> self.run()
>>   File "C:\Python37\lib\threading.py", line 870, in run
>> self._target(*self._args, **self._kwargs)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>> line 54, in wrapper
>> fn(*args, **kwargs)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>> line 109, in inner_run
>> autoreload.raise_last_exception()
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>> line 77, in raise_last_exception
>> raise _exception[1]
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
>> line 337, in execute
>> autoreload.check_errors(django.setup)()
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\utils\autoreload.py",
>> line 54, in wrapper
>> fn(*args, **kwargs)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\__init__.py",
>> line 24, in setup
>> apps.populate(settings.INSTALLED_APPS)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\registry.py",
>> line 91, in populate
>> app_config = AppConfig.create(entry)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\apps\config.py",
>> line 90, in create
>> module = import_module(entry)
>>   File "C:\Python37\lib\importlib\__init__.py", line 127, in
>> import_module
>> return _bootstrap._gcd_import(name[level:], package, level)
>>   File "", line 1006, in _gcd_import
>>   File "", line 983, in _find_and_load
>>   File "", line 965, in
>> _find_and_load_unlocked
>> ModuleNotFoundError: No module named 'hello_world'
>>
>> Traceback (most recent call last):
>>   File "manage.py", line 21, in 
>> main()
>>   File "manage.py", line 17, in main
>> execute_from_command_line(sys.argv)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
>> line 381, in execute_from_command_line
>> utility.execute()
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\__init__.py",
>> line 375, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
>> line 323, in run_from_argv
>> self.execute(*args, **cmd_options)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>> line 60, in execute
>> super().execute(*args, **options)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\base.py",
>> line 364, in execute
>> output = self.handle(*args, **options)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",
>> line 95, in handle
>> self.run(**options)
>>   File
>> "C:\Users\Chas\rp-portfolio\venv\lib\site-packages\django\core\management\commands\runserver.py",

Re: Unable to import HTML code

2020-06-29 Thread RANGA BHARATH JINKA
Hi,

I want to give some steps to go through.

   1. Try to close the server and run again.
   2. Hard reload the page using ctrl+shift+r and check the console for any
errors like css file not found.
   3. Check whether the file is linking properly to the correct location in
static folder.

All the best

On Mon, Jun 29, 2020 at 3:22 PM Avi shah  wrote:

> I have imported all my files that is css , js and webfonts and i have
> listed it in my settings.py as this STATIC_ROOT = os.path.join(BASE_DIR,
> 'static')
> STATIC_URL = '/static/'
> STATICFILES_DIRS = [
> os.path.join(BASE_DIR, 'static')
> ]
>
> And then and i aslo used the command python manage.py collectstatic And
> after that i created a base.html and it looks like this :
>
> {%load static %}
> 
> 
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
>
> Rt Real Estate
> 
>
> And even after this my css is not showing in my project , it is not
> getting applied and i would like you to take a look into my code over a
> zoom call or something ,becuase I'm really new to django framenwork and i
> have no one to help me out on this one ,
>
> Please help me out , i can arrange a google meet or a zoom meeting so that
> you can review my whole code and point out my mistakes
>
>
>
>
> On Monday, June 29, 2020 at 2:35:07 PM UTC+5:30, Karan Sahu wrote:
>>
>> Hi,
>> Karan here, I can help you on this. Let me know more issues apart from
>> this will resolve all issues?
>>
>> Best,
>> K
>>
>> On Mon, Jun 29, 2020 at 2:04 PM 'Ade Enga' via Django users <
>> django...@googlegroups.com> wrote:
>>
>>> Try adding this to your project's settings.py file (at the bottom):
>>>
>>> STATIC_URL = '/static/'
>>> STATICFILES_DIRS = (
>>> os.path.join(BASE_DIR, "static"),
>>> )
>>>
>>> On Saturday, 27 June 2020 16:55:22 UTC+1, Avi shah wrote:

 Hi my name is Avi

 Just finished a course from Udemy on django. Unable to import HTML and
 CSS to new project

 Pls guide 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/4b74061c-8e14-459b-ac9f-596b850592ceo%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/6993b8ba-78e1-4cf1-b11c-d22ba1c1o%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m317gqsw20BeqG617eH2o%2BS1WQeA-1kedGFfTOGOEJnbZ_w%40mail.gmail.com.


Re: User.objects.all() only returns username

2020-07-02 Thread RANGA BHARATH JINKA
send me your models.py

On Fri, Jul 3, 2020 at 12:06 PM Mohsen Pahlevanzadeh <
m.pahlevanza...@gmail.com> wrote:

> When  I use select * from auth_user; I get the following result:
> 
>
> ++++--+--++---+--+--+---++
> | id |
> password
> | last_login | is_superuser | username | first_name | last_name |
> email| is_staff | is_active |
> date_joined|
>
> ++++--+--++---+--+--+---++
> |  1 |
> pbkdf2_sha256$18$8waw72qXD5IL$nDgySLTPAt3uLNnUMhzpPVodbkGYtYJJsmBilA7X6g8=
> | NULL   |1 | mohsen   ||   |
> moh...@pahlevanzadeh.net |1 | 1 | 2020-07-03
> 05:57:34.351606 |
> |  2 |
> pbkdf2_sha256$18$NNVfAk9Z98Uz$5m6HPp42ytlZeyLiy8jsYgUKjREu8WbDeLhAb7dFi0M=
> | NULL   |1 | ali  ||   |
> a...@example.com|1 | 1 | 2020-07-03
> 05:58:09.429542 |
>
> ++++--+--++---+--+--+---++
> 2 rows in set (0.000 sec)
>
> #
>
> And When I print(User.objects.all()) , I get the following result:
> #
> , ]>
> [03/Jul/2020 05:58:33] "GET /sql/ HTTP/1.1" 200 4
> ##
>
> Why I can't see all of my fields?
>
> --
> 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/12b372dc-973d-482f--0f79997bdadeo%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: User.objects.all() only returns username

2020-07-03 Thread RANGA BHARATH JINKA
Send me views.py

On Fri, 3 Jul 2020, 12:36 pm Mohsen Pahlevanzadeh, <
m.pahlevanza...@gmail.com> wrote:

> I don't have model.py for auth_user.
>
> On Friday, July 3, 2020 at 11:10:17 AM UTC+4:30, RANGA BHARATH JINKA wrote:
>>
>> send me your models.py
>>
>> On Fri, Jul 3, 2020 at 12:06 PM Mohsen Pahlevanzadeh <
>> m.pahle...@gmail.com> wrote:
>>
>>> When  I use select * from auth_user; I get the following result:
>>> 
>>>
>>> ++++--+--++---+--+--+---++
>>> | id |
>>> password
>>> | last_login | is_superuser | username | first_name | last_name |
>>> email| is_staff | is_active |
>>> date_joined|
>>>
>>> ++++--+--++---+--+--+---++
>>> |  1 |
>>> pbkdf2_sha256$18$8waw72qXD5IL$nDgySLTPAt3uLNnUMhzpPVodbkGYtYJJsmBilA7X6g8=
>>> | NULL   |1 | mohsen   ||   |
>>> moh...@pahlevanzadeh.net |1 | 1 | 2020-07-03
>>> 05:57:34.351606 |
>>> |  2 |
>>> pbkdf2_sha256$18$NNVfAk9Z98Uz$5m6HPp42ytlZeyLiy8jsYgUKjREu8WbDeLhAb7dFi0M=
>>> | NULL   |1 | ali  ||   |
>>> a...@example.com|1 | 1 | 2020-07-03
>>> 05:58:09.429542 |
>>>
>>> ++++--+--++---+--+--+---++
>>> 2 rows in set (0.000 sec)
>>>
>>> #
>>>
>>> And When I print(User.objects.all()) , I get the following result:
>>> #
>>> , ]>
>>> [03/Jul/2020 05:58:33] "GET /sql/ HTTP/1.1" 200 4
>>> ##
>>>
>>> Why I can't see all of my fields?
>>>
>>> --
>>> 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/12b372dc-973d-482f--0f79997bdadeo%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/12b372dc-973d-482f--0f79997bdadeo%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Thanks and Regards
>>
>> J. Ranga Bharath
>> cell: 9110334114
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a6dc1475-d6ac-48fa-872d-3f8698293414o%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/a6dc1475-d6ac-48fa-872d-3f8698293414o%40googlegroups.com?utm_medium=email&utm_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/CAK5m316kK5StndUas_i%2BDxzb4EW-QLfufNFA-FidUWxt5skz-w%40mail.gmail.com.


Re: Expire session after N minutes of inactivity

2020-07-14 Thread RANGA BHARATH JINKA
https://pypi.org/project/django-session-timeout/

On Tue, Jul 14, 2020 at 10:36 PM Dan Davis  wrote:

> Does anyone know of a django pypi package that implements something like
> this so that I can steal the code?  I know I need to think about "what does
> inactivity mean" in the era of SPA and Ajax, but a module could save me
> some time.
>
> --
> 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/5150060e-5795-4ed4-bd13-863237553b29o%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: Django rest framework

2020-07-23 Thread RANGA BHARATH JINKA
Hi, You can use requests library

On Thu, Jul 23, 2020 at 3:59 PM Chander shekhar  wrote:

> Can someone suggest me the best sources to implement Django rest framework
> video ?
> How can I fetch api without Js?
> 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/47b18142-b0a4-4660-b830-15131a8ec620o%40googlegroups.com
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: Filter in Template

2020-07-23 Thread RANGA BHARATH JINKA
https://gist.github.com/vitorfs/7d9e2d2c48fab9d6f432717814e6b762

On Thu, Jul 23, 2020 at 5:29 PM Giovanni Silva  wrote:

> Hi all,
>
> Can you have a tutorial showing how can I build a filter in a Template
> using startswith?
>
> Best Regards,
>
> --
> *Giovanni Silva*
> (31) 9 9532-1877
>
> --
> 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/CABO2r9f27CTz0bCr8g4U5cfGWoeBtWGVA2rQ_wSPTJonDWXSqw%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: Filter in Template

2020-07-23 Thread RANGA BHARATH JINKA
https://docs.djangoproject.com/en/3.0/howto/custom-template-tags/

On Thu, Jul 23, 2020 at 5:36 PM RANGA BHARATH JINKA <
bharathjink...@gmail.com> wrote:

> https://gist.github.com/vitorfs/7d9e2d2c48fab9d6f432717814e6b762
>
> On Thu, Jul 23, 2020 at 5:29 PM Giovanni Silva  wrote:
>
>> Hi all,
>>
>> Can you have a tutorial showing how can I build a filter in a Template
>> using startswith?
>>
>> Best Regards,
>>
>> --
>> *Giovanni Silva*
>> (31) 9 9532-1877
>>
>> --
>> 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/CABO2r9f27CTz0bCr8g4U5cfGWoeBtWGVA2rQ_wSPTJonDWXSqw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CABO2r9f27CTz0bCr8g4U5cfGWoeBtWGVA2rQ_wSPTJonDWXSqw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m317pic99xDOV1O1VLiT7CQdf5JNAGF3OX1c9S%3Dnku%3DjT%3DQ%40mail.gmail.com.


Re: Django app to PWA

2020-07-23 Thread RANGA BHARATH JINKA
https://github.com/silviolleite/django-pwa

https://github.com/silviolleite/django-pwa-demo

On Thu, 23 Jul 2020, 8:06 am Ryan Nowakowski,  wrote:

>
>
> On July 21, 2020 3:36:36 PM CDT, 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
> >
>
> It's not exactly plug n play but I like the way wq uses Django to create a
> PWA.
>
> https://wq.io/
>
> --
> 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/11E77043-547A-4736-897A-E3361CC2BFE5%40fattuba.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/CAK5m315VBNN3ts9_AGsf6vJGnwKzUxavmzYKX2dyRJbZ%2BStiNw%40mail.gmail.com.


Re: Django app to PWA

2020-07-24 Thread RANGA BHARATH JINKA
I followed this link. It's working perfectly fine.

https://github.com/silviolleite/django-pwa

On Fri, Jul 24, 2020 at 1:06 PM Omkar Parab  wrote:

> 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
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314yqNXux0ko2F1XOOtvJTcshirA9nX3KCENB6d5D%2Bfn%3DA%40mail.gmail.com.


Re: Django app to PWA

2020-07-24 Thread RANGA BHARATH JINKA
http://bharath-shop.herokuapp.com/

This is the Django website i converted to PWA

On Fri, Jul 24, 2020 at 1:14 PM RANGA BHARATH JINKA <
bharathjink...@gmail.com> wrote:

> I followed this link. It's working perfectly fine.
>
> https://github.com/silviolleite/django-pwa
>
> On Fri, Jul 24, 2020 at 1:06 PM Omkar Parab  wrote:
>
>> 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
>>> <https://groups.google.com/d/msgid/django-users/CAL8_rkH6u%2BJE1CpGWYYsWPPAnnpS2H71sEXiUBQfTTj8rheqxA%40mail.gmail.com?utm_medium=email&utm_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/CAJY8mfxXNLRLJnmguWmCNTc%3DH3nTOp6t6Z78B4MWcNEvBVWqrw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJY8mfxXNLRLJnmguWmCNTc%3DH3nTOp6t6Z78B4MWcNEvBVWqrw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: Django app to PWA

2020-07-24 Thread RANGA BHARATH JINKA
https://bharath-shop.herokuapp.com/

This is the Django E-Commerce website converted to PWA.
Note:- It should be https secure while hosting. Otherwise it won't convert
to PWA. But in localhost it works.

On Fri, Jul 24, 2020 at 1:14 PM RANGA BHARATH JINKA <
bharathjink...@gmail.com> wrote:

> I followed this link. It's working perfectly fine.
>
> https://github.com/silviolleite/django-pwa
>
> On Fri, Jul 24, 2020 at 1:06 PM Omkar Parab  wrote:
>
>> 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
>>> <https://groups.google.com/d/msgid/django-users/CAL8_rkH6u%2BJE1CpGWYYsWPPAnnpS2H71sEXiUBQfTTj8rheqxA%40mail.gmail.com?utm_medium=email&utm_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/CAJY8mfxXNLRLJnmguWmCNTc%3DH3nTOp6t6Z78B4MWcNEvBVWqrw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAJY8mfxXNLRLJnmguWmCNTc%3DH3nTOp6t6Z78B4MWcNEvBVWqrw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: downloading image files from django template

2020-07-26 Thread RANGA BHARATH JINKA
Use anchor tag for images url

On Sun, Jul 26, 2020 at 10:16 AM Teaching Tech 
wrote:

> How can I download an image file that is shown to the template in Django?
> I'm new to Django. This might be a silly question. But I need to know for
> my existing 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/441320b3-f6cc-4390-b04e-0ef03abe10a5o%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: downloading image files from django template

2020-07-26 Thread RANGA BHARATH JINKA
Good

On Sun, Jul 26, 2020 at 8:17 PM adiath...@gmail.com 
wrote:

> Thanks, I got the answer. Working now.
>
> On Sunday, July 26, 2020 at 7:40:42 AM UTC-7 bharath...@gmail.com wrote:
>
>> Use anchor tag for images url
>>
>> On Sun, Jul 26, 2020 at 10:16 AM Teaching Tech 
>> wrote:
>>
>>> How can I download an image file that is shown to the template in
>>> Django? I'm new to Django. This might be a silly question. But I need to
>>> know for my existing 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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/441320b3-f6cc-4390-b04e-0ef03abe10a5o%40googlegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>> Thanks and Regards
>>
>> J. Ranga Bharath
>> cell: 9110334114
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/09b46851-e639-4d60-add0-3f0a65ad7b22n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re:

2020-07-28 Thread RANGA BHARATH JINKA
Try heroku. Maybe it will be faster.

On Tue, Jul 28, 2020 at 2:43 PM Anupriya Nishad 
wrote:

> I hosted my web app on a free hosting site pythonanywhere.com
> But it is taking too long to respond.
> What could be the reason?
>
> --
> 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/CAGcPrqTyvKaAnsU1sp%3DorX8RsoZKO4W9xvvGsKuJ3y2E0MyHnw%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314agd-KHjkRnzBjMtmn0VdLuXqSu0zr%3D%3DjtyXdZAqpbKA%40mail.gmail.com.


Re: Django3 runserver error

2020-07-30 Thread RANGA BHARATH JINKA
Hi convert it into string while displaying it in models __str__.
Or use f-strings. It is easy. All the best 👍

On Thu, 30 Jul 2020, 8:29 pm ROHINI PUNDE,  wrote:

> I have error while updating the information,so many trials I cant solve
> this problem,so please help me for this
>
>
> On Thu, Jul 30, 2020 at 2:25 AM Mira  wrote:
>
>> Hi All,
>> I recently upgraded Django from 2.2 to 3 on my MacOS10.13.
>> I am using Python 3.6 and My Application was working fine with Django 2.2
>> but now i am getting below error.
>>
>> Any help related with this topic would be greatly appreciated.
>>
>> $>python3 manage.py runserver
>>
>> Watching for file changes with StatReloader
>>
>> Performing system checks...
>>
>>
>> Traceback (most recent call last):
>>
>>   File "manage.py", line 22, in 
>>
>> execute_from_command_line(sys.argv)
>>
>>   File
>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/__init__.py",
>> line 401, in execute_from_command_line
>>
>> utility.execute()
>>
>>   File
>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/__init__.py",
>> line 395, in execute
>>
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>
>>   File
>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/base.py",
>> line 328, in run_from_argv
>>
>> self.execute(*args, **cmd_options)
>>
>>   File
>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>> line 60, in execute
>>
>> super().execute(*args, **options)
>>
>>   File
>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/base.py",
>> line 369, in execute
>>
>> output = self.handle(*args, **options)
>>
>>   File
>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>> line 95, in handle
>>
>> self.run(**options)
>>
>>   File
>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>> line 102, in run
>>
>> autoreload.run_with_reloader(self.inner_run, **options)
>>
>>   File
>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py",
>> line 599, in run_with_reloader
>>
>> start_django(reloader, main_func, *args, **kwargs)
>>
>>   File
>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py",
>> line 584, in start_django
>>
>> reloader.run(django_main_thread)
>>
>>   File
>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py",
>> line 299, in run
>>
>> self.run_loop()
>>
>>   File
>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py",
>> line 305, in run_loop
>>
>> next(ticker)
>>
>>   File
>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py",
>> line 345, in tick
>>
>> for filepath, mtime in self.snapshot_files():
>>
>>   File
>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py",
>> line 361, in snapshot_files
>>
>> for file in self.watched_files():
>>
>>   File
>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py",
>> line 260, in watched_files
>>
>> yield from iter_all_python_module_files()
>>
>>   File
>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py",
>> line 105, in iter_all_python_module_files
>>
>> return iter_modules_and_files(modules, frozenset(_error_files))
>>
>>   File
>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py",
>> line 141, in iter_modules_and_files
>>
>> resolved_path = path.resolve(strict=True).absolute()
>>
>> TypeError: resolve() got an unexpected keyword argument 'strict'
>>
>> udaysingh@udays-MacBook-Pro:~/Django/dreamProj>
>>
>> --
>> 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/CAANDXNtvg9sP5OqLktcECco1MhpV0%3DcMgYCKvAF0TLXAH9bpog%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,

Re: Django3 runserver error

2020-07-30 Thread RANGA BHARATH JINKA
Send your models.py file

On Fri, 31 Jul 2020, 8:09 am RANGA BHARATH JINKA, 
wrote:

> Hi convert it into string while displaying it in models __str__.
> Or use f-strings. It is easy. All the best 👍
>
> On Thu, 30 Jul 2020, 8:29 pm ROHINI PUNDE,  wrote:
>
>> I have error while updating the information,so many trials I cant solve
>> this problem,so please help me for this
>>
>>
>> On Thu, Jul 30, 2020 at 2:25 AM Mira  wrote:
>>
>>> Hi All,
>>> I recently upgraded Django from 2.2 to 3 on my MacOS10.13.
>>> I am using Python 3.6 and My Application was working fine with Django
>>> 2.2 but now i am getting below error.
>>>
>>> Any help related with this topic would be greatly appreciated.
>>>
>>> $>python3 manage.py runserver
>>>
>>> Watching for file changes with StatReloader
>>>
>>> Performing system checks...
>>>
>>>
>>> Traceback (most recent call last):
>>>
>>>   File "manage.py", line 22, in 
>>>
>>> execute_from_command_line(sys.argv)
>>>
>>>   File
>>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/__init__.py",
>>> line 401, in execute_from_command_line
>>>
>>> utility.execute()
>>>
>>>   File
>>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/__init__.py",
>>> line 395, in execute
>>>
>>> self.fetch_command(subcommand).run_from_argv(self.argv)
>>>
>>>   File
>>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/base.py",
>>> line 328, in run_from_argv
>>>
>>> self.execute(*args, **cmd_options)
>>>
>>>   File
>>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>>> line 60, in execute
>>>
>>> super().execute(*args, **options)
>>>
>>>   File
>>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/base.py",
>>> line 369, in execute
>>>
>>> output = self.handle(*args, **options)
>>>
>>>   File
>>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>>> line 95, in handle
>>>
>>> self.run(**options)
>>>
>>>   File
>>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/core/management/commands/runserver.py",
>>> line 102, in run
>>>
>>> autoreload.run_with_reloader(self.inner_run, **options)
>>>
>>>   File
>>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py",
>>> line 599, in run_with_reloader
>>>
>>> start_django(reloader, main_func, *args, **kwargs)
>>>
>>>   File
>>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py",
>>> line 584, in start_django
>>>
>>> reloader.run(django_main_thread)
>>>
>>>   File
>>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py",
>>> line 299, in run
>>>
>>> self.run_loop()
>>>
>>>   File
>>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py",
>>> line 305, in run_loop
>>>
>>> next(ticker)
>>>
>>>   File
>>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py",
>>> line 345, in tick
>>>
>>> for filepath, mtime in self.snapshot_files():
>>>
>>>   File
>>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py",
>>> line 361, in snapshot_files
>>>
>>> for file in self.watched_files():
>>>
>>>   File
>>> "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/utils/autoreload.py",
>>> line 260, in watched_files
>>>
>>> yield from iter_all_python_module_files()

Re: Django3 runserver error

2020-07-31 Thread RANGA BHARATH JINKA
from django.db import models
from django.contrib.auth.models import User

class Customer(models.Model):
user=models.OneToOneField(User,null=True,on_delete= models.CASCADE)
name=models.CharField(max_length=200,null=True)
phone=models.CharField(max_length=200,null=True)
email=models.CharField(max_length=200,null=True)
profile_pic = models.ImageField(default="radha3.png", null=True, blank=True)
date_created=models.DateTimeField(auto_now_add=True,null=True)
def __str__(self):
return str(self.name)

class Tag(models.Model):
name=models.CharField(max_length=200,null=True)
def __str__(self):
return str(self.name)


class Product(models.Model):
CATEGORY=(
('In door','In door'),
('Out door','Out door'),
)
name=models.CharField(max_length=100,null=True)
price=models.FloatField(null=True)
category = models.CharField(max_length=200, null=True,choices=CATEGORY)
description = models.CharField(max_length=200,null=True,blank=True)
date_created = models.DateTimeField(auto_now_add=True, null=True)
tags=models.ManyToManyField(Tag)

def __str__(self):
return str(self.name)



class Order(models.Model):
STATUS = (
('Pending', 'Pending'),
('Out for delivery', 'Out for delivery'),
('Delivered', 'Delivered'),
)
customer = models.ForeignKey(Customer, null=True, on_delete=models.SET_NULL)
product = models.ForeignKey(Product, null=True, on_delete=models.SET_NULL)
date_created = models.DateTimeField(auto_now_add=True, null=True)
status = models.CharField(max_length=200, null=True, choices=STATUS)
note = models.CharField(max_length=1000, null=True)

def __str__(self):
return str(self.product.name)


Try this and let me know whether it is working or not. I added str()
to the __str__. All the best


On Fri, Jul 31, 2020 at 7:17 PM ROHINI PUNDE  wrote:

> from django.db import models
> from django.contrib.auth.models import User
>
> class Customer(models.Model):
> user=models.OneToOneField(User,null=True,on_delete= models.CASCADE)
> name=models.CharField(max_length=200,null=True)
> phone=models.CharField(max_length=200,null=True)
> email=models.CharField(max_length=200,null=True)
> profile_pic = models.ImageField(default="radha3.png", null=True, 
> blank=True)
> date_created=models.DateTimeField(auto_now_add=True,null=True)
> def __str__(self):
> return self.name
>
> class Tag(models.Model):
> name=models.CharField(max_length=200,null=True)
> def __str__(self):
> return self.name
>
> class Product(models.Model):
> CATEGORY=(
> ('In door','In door'),
> ('Out door','Out door'),
> )
> name=models.CharField(max_length=100,null=True)
> price=models.FloatField(null=True)
> category = models.CharField(max_length=200, null=True,choices=CATEGORY)
> description = models.CharField(max_length=200,null=True,blank=True)
> date_created = models.DateTimeField(auto_now_add=True, null=True)
> tags=models.ManyToManyField(Tag)
>
> def __str__(self):
> return self.name
>
>
> class Order(models.Model):
> STATUS = (
> ('Pending', 'Pending'),
> ('Out for delivery', 'Out for delivery'),
> ('Delivered', 'Delivered'),
> )
> customer = models.ForeignKey(Customer, null=True, 
> on_delete=models.SET_NULL)
> product = models.ForeignKey(Product, null=True, on_delete=models.SET_NULL)
> date_created = models.DateTimeField(auto_now_add=True, null=True)
>     status = models.CharField(max_length=200, null=True, choices=STATUS)
> note = models.CharField(max_length=1000, null=True)
>
> def __str__(self):
> return self.product.name
>
>
>
> On Thu, Jul 30, 2020 at 7:41 PM RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Send your models.py file
>>
>> On Fri, 31 Jul 2020, 8:09 am RANGA BHARATH JINKA, <
>> bharathjink...@gmail.com> wrote:
>>
>>> Hi convert it into string while displaying it in models __str__.
>>> Or use f-strings. It is easy. All the best 👍
>>>
>>> On Thu, 30 Jul 2020, 8:29 pm ROHINI PUNDE, 
>>> wrote:
>>>
>>>> I have error while updating the information,so many trials I cant solve
>>>> this problem,so please help me for this
>>>>
>>>>
>>>> On Thu, Jul 30, 2020 at 2:25 AM Mira  wrote:
>>>>
>>>>> Hi All,
>>>>> I recently upgrade

Re: How to build a comprehensive chat system with django

2020-08-10 Thread RANGA BHARATH JINKA
https://blog.heroku.com/in_deep_with_django_channels_the_future_of_real_time_apps_in_django

On Mon, Aug 10, 2020 at 3:57 PM sunday honesty 
wrote:

> I recently got employed in this company as a django developer.
> After one week, it seems they liked me and believe I could do anything.
> Today, they asked me to do the following do the following for the company:
>
> Build a web app where everyone within the company will be able to connect
> locally and share the following to anyone: messages, images, audio and
> video.
>
> I no idea where to start from but I told them i can do it. I have heard of
> django channels but don't know anything about it yet...
>
> It hasn't been long u started programming with django.
>
> Can you help me with best suggestion. I mean resources, advice or just
> everything I need to do this?
>
> I'll appreciate.
>
> --
> 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/0a7927ac-7695-4dda-82fc-689f8f7e35efo%40googlegroups.com
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: Dynamic Set

2020-08-16 Thread RANGA BHARATH JINKA
Hi,

   Try this. All the best.

https://stackoverflow.com/questions/962619/how-to-pull-a-random-record-using-djangos-orm

On Sun, Aug 16, 2020 at 5:20 PM Soumen Khatua 
wrote:

> Hi Folks,
>
> In my database under Quiz-A: a user can update 5 MCQ questions and another
> user can update 6 questions, so basically it is dynamic. So how can I show
> this question in a template and then How can I validate the right answer
> using Django,can anyone tell me,please?
>
> Actually I spent multiple hours on this problem.but still I don't have any
> clue what is the way to solve it.
>
> Thank you
>
> Regards,
> Soumen Khatua
>
> --
> 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/CAPUw6WafxA6_KF8AvDrTgDmcvtg_sisONLeDUo%3D2W4w7W%3DxVfQ%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: URGENT ---- Third party API integration basics

2020-08-21 Thread RANGA BHARATH JINKA
Hi,

create a variable like APIKEY = 'value' in settings.py.
If you want to access that api key in views just use this import "from
django.conf import settings"
In views.py:
  api_key = settings.APIKEY

   All the best.

On Fri, Aug 21, 2020 at 3:33 PM Ogunsanya Opeyemi <
ogunsanyaopeye...@gmail.com> wrote:

> You just need to add define the key in your settings file Key_Name= "key"
> OGUNSANYA OPEYEMI
>
>
> On Fri, Aug 21, 2020 at 10:55 AM Arpana Mehta 
> wrote:
>
>> Hello everybody,
>> I wanted to know if there's anybody who can help me integrate a very
>> simple third party API using client ID and secret key.
>>
>> I just want to know the basic steps of where to add the key and ID in
>> settings file so I can access that API from my app in django-project.
>>
>> *It's kind of urgent. Any help will be appreciated.*
>> Many thanks,
>> Arpana Mehta
>>
>> --
>> 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/CAGyqUuW-zx8-cfVt0Oq%2B3E9WwcA8w%3DgsKg3xjtC9-vvuR9pHfw%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/CABJxPrHhY0pGi9MoEQz7CHcdkFGmdWoz87BtG5Ky4SaQ_dtFFg%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: django - admin error

2020-08-21 Thread RANGA BHARATH JINKA
Try using virtual environment

On Fri, 21 Aug 2020, 6:59 pm sapna Choudhary,  wrote:

> run command line django-admin ,you will see list of commands to run
>
> On Thu, Aug 20, 2020 at 6:47 PM company <2071...@hansung.ac.kr> wrote:
>
>> Hi, Django users.
>>  I started to learn programming this year and joined to make new homepage
>> for my programming club. So I want to know how to solve this problem.
>> According to Django documentation part.1(tutorial), I installed Django
>> and confirmed my Django version through  "python -m django --version"which
>> is version 3.2. Then, I made directory named "renewal" in command line and
>> moved to my directory "renewal" and lastly
>> I ordered "django-admin startproject mysite" in commad line to make
>> "mysite directory" in renewal directory. But, prompt said 'django -admin'
>> is not an internal or external command, executable program or a batch file
>> even if I tried to solve this problem, I do not know what should i do to
>> solve this one. I will look forward your answer :)
>>
>>
>>
>> --
>> 이 메일은 지정된 수취인만을 위해 작성되었으며, 중요한 정보나 저작권을 포함하고 있을 수 있습니다. 어떠한 권한 없이, 본 문서에
>> 포함된 정보의 전부 또는 일부를 무단으로 제3자에게 공개, 배포, 복사 또는 사용하는 것을 엄격히 금지합니다. 만약, 본 메일이 잘못
>> 전송된 경우, 발신인 또는 당사에 알려주시고, 본 메일을 즉시 삭제하여 주시기 바랍니다.
>> This E-mail may contain confidential information and/or copyright
>> material. This email is intended for the use of the addressee only. If you
>> receive this email by mistake, please either delete it without reproducing,
>> distributing or retaining copies thereof or notify the sender immediately.
>> 
>>
>> --
>> 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/261dd143-f482-4e6d-9ea9-c00fc4b7644an%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/CAP6mExiCpaHYBfdxinUksNy%3DE9g2QYsH791wFcvz1rsJmh%2BkuA%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/CAK5m316ziuog%3DqMg6U0Acmrt_%3D0%3DGd%3DA_xdJMQovnXq%2BWWaqZQ%40mail.gmail.com.


Re: hello every one. i have a probleme with 'pip install mysqlclient' please i need a help

2020-08-24 Thread RANGA BHARATH JINKA
Hi,

Please check the location of the .whl file. Copy .whl file into your
project root folder and install. All the best.

On Mon, Aug 24, 2020 at 1:04 PM Makan Leboss 
wrote:

> *my error code is:* " (myvenv) c:\djangoboys\dagakane>pip install
> mysqlclient-1.4.6-cp38-cp38-win32.whl
> WARNING: Requirement 'mysqlclient-1.4.6-cp38-cp38-win32.whl' looks like a
> filename, but the file does not exist
> Processing .\mysqlclient-1.4.6-cp38-cp38-win32.whl
> ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No
> such file or directory:
> 'C:\\djangoboys\\dagakane\\mysqlclient-1.4.6-cp38-cp38-win32.whl "
>
> --
> 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/361b2ead-b72f-4458-b564-354062be2975n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: load static in css file

2020-08-24 Thread RANGA BHARATH JINKA
Hi,
 Try this.
 style="background: url(../images/showcase.jpg) no-repeat top center
!important;"
Add these in your settings.py file.
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')

  STATIC_URL = '/static/'

  STATICFILES_DIRS = [
 os.path.join(BASE_DIR, 'static')
  ]

   MEDIA_URL = '/images/'

MEDIA_ROOT = os.path.join(BASE_DIR, 'static/images')
 Also check the correct path of images. Whether the images are loading
properly by pasting the image path url in the browser.
 All the best.



On Tue, Aug 25, 2020 at 5:46 AM MAMADOU KANTE  wrote:

> I did load static at the top of the file {% load static %}.
> Also I linked the CSS file named style.css. Part of the css file was
> working perfectly. I only had issues with the background image.
>
> On Mon, Aug 24, 2020 at 4:02 PM sapna Choudhary  wrote:
>
>> create a directory named 'static' in the current directory. This
>> directory is used to store images/css files, you can load static in
>> template using {%load static%}  this code block and link under image tag
>> like this {% static 'app_name/img.jpg' %}
>>
>> On Mon, Aug 24, 2020 at 6:16 PM 'Akash Sinha' via Django users <
>> django-users@googlegroups.com> wrote:
>>
>>>
>>> Hi
>>>
>>> Create a folder inside ur project as static and keep ur images,css and
>>> js files into that folder then in your settings.py file define static path.
>>> U need to run python manage.py collect static command on terminal and then
>>> you have to link that css file in HTML
>>>
>>>
>>> Hint: check for Managing static files in official django doc or try
>>> stack overflow.com you will get example to setup static path
>>>
>>>
>>> On Mon, 24 Aug 2020 at 5:37 pm, MAMADOU KANTE
>>>  wrote:
>>> Hi Everybody!
>>> I am trying to set a background image using the STYLE tag with django
>>> template as follows:
>>>  
>>> But when I open the HTML page and inspect the page I receive an image
>>> with width zero. Can anyone help?
>>> When I use the same syntax on a regular HTML without django templates it
>>> works.
>>>
>>> On Mon, Aug 3, 2020 at 10:02 AM Obodoma Uzondu Vincent <
>>> uobodoma...@gmail.com> wrote:
>>>
>>> Hello your have to follow the direction where you stored your file .
>>> Generally, in Django you create a static folder then maybe an image files
>>> where you store the images. You should link the image this way src= "{%
>>> static 'images/imag.png' %}"
>>>
>>> On Mon, 3 Aug 2020, 10:06 Yemin Sajid,  wrote:
>>>
>>> This may not work as intended if the CSS files are not rendered using
>>> the Django template engine. You have to put the style declaration where
>>> you'd need the image in the ** tag in your template
>>> code. From there you can use the *{% static “images/imag.png” %}*
>>> syntax.
>>> On Friday, July 31, 2020 at 5:58:48 PM UTC+6 Chander shekhar wrote:
>>>
>>> tried this buddy yet it is not working
>>>
>>> Regards
>>> Chander Shekhar
>>> (bestcsp)
>>>
>>>
>>> On Thu, Jul 30, 2020 at 6:11 PM Irfan Khan  wrote:
>>>
>>> {% static 'imag.jpg' %}   instead of this try
>>>
>>> {% static “images/imag.png” %}
>>>
>>> On Thu, 30 Jul 2020 at 6:07 PM, Chander shekhar 
>>> wrote:
>>>
>>> I am unable to fetch images from css file .
>>> I have used {% load static %}
>>> {% static 'imag.jpg' %}
>>> buti can't fetch.console is saying image not found.
>>>
>>> --
>>> 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/554cbaf1-3b94-40b4-a0f1-efe0bd3f24ceo%40googlegroups.com
>>> 
>>> .
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users...@googlegroups.com.
>>>
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CALKGVio%3DAsCafgcd-zfjBb2of-RWbPaTwwGjf7sXbjstgFdM6Q%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/f0e45bd1-68ca-405f-a033-c808d6da53d5n%40googlegroups.com
>>> 
>>> .
>>>
>

Re: Real-time audio processing with django-based app?

2020-08-24 Thread RANGA BHARATH JINKA
Hi,

   Check this. It may be useful for you.
https://stackoverflow.com/questions/46386011/real-time-audio-signal-processing-using-python
All the best

On Tue, Aug 25, 2020 at 4:13 AM Rowan V  wrote:

> Hi all,
>
> I’m interested in building out an app with the following functionality. I
> would like to:
> 1) obtain audio data from a variety of users via a browser
> 2) undertake some analysis of the signal data in real time
> 3) Then create a composite stream of audio data based on transformations
> of the original n users’ audio. More than 1 user’s audio data is input, but
> only a single audio stream is output, and some level of latency on the
> order of a second is fine.
>
> Is this something that I can use Django for, perhaps with Django channels?
> There are some signal processing libraries in python that I would like to
> leverage, if possible, but am having trouble finding examples of folks who
> have set up similar architectures. Perhaps I can use some sort of real-time
> data store such as Kinesis together with some Django components? Or will I
> instead need to do all of my processing on the front end side? Is real-time
> audio processing outside of the scope of something Django-based?
>
> 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/5aaee8fd-bb94-45fc-9d8f-3625b9da516bn%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: Stream Webcam and with Button Capture Image

2020-08-24 Thread RANGA BHARATH JINKA
Hi,

Try this. This may be useful for you.
https://github.com/kevinam99/capturing-images-from-webcam-using-opencv-python
All the best

On Tue, Aug 25, 2020 at 2:03 AM Samara Muñoz  wrote:

> Hi Ketul, I was wondering if you have had any luck. I was seeing a video
> and they use FileSystemStorage(). Do you think it has something to do with
> it?
>
> Regards, thanks for your time.
>
> Samara
>
> On Mon, Aug 17, 2020 at 4:32 PM Ketul Suthar  wrote:
>
>> I will let you know. I am also working on same concept.
>>
>> On Mon., Aug. 17, 2020, 5:19 p.m. samar...@gmail.com, <
>> samaram...@gmail.com> wrote:
>>
>>> Hello, I already achieved opening the webcam in browser, I would like to
>>> add a button in a template and every time it is clicked, it saves the frame
>>> in a folder ('media')
>>> I am new and Django and I don't understand much on how to use views and
>>> templates work together.
>>>
>>> Can someone help me? I uploaded the folder
>>>
>>> --
>>> 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/12f53f21-f406-4ea8-840e-42f01cdac863n%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/CANuqdaW_ofjaBrnY4Hii6BLE99xKuvYv_cXTB6CDYO7KJuWbbQ%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/CAA%2Btjr5JagaPwofPh9q4OmTAkcKqFe_s5k531cK_972_5jhLfw%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: why style.css is not read by my codes. i am using VScode for Django

2020-08-24 Thread RANGA BHARATH JINKA
Hi,

   I think it is not able to find the file. Please check whether it is the
correct location of the files.
  Add a static root in settings file like
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')

STATIC_URL = '/static/'

STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static')
]

MEDIA_URL = '/images/'

MEDIA_ROOT = os.path.join(BASE_DIR, 'static/images')

All the best

On Mon, Aug 24, 2020 at 10:03 PM Haris Ahmad  wrote:

> Have you added whitenoise to the settings.py
>
> On Mon, 24 Aug 2020, 9:27 PM Amresh Giri,  wrote:
>
>> Is is supposed to be "statics" ?
>>
>> On Mon, Aug 24, 2020, 9:49 PM alka reetesh 
>> wrote:
>>
>>> I have used python manage.py collectstatic, which gave
>>> error--FileNotFoundError: [WinError 3] The system cannot find the path
>>> specified: 'C:\dmform\myproject\statics'
>>>
>>> --
>>> 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/0dd03bb0-3c6c-4e7f-b7d7-9f6f55aae7bbn%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/CAJqzuMH9YfLHQnj3tESo8cZpYTRqf7uqXitZHdakfVt_2yRFTg%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/CAG0UDYbWg9NQ6vHNdbWA0UNhb3Td1v7Mc4SxnxCeveywe6AMkg%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m316v%2BgjgysVfK66Nrz4rG%2BUwYdV07u1y_QHB%3DMp-MhhU%2Bw%40mail.gmail.com.


Re: Python manage.py runserver error

2020-08-25 Thread RANGA BHARATH JINKA
Hi,

Please create a virtual environment, activate it and install django and
other packages inside that environment.
All the best.

On Wed, Aug 26, 2020 at 8:28 AM ROHINI PUNDE  wrote:

> Hi,
> while running "python manage.py runserver"  I got this type of error ,I am
> not understand how to to solve this problem.please help me out.
> find out on this attachment(error.png)
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAO9_9ZZRDPCFb4FnGWNLxku8VTa0x3LNKvVtUFm%2BVT%3DJ2uTOvg%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m3167biZ3WQVt4OBjDJX5Z0K%2Br%3DJLOXLP989UsZx1hmPOqg%40mail.gmail.com.


Re: Exporting Filter data

2020-08-26 Thread RANGA BHARATH JINKA
Hi,

https://django-import-export.readthedocs.io/en/latest/index.html
Try this. This may be useful.
All the best.


On Wed, Aug 26, 2020 at 5:09 PM isaacn...@gmail.com 
wrote:

> Hi,
>
> I want to filter and export the filtered data in excel or/and pdf. Please
> help out.
>
> Thank.
>
> --
> 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/a8c3294a-7414-4d50-b1de-85c275fab599n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314OFFnV6jd3qzbd%3DoHcOpb9rbt_N8xfu3wmBP%2BmYiKs%2Bg%40mail.gmail.com.


Re: Python/Django, "The 'poster' attribute has no file associated with it"

2020-08-28 Thread RANGA BHARATH JINKA
Hi,
Add a default image in models.

On Thu, Aug 27, 2020 at 8:34 PM Tony Hall  wrote:

> I'm relatively new to programming and I'm having some trouble with the
> ImageField in my models.py.
>
> I keep getting the error in the attachment every time I load the
> local:8000.
>
> My models.py is:
>
> from django.db import models
>
> class Pilot(models.Model):
> title = models.CharField(max_length=200)
> description = models.TextField()
> count = models.IntegerField()
> writer = models.CharField(max_length=200)
> year = models.IntegerField()
> script = models.FileField(blank=True, null=True, upload_to="scripts")
> poster = models.ImageField(blank=True, null=True, upload_to="posters")
> created_at = models.DateTimeField(auto_now_add=True)
> updated_at = models.DateTimeField(auto_now=True)
>
> def __str__(self):
> return self.title
>
> @property
> def imageURL(self):
> try:
> url = self.poster.url
> except:
> url = ''
> print('URL:', url)
> return url
>
> The settings.py :
> STATIC_URL = '/static/'
>
> MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
> MEDIA_URL = '/media/'
>
> STATICFILES_DIR = [
> os.path.join(BASE_DIR, 'static')
> ]
>
> The urls.py:
> from django.contrib import admin
> from django.urls import path, include
> from django.conf import settings
> from django.conf.urls.static import static
>
> urlpatterns = [
> path('admin/', admin.site.urls),
> path('', include('script_app.urls')),
> ]
>
> if settings.DEBUG:
> urlpatterns += static(settings.STATIC_URL,
> document_root=settings.STATIC_ROOT)
> urlpatterns += static(settings.MEDIA_URL,
> document_root=settings.MEDIA_ROOT)
>
>
> How do I fix 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/2aae39fa-8fe5-4f83-b139-60918022ae61n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: plz help i found this kinda problem when i run

2020-08-28 Thread RANGA BHARATH JINKA
Hi,

Create a templates folder in your base directory where manage.py
exists. Change the templates folder path in settings.py as 'DIRS':
[os.path.join(BASE_DIR,'templates')]

All the best


On Thu, Aug 27, 2020 at 10:04 PM Ogunsanya Opeyemi <
ogunsanyaopeye...@gmail.com> wrote:

> This means that your current_datetime.html template does not exists in any
> of those directory in the defined directory under templates in your
> setting.py file.
>
>
>
> On Thu, Aug 27, 2020 at 4:01 PM ALAKO ABIYO  wrote:
>
>>
>> Environment:
>>
>>
>> Request Method: GET
>> Request URL: http://127.0.0.1:8000/time/
>>
>> Django Version: 1.8
>> Python Version: 2.7.17
>> Installed Applications:
>> ('django.contrib.admin',
>>  'django.contrib.auth',
>>  'django.contrib.contenttypes',
>>  'django.contrib.sessions',
>>  'django.contrib.messages',
>>  'django.contrib.staticfiles')
>> Installed Middleware:
>> ('django.contrib.sessions.middleware.SessionMiddleware',
>>  'django.middleware.common.CommonMiddleware',
>>  'django.middleware.csrf.CsrfViewMiddleware',
>>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>>  'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
>>  'django.contrib.messages.middleware.MessageMiddleware',
>>  'django.middleware.clickjacking.XFrameOptionsMiddleware',
>>  'django.middleware.security.SecurityMiddleware')
>>
>> Template Loader Error:
>> Django tried loading these templates, in this order:
>> Using loader django.template.loaders.filesystem.Loader:
>> /home/django/mysite/templates/current_datetime.html (File does not exist)
>> /home/html/example.com/current_datetime.html (File does not exist)
>> Using loader django.template.loaders.app_directories.Loader:
>> /home/aa/.local/lib/python2.7/site-packages/django/contrib/admin/templates/current_datetime.html
>> (File does not exist)
>> /home/aa/.local/lib/python2.7/site-packages/django/contrib/auth/templates/current_datetime.html
>> (File does not exist)
>>
>>
>>
>> Traceback:
>> File
>> "/home/aa/.local/lib/python2.7/site-packages/django/core/handlers/base.py"
>> in get_response
>>   132. response = wrapped_callback(request,
>> *callback_args, **callback_kwargs)
>> File "/home/aa/mysite/mysite/views.py" in current_datetime
>>   12. t=get_template('current_datetime.html')
>> File
>> "/home/aa/.local/lib/python2.7/site-packages/django/template/loader.py" in
>> get_template
>>   46. raise TemplateDoesNotExist(template_name)
>>
>> Exception Type: TemplateDoesNotExist at /time/
>> Exception Value: current_datetime.html
>>
>> --
>> 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/898d34f9-b67c-40aa-9dc9-32fab2e5f50cn%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/CABJxPrFbRGNKBYog9HCL2AdNKe5DVtN0WZ1y5x0jrhM3O%3DixMg%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m315b6U-Q-sVs7EH_v3U63zayO%3DczWDMs_TXWYrRd-ihVUw%40mail.gmail.com.


Re: Page 3

2020-08-28 Thread RANGA BHARATH JINKA
Hi,

 You are closing the para thesis before.
  path('/results/', views.results, name='results'),
This is the correct syntax. All the best 👍

On Sat, 29 Aug 2020, 3:03 am rbarh...@gmail.com, 
wrote:

> The error message claims invalid syntax and point to the equal sign
> between name and 'results.'
>
> On Thursday, August 27, 2020 at 5:12:53 PM UTC-7 rbarh...@gmail.com wrote:
>
>> My code inspector tells me that "from django.urls import path" is unused
>> so the path statements must not work, I guess.  But the tutorials presents
>> that code.
>>
>> BTW, it's Maxim who helped
>>
>> On Thursday, August 27, 2020 at 5:07:38 PM UTC-7 rbarh...@gmail.com
>> wrote:
>>
>>> Thanks to Maxi, I could move on and immediately found a new problem on
>>> Part 3.
>>>
>>> I have studied this error message for over an hour and cannot figure it
>>> out.  Here is the code.  There are two pieces, one in polls/views.py and
>>> one in polls/urls.py.
>>> ```
>>> polls/views.py
>>> from django.http import HttpResponse
>>>
>>> # Create your views here.
>>> def index(request):
>>> return HttpResponse("I have a BIG present for you.")
>>>
>>>
>>> def detail(request, question_id):
>>> return HttpResponse("You are looking at question %s." % question_id)
>>>
>>>
>>> def results(request, question_id):
>>> response = "You are looking at the results of question %s."
>>> return HttpResponse(response % question_id)
>>>
>>> def vote(request, question_id):
>>> return HttpResponse("You are voting on question %s." %
>>> question_id)
>>> ```
>>>
>>> urls.py;
>>> ```
>>> from django.urls import path
>>>
>>> from . import views
>>>
>>>
>>> urlpatterns = [
>>> # ex: /polls/
>>> path('', views.index, name='index'),
>>> # ex: /polls/5
>>> path('/', views.detail, name='detail'),
>>> # ex: /polls/5/results/
>>> path('/results/'), views.results, name='results'),
>>> #ex: /polls/5/vote/
>>> path('/vote/', views.vote, name='vote'),
>>> ]
>>> ```
>>> produces this error message:
>>> ```
>>>  File
>>> "/Users/reb/Desktop/PycharmProjects/081920/djangoProject0/mysite/polls/urls.py",
>>> line 12
>>> path('/results/'), views.results, name='results'),
>>> ```
>>> I cannot see the error.  Please help.  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/75c28487-1d92-4488-a9b7-b3e7a8cc2bc5n%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/CAK5m317kf8-QBwAsCNUMSpMAdQuy5cHUi8OM-HbD3LFcECEO%2BA%40mail.gmail.com.


Re: 500 Server Error | Impossible to Fix

2020-08-28 Thread RANGA BHARATH JINKA
Hi,

In settings turn the debug to True. Then check the error in terminal.

In heroku you have to check the logs in the terminal using heroku logs
--tail

All the best 👍

On Sat, 29 Aug 2020, 4:35 am Lightning Bit, <
thelegendofearthretu...@gmail.com> wrote:

> Greetings all,
>
> I finally finished developing a Django website.
>
> In the terminal I checked:
>
> > python manage.py check --deploy
>
> There were no errors and the program was ready for deployment. I even ran
> a:
>
> > python manage.py runserver
>
> There were also no errors on this end. Upon successfully porting the
> website to Heroku, I unfortunately got a 500 Server Error and then after
> editing, a 400 Server Error. I resolved the 400 Server Error by returning
> to the terminal and doing the following:
>
> >python manage.py collectstatic
>
> This resolved the 400 Server Error after pushing the data to the Heroku
> Master. Sadly, the 500 Server Error remained. I did a bit more research and
> discovered that 500 Server Errors usually arise from a syntax error in an
> HTML file or external file. I sifted for hours and did not find a syntax
> error.
>
> Could there be an alternative fix to the 500 Server Error that appears on
> the website? Does anyone know how to fix this? At this point, I feel as
> though I spent months developing this website for nothing.
>
> Please help if possible. Thank you!
>
> - Lightning Bit
>
> --
> 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/cbe73ae9-c7c7-41de-95d5-1fab09ffdc17n%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/CAK5m315%3DfBPaX57c%2BMMf8%2BDUmh9oVNXeN%3DuK_P6gAnLqeJDT9w%40mail.gmail.com.


Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-28 Thread RANGA BHARATH JINKA
Hi,

Please check this package. This may help you. All the best

https://django-tables2.readthedocs.io/en/latest/pages/filtering.html


On Sat, 29 Aug 2020, 4:36 am Patrick Carra,  wrote:

> Hello All!  I need some help with a problem I have been struggling with.
> One of you generous geniuses has the answer I'm sure of it.  I am working
> on integrating an export to csv button(link) on my template to export
> filtered data from one of my tables.  I have previously only been able to
> dump the entire table to csv which isn't exactly what I need.  So my
> thoughts were to place a button/link on the template passes a
> parameter(dictionary of my filter criteria) to a view named ExportSearch.
> The view then calls a function that I have defined to perform my filtered
> query to the table and then writes outs to csv.  In theory I thought this
> should work but I keep getting errors that I have not been able to resolve
> and I am at the end of my knowledge capacity here.  Applicable code below.
> Did I mention THANK YOU
>
> *From searchLit/urls.py*
> from django.urls import include, path
> from . import views
> from .views import search
>
> app_name= "searchLit"
>
> urlpatterns=[
> path('customsearch/', views.search, name='search'),
> path('customsearch//', views.search, name='search'),
> path('noccustomsearch/', views.nocSearch, name='nocSearch'),
> path('nocreport/export/', views.noc_export, name='noc_export'),
> path('customsearch/export/', views.searchLit_export,
> name='SearchLit_export'),
> path('customsearch/exportSearch//', views.exportSearch,
> name='exportSearch'),
> ]
>
> *From searchLit/views.py*
> def filterCircuits(params, search_vector):
> circuits=[]
> if(params['circuitid']==None and params['bandwidth']==None and
> params['region']==None and params['carrier']==None and
> params['status']==None and params['segmentname']==None and
> params['mrcnew']==None):
> circuits=Circuitinfotable.objects.all()
> else:
> if(params['multipleSearch']!=None and
> params['multipleSearch']!=""):
>
> circuits=Circuitinfotable.objects.annotate(search=search_vector).filter(search=params['multipleSearch'])
> else:
> circuits = Circuitinfotable.objects.all()
> if(params['circuitid']!=None and params['circuitid']!=""):
> circuits = Circuitinfotable.objects.all()
>
> circuits=circuits.filter(circuitid__icontains=params['circuitid'])
> if(params['bandwidth']!=None and params['bandwidth']!="" and
> params['bandwidth']!='Select Bandwidth'):
> circuits=circuits.filter(bandwidth=params['bandwidth'])
> if(params['region']!=None and params['region']!="" and
> params['region']!='Select Region'):
> circuits=circuits.filter(region=params['region'])
> if(params['carrier']!=None and params['carrier']!="" and
> params['carrier']!='Select Carrier'):
> circuits=circuits.filter(carrier=params['carrier'])
> if(params['status']!=None and params['status']!="" and
> params['status']!='Select Status'):
> circuits=circuits.filter(status=params['status'])
> if(params['segmentname']!=None and params['segmentname']!="" and
> params['segmentname']!='Select Segment'):
> circuits=circuits.filter(segmentname=params['segmentname'])
> if(params['mrcnew']!=None and params['mrcnew']!=""):
> circuits=circuits.filter(mrcnew=params['mrcnew'])
> if(params['diversity']!='Select Option'):
> if(params['diversity']=='None'):
> circuits=circuits.filter(diversity=None)
> else:
>
> circuits=circuits.filter(diversity__icontains=params['diversity'])
> if(params['kmz']!='Select YES/NO'):
> if(params['kmz']=='No'):
> circuits=circuits.filter(kmz=None)
> else:
> circuits=circuits.filter(kmz__isnull=False)
> return(circuits)
>
>
> def search(request):
> form = CircuitForm
> template =  'customsearch/customsearch.html'
> search_vector = SearchVector('circuitid', 'carrier', 'pathname',
> 'segmentname', 'segmentid', 'alocationaddress', 'alocationcity', 'alocst',
> 'zlocationaddress', 'zlocationcity', 'zlocst', 'handoffalocaddress',
> 'handoffalocst',
>  'handoffaloccity', 'handoffzlocaddress',
> 'handoffzloccity', 'handoffzlocst', 'latestjiraticket',
> 'installciopsticket', 'retermciopsticket', 'discociopsticket', 'notes',
> 'diversitynotes')
>
> params={'circuitid': request.GET.get('circuitid'),
> 'bandwidth': request.GET.get('bandwidth'),
> 'region': request.GET.get('region'),
> 'carrier': request.GET.get('carrier'),
> 'status': request.GET.get('status'),
> 'segmentname': request.GET.get('segmentname'),
> 'mrcnew': request.GET.get('mrcnew'),
> 'diversity': request.GET.get('diversity'),
> 'kmz': r

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-28 Thread RANGA BHARATH JINKA
Hi,

 Check this.
 https://pypi.org/project/django-queryset-csv/


On Sat, 29 Aug 2020, 7:33 am RANGA BHARATH JINKA, 
wrote:

> Hi,
>
> Please check this package. This may help you. All the best
>
> https://django-tables2.readthedocs.io/en/latest/pages/filtering.html
>
>
> On Sat, 29 Aug 2020, 4:36 am Patrick Carra,  wrote:
>
>> Hello All!  I need some help with a problem I have been struggling with.
>> One of you generous geniuses has the answer I'm sure of it.  I am working
>> on integrating an export to csv button(link) on my template to export
>> filtered data from one of my tables.  I have previously only been able to
>> dump the entire table to csv which isn't exactly what I need.  So my
>> thoughts were to place a button/link on the template passes a
>> parameter(dictionary of my filter criteria) to a view named ExportSearch.
>> The view then calls a function that I have defined to perform my filtered
>> query to the table and then writes outs to csv.  In theory I thought this
>> should work but I keep getting errors that I have not been able to resolve
>> and I am at the end of my knowledge capacity here.  Applicable code below.
>> Did I mention THANK YOU
>>
>> *From searchLit/urls.py*
>> from django.urls import include, path
>> from . import views
>> from .views import search
>>
>> app_name= "searchLit"
>>
>> urlpatterns=[
>> path('customsearch/', views.search, name='search'),
>> path('customsearch//', views.search, name='search'),
>> path('noccustomsearch/', views.nocSearch, name='nocSearch'),
>> path('nocreport/export/', views.noc_export, name='noc_export'),
>> path('customsearch/export/', views.searchLit_export,
>> name='SearchLit_export'),
>> path('customsearch/exportSearch//', views.exportSearch,
>> name='exportSearch'),
>> ]
>>
>> *From searchLit/views.py*
>> def filterCircuits(params, search_vector):
>> circuits=[]
>> if(params['circuitid']==None and params['bandwidth']==None and
>> params['region']==None and params['carrier']==None and
>> params['status']==None and params['segmentname']==None and
>> params['mrcnew']==None):
>> circuits=Circuitinfotable.objects.all()
>> else:
>> if(params['multipleSearch']!=None and
>> params['multipleSearch']!=""):
>>
>> circuits=Circuitinfotable.objects.annotate(search=search_vector).filter(search=params['multipleSearch'])
>> else:
>> circuits = Circuitinfotable.objects.all()
>> if(params['circuitid']!=None and params['circuitid']!=""):
>> circuits = Circuitinfotable.objects.all()
>>
>> circuits=circuits.filter(circuitid__icontains=params['circuitid'])
>> if(params['bandwidth']!=None and params['bandwidth']!="" and
>> params['bandwidth']!='Select Bandwidth'):
>> circuits=circuits.filter(bandwidth=params['bandwidth'])
>> if(params['region']!=None and params['region']!="" and
>> params['region']!='Select Region'):
>> circuits=circuits.filter(region=params['region'])
>> if(params['carrier']!=None and params['carrier']!="" and
>> params['carrier']!='Select Carrier'):
>> circuits=circuits.filter(carrier=params['carrier'])
>> if(params['status']!=None and params['status']!="" and
>> params['status']!='Select Status'):
>> circuits=circuits.filter(status=params['status'])
>> if(params['segmentname']!=None and params['segmentname']!="" and
>> params['segmentname']!='Select Segment'):
>> circuits=circuits.filter(segmentname=params['segmentname'])
>> if(params['mrcnew']!=None and params['mrcnew']!=""):
>> circuits=circuits.filter(mrcnew=params['mrcnew'])
>> if(params['diversity']!='Select Option'):
>> if(params['diversity']=='None'):
>> circuits=circuits.filter(diversity=None)
>> else:
&g

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-28 Thread RANGA BHARATH JINKA
Hi,

Use jQuery datatable for this. It is easy to use and has inbuilt search
and export to CSV, Excel options also.
https://datatables.net/extensions/buttons/examples/initialisation/export.html

On Sat, 29 Aug 2020, 7:54 am RANGA BHARATH JINKA, 
wrote:

> Hi,
>
>  Check this.
>  https://pypi.org/project/django-queryset-csv/
>
>
> On Sat, 29 Aug 2020, 7:33 am RANGA BHARATH JINKA, <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>
>> Please check this package. This may help you. All the best
>>
>> https://django-tables2.readthedocs.io/en/latest/pages/filtering.html
>>
>>
>> On Sat, 29 Aug 2020, 4:36 am Patrick Carra,  wrote:
>>
>>> Hello All!  I need some help with a problem I have been struggling
>>> with.  One of you generous geniuses has the answer I'm sure of it.  I am
>>> working on integrating an export to csv button(link) on my template to
>>> export filtered data from one of my tables.  I have previously only been
>>> able to dump the entire table to csv which isn't exactly what I need.  So
>>> my thoughts were to place a button/link on the template passes a
>>> parameter(dictionary of my filter criteria) to a view named ExportSearch.
>>> The view then calls a function that I have defined to perform my filtered
>>> query to the table and then writes outs to csv.  In theory I thought this
>>> should work but I keep getting errors that I have not been able to resolve
>>> and I am at the end of my knowledge capacity here.  Applicable code below.
>>> Did I mention THANK YOU
>>>
>>> *From searchLit/urls.py*
>>> from django.urls import include, path
>>> from . import views
>>> from .views import search
>>>
>>> app_name= "searchLit"
>>>
>>> urlpatterns=[
>>> path('customsearch/', views.search, name='search'),
>>> path('customsearch//', views.search, name='search'),
>>> path('noccustomsearch/', views.nocSearch, name='nocSearch'),
>>> path('nocreport/export/', views.noc_export, name='noc_export'),
>>> path('customsearch/export/', views.searchLit_export,
>>> name='SearchLit_export'),
>>> path('customsearch/exportSearch//', views.exportSearch,
>>> name='exportSearch'),
>>> ]
>>>
>>> *From searchLit/views.py*
>>> def filterCircuits(params, search_vector):
>>> circuits=[]
>>> if(params['circuitid']==None and params['bandwidth']==None and
>>> params['region']==None and params['carrier']==None and
>>> params['status']==None and params['segmentname']==None and
>>> params['mrcnew']==None):
>>> circuits=Circuitinfotable.objects.all()
>>> else:
>>> if(params['multipleSearch']!=None and
>>> params['multipleSearch']!=""):
>>>
>>> circuits=Circuitinfotable.objects.annotate(search=search_vector).filter(search=params['multipleSearch'])
>>> else:
>>> circuits = Circuitinfotable.objects.all()
>>> if(params['circuitid']!=None and params['circuitid']!=""):
>>> circuits = Circuitinfotable.objects.all()
>>>
>>> circuits=circuits.filter(circuitid__icontains=params['circuitid'])
>>> if(params['bandwidth']!=None and params['bandwidth']!="" and
>>> params['bandwidth']!='Select Bandwidth'):
>>> circuits=circuits.filter(bandwidth=params['bandwidth'])
>>> if(params['region']!=None and params['region']!="" and
>>> params['region']!='Select Region'):
>>> circuits=circuits.filter(region=params['region'])
>>> if(params['carrier']!=None and params['carrier']!="" and
>>> params['carrier']!='Select Carrier'):
>>> circuits=circuits.filter(carrier=params['carrier'])
>>> if(params['status']!=None and params['status']!="" and
>>> params['status']!='Select Status'):
>>> circuits=circuits.filter(status=params['status'])
>>> if(params['segmentname']!=None and params['segm

Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-28 Thread RANGA BHARATH JINKA
Hi,


 There is a django module.
 https://pypi.org/project/django-datatables-view/

On Sat, 29 Aug 2020, 8:25 am RANGA BHARATH JINKA, 
wrote:

> Hi,
>
> Use jQuery datatable for this. It is easy to use and has inbuilt
> search and export to CSV, Excel options also.
>
> https://datatables.net/extensions/buttons/examples/initialisation/export.html
>
> On Sat, 29 Aug 2020, 7:54 am RANGA BHARATH JINKA, <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>
>>  Check this.
>>  https://pypi.org/project/django-queryset-csv/
>>
>>
>> On Sat, 29 Aug 2020, 7:33 am RANGA BHARATH JINKA, <
>> bharathjink...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Please check this package. This may help you. All the best
>>>
>>> https://django-tables2.readthedocs.io/en/latest/pages/filtering.html
>>>
>>>
>>> On Sat, 29 Aug 2020, 4:36 am Patrick Carra,  wrote:
>>>
>>>> Hello All!  I need some help with a problem I have been struggling
>>>> with.  One of you generous geniuses has the answer I'm sure of it.  I am
>>>> working on integrating an export to csv button(link) on my template to
>>>> export filtered data from one of my tables.  I have previously only been
>>>> able to dump the entire table to csv which isn't exactly what I need.  So
>>>> my thoughts were to place a button/link on the template passes a
>>>> parameter(dictionary of my filter criteria) to a view named ExportSearch.
>>>> The view then calls a function that I have defined to perform my filtered
>>>> query to the table and then writes outs to csv.  In theory I thought this
>>>> should work but I keep getting errors that I have not been able to resolve
>>>> and I am at the end of my knowledge capacity here.  Applicable code below.
>>>> Did I mention THANK YOU
>>>>
>>>> *From searchLit/urls.py*
>>>> from django.urls import include, path
>>>> from . import views
>>>> from .views import search
>>>>
>>>> app_name= "searchLit"
>>>>
>>>> urlpatterns=[
>>>> path('customsearch/', views.search, name='search'),
>>>> path('customsearch//', views.search, name='search'),
>>>> path('noccustomsearch/', views.nocSearch, name='nocSearch'),
>>>> path('nocreport/export/', views.noc_export, name='noc_export'),
>>>> path('customsearch/export/', views.searchLit_export,
>>>> name='SearchLit_export'),
>>>> path('customsearch/exportSearch//', views.exportSearch,
>>>> name='exportSearch'),
>>>> ]
>>>>
>>>> *From searchLit/views.py*
>>>> def filterCircuits(params, search_vector):
>>>> circuits=[]
>>>> if(params['circuitid']==None and params['bandwidth']==None and
>>>> params['region']==None and params['carrier']==None and
>>>> params['status']==None and params['segmentname']==None and
>>>> params['mrcnew']==None):
>>>> circuits=Circuitinfotable.objects.all()
>>>> else:
>>>> if(params['multipleSearch']!=None and
>>>> params['multipleSearch']!=""):
>>>>
>>>> circuits=Circuitinfotable.objects.annotate(search=search_vector).filter(search=params['multipleSearch'])
>>>> else:
>>>> circuits = Circuitinfotable.objects.all()
>>>> if(params['circuitid']!=None and params['circuitid']!=""):
>>>> circuits = Circuitinfotable.objects.all()
>>>>
>>>> circuits=circuits.filter(circuitid__icontains=params['circuitid'])
>>>> if(params['bandwidth']!=None and params['bandwidth']!="" and
>>>> params['bandwidth']!='Select Bandwidth'):
>>>> circuits=circuits.filter(bandwidth=params['bandwidth'])
>>>> if(params['region']!=None and params['region']!="" and
>>>> params['region']!='Select Region'):
>>>> circuits=circuits.filter(region=params['region'])
>>>> if(params['carrier']!=None and params['

Re: 500 Server Error | Impossible to Fix

2020-08-30 Thread RANGA BHARATH JINKA
Hi,

   Copy and paste your log errors . I will check once

On Sun, Aug 30, 2020 at 5:23 PM King Niko 
wrote:

> Thanks for the suggestion Kasper.
> Unfortunately I have not been able to resolve the above bugs utilizing the
> recommended logging technique. The:
>
> > heroku logs —tail
>
> Works to give me the errors mentioned previously. I just wish that there
> was a way for heroku itself to provide more detailed and precise 500 server
> errors. The current logs for Heroku is not informative enough.
>
> On Sat, Aug 29, 2020 at 15:19 Kasper Laudrup 
> wrote:
>
>> Hi King Niko,
>>
>>
>>
>> On 29/08/2020 20.31, King Niko wrote:
>>
>> >
>>
>> > Both of these errors are very vague and provide no direction for
>>
>> > resolution. Has anyone ever encountered this before?
>>
>> >
>>
>>
>>
>> I don't know anything about deploying on Heroku, but as others have
>>
>> pointed out, you should definitely look into how to get some more
>>
>> detailed log information:
>>
>>
>>
>> https://docs.djangoproject.com/en/3.1/topics/logging/
>>
>>
>>
>> I've personal set up my logging so I get an email with detailed
>>
>> information in case of an internal server error. That works quite well
>>
>> for my use case, but yours might be very different.
>>
>>
>>
>> There's no reason wasting time trying to guess what is wrong, you want
>>
>> to be able to get hold of the detailed error information sooner or later
>>
>> anyway so start by figuring out how you can do that as the very first
>> thing.
>>
>>
>>
>> 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/840b420f-9457-f173-87e7-bad43b3b4d92%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/CAO1EWpF1ZZR9ok3YHxmpcV23r6%2BPrW8Q2V_%3DE1aTJCqMn%3DFShg%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: 500 Server Error | Impossible to Fix

2020-08-30 Thread RANGA BHARATH JINKA
Hi,

Please check the whole log errors line by line. Then only u can find
the exact error

On Sun, Aug 30, 2020 at 6:37 PM King Niko 
wrote:

> Hi Ranga,
>
> These are the last two log errors:
>
> *>* *"GET / HTTP/1.1" 500 145 "-" "Mozilla/5.0 (Windows NT 10.0; Win64;
> x64) AppleWebKit/ - (KHTML, like Gecko) Chrome/ - Safari/ -"*
>
> *> at=info method=GET path="/" host=samplesite.herokuapp.com
> <http://samplesite.herokuapp.com/> request_id=private fwd="private"
> dyno=web.1 connect=1ms service=116ms status=500 bytes=477 protocol=https*
>
> Thanks Ranga!
>
> On Sun, Aug 30, 2020 at 8:33 AM RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>
>>Copy and paste your log errors . I will check once
>>
>> On Sun, Aug 30, 2020 at 5:23 PM King Niko <
>> thelegendofearthretu...@gmail.com> wrote:
>>
>>> Thanks for the suggestion Kasper.
>>> Unfortunately I have not been able to resolve the above bugs utilizing
>>> the recommended logging technique. The:
>>>
>>> > heroku logs —tail
>>>
>>> Works to give me the errors mentioned previously. I just wish that there
>>> was a way for heroku itself to provide more detailed and precise 500 server
>>> errors. The current logs for Heroku is not informative enough.
>>>
>>> On Sat, Aug 29, 2020 at 15:19 Kasper Laudrup 
>>> wrote:
>>>
>>>> Hi King Niko,
>>>>
>>>>
>>>>
>>>> On 29/08/2020 20.31, King Niko wrote:
>>>>
>>>> >
>>>>
>>>> > Both of these errors are very vague and provide no direction for
>>>>
>>>> > resolution. Has anyone ever encountered this before?
>>>>
>>>> >
>>>>
>>>>
>>>>
>>>> I don't know anything about deploying on Heroku, but as others have
>>>>
>>>> pointed out, you should definitely look into how to get some more
>>>>
>>>> detailed log information:
>>>>
>>>>
>>>>
>>>> https://docs.djangoproject.com/en/3.1/topics/logging/
>>>>
>>>>
>>>>
>>>> I've personal set up my logging so I get an email with detailed
>>>>
>>>> information in case of an internal server error. That works quite well
>>>>
>>>> for my use case, but yours might be very different.
>>>>
>>>>
>>>>
>>>> There's no reason wasting time trying to guess what is wrong, you want
>>>>
>>>> to be able to get hold of the detailed error information sooner or
>>>> later
>>>>
>>>> anyway so start by figuring out how you can do that as the very first
>>>> thing.
>>>>
>>>>
>>>>
>>>> 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/840b420f-9457-f173-87e7-bad43b3b4d92%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/CAO1EWpF1ZZR9ok3YHxmpcV23r6%2BPrW8Q2V_%3DE1aTJCqMn%3DFShg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAO1EWpF1ZZR9ok3YHxmpcV23r6%2BPrW8Q2V_%3DE1aTJCqMn%3DFShg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Thanks and Regards
>>
>> J. Ranga Bharath
>> cell: 9110334114
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an

Re: 500 Server Error | Impossible to Fix

2020-08-30 Thread RANGA BHARATH JINKA
Hi,

You have to add templates location in settings.py as  'DIRS':
[os.path.join(BASE_DIR, 'templates')].

 Create a templates folder where manage.py file exists i.e. your
project root directory and move all your templates there like html files.

 All the best.


On Mon, Aug 31, 2020 at 12:00 AM King Niko <
thelegendofearthretu...@gmail.com> wrote:

> Okay, so I added a logging to:
>
> > python manage.py runserver
>
> And I found the error (which also now appears in "heroku logs --tail").
> Interestingly, this thing states that:
>
> > django.template.exceptions.TemplateDoesNotExist: store/main.html
>
> This is impossible because in  urls.py I have my main as my base url:
>
> > urlpatterns = [
>  path('  ' , views.main, name="main")
> ]
>
> Also, in views.py I have main instantiated as:
>
> > def main(request):
>
> data= cartData(request)
>
> items=data['items']
> order=data['order']
> cartItems=data['cartItems']
>
> context = {'items':items, 'order':order, 'cartItems':cartItems}
> return render(request, 'store/main.html', context)
>
>
> Thus I am confused as to how the Template could be non-existent if it does
> in fact exist. Would you all happen to know of any solutions to this?
>
>
> On Sun, Aug 30, 2020 at 9:17 AM RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>
>> Please check the whole log errors line by line. Then only u can find
>> the exact error
>>
>> On Sun, Aug 30, 2020 at 6:37 PM King Niko <
>> thelegendofearthretu...@gmail.com> wrote:
>>
>>> Hi Ranga,
>>>
>>> These are the last two log errors:
>>>
>>> *>* *"GET / HTTP/1.1" 500 145 "-" "Mozilla/5.0 (Windows NT 10.0; Win64;
>>> x64) AppleWebKit/ - (KHTML, like Gecko) Chrome/ - Safari/ -"*
>>>
>>> *> at=info method=GET path="/" host=samplesite.herokuapp.com
>>> <http://samplesite.herokuapp.com/> request_id=private fwd="private"
>>> dyno=web.1 connect=1ms service=116ms status=500 bytes=477 protocol=https*
>>>
>>> Thanks Ranga!
>>>
>>> On Sun, Aug 30, 2020 at 8:33 AM RANGA BHARATH JINKA <
>>> bharathjink...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>>Copy and paste your log errors . I will check once
>>>>
>>>> On Sun, Aug 30, 2020 at 5:23 PM King Niko <
>>>> thelegendofearthretu...@gmail.com> wrote:
>>>>
>>>>> Thanks for the suggestion Kasper.
>>>>> Unfortunately I have not been able to resolve the above bugs utilizing
>>>>> the recommended logging technique. The:
>>>>>
>>>>> > heroku logs —tail
>>>>>
>>>>> Works to give me the errors mentioned previously. I just wish that
>>>>> there was a way for heroku itself to provide more detailed and precise 500
>>>>> server errors. The current logs for Heroku is not informative enough.
>>>>>
>>>>> On Sat, Aug 29, 2020 at 15:19 Kasper Laudrup 
>>>>> wrote:
>>>>>
>>>>>> Hi King Niko,
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 29/08/2020 20.31, King Niko wrote:
>>>>>>
>>>>>> >
>>>>>>
>>>>>> > Both of these errors are very vague and provide no direction for
>>>>>>
>>>>>> > resolution. Has anyone ever encountered this before?
>>>>>>
>>>>>> >
>>>>>>
>>>>>>
>>>>>>
>>>>>> I don't know anything about deploying on Heroku, but as others have
>>>>>>
>>>>>> pointed out, you should definitely look into how to get some more
>>>>>>
>>>>>> detailed log information:
>>>>>>
>>>>>>
>>>>>>
>>>>>> https://docs.djangoproject.com/en/3.1/topics/logging/
>>>>>>
>>>>>>
>>>>>>
>>>>>> I've personal set up my logging so I get an email with detailed
>>>>>>
>>>>>> information in case of an internal server error. That works quite
>>>>>> well
>>>>>>
>>>>>> for my use

Re: raise ValueError("Missing staticfiles manifest entry for '%s'" % clean_name)

2020-08-30 Thread RANGA BHARATH JINKA
Hi,

Please check this.

https://stackoverflow.com/questions/44160666/valueerror-missing-staticfiles-manifest-entry-for-favicon-ico

On Mon, Aug 31, 2020 at 9:28 AM Lightning Bit <
thelegendofearthretu...@gmail.com> wrote:

> Hello all,
>
> Does anyone know how to add a manifest entry for a staticfile? I have used:
>
> *> python manage.py collectstatic --noinput *
>
> From this I got the  "*staticfiles"* folder. However, when I perform a
> logging on the website, this 505 error appears:
>
> *> raise ValueError("Missing staticfiles manifest entry for '%s'" %
> clean_name)*
>
>
> I tried deleting the *"staticfiles"  *folder and restarting the 
> "*collectstatic
> " *process but that does not seem to work either. Any resolutions?
>
> --
> 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/b9738987-daa9-403f-b1f6-ec27e076cff8n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: Need help in Linode server setup.

2020-08-30 Thread RANGA BHARATH JINKA
Hi,

   Please check this.

https://stackoverflow.com/questions/10873295/error-message-forbidden-you-dont-have-permission-to-access-on-this-server

On Mon, Aug 31, 2020 at 12:15 PM Vikas Sri  wrote:

> We have pushed the codes on a Linode server. But the project is not
> getting Live.
> Sharing screenshots on the Linode console and the Home page error(it says
> access forbidden).
>
> --
> 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/CANOk8kJ0XadfB4mw5786LED7fU04r4y2j2M-pUqGmRcp_LPSww%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m317OW2enWMzPfyET%3Dr4V3TQ8tCC_2oTu0i%2BFvO3T39h5zQ%40mail.gmail.com.


Re: NoReverseMatch at /searchlit/customsearch and bigger problem of exporting a filtered queryset

2020-08-31 Thread RANGA BHARATH JINKA
No problem.
All the best 😀

On Mon, Aug 31, 2020 at 11:35 PM Patrick Carra  wrote:

> Thanks bharath for the info I'm going to dig more in to these.
>
> On Friday, August 28, 2020 at 9:05:04 PM UTC-5 bharath...@gmail.com wrote:
>
>> Hi,
>>
>> Please check this package. This may help you. All the best
>>
>> https://django-tables2.readthedocs.io/en/latest/pages/filtering.html
>>
>>
>> On Sat, 29 Aug 2020, 4:36 am Patrick Carra,  wrote:
>>
>>> Hello All!  I need some help with a problem I have been struggling
>>> with.  One of you generous geniuses has the answer I'm sure of it.  I am
>>> working on integrating an export to csv button(link) on my template to
>>> export filtered data from one of my tables.  I have previously only been
>>> able to dump the entire table to csv which isn't exactly what I need.  So
>>> my thoughts were to place a button/link on the template passes a
>>> parameter(dictionary of my filter criteria) to a view named ExportSearch.
>>> The view then calls a function that I have defined to perform my filtered
>>> query to the table and then writes outs to csv.  In theory I thought this
>>> should work but I keep getting errors that I have not been able to resolve
>>> and I am at the end of my knowledge capacity here.  Applicable code below.
>>> Did I mention THANK YOU
>>>
>>> *From searchLit/urls.py*
>>> from django.urls import include, path
>>> from . import views
>>> from .views import search
>>>
>>> app_name= "searchLit"
>>>
>>> urlpatterns=[
>>> path('customsearch/', views.search, name='search'),
>>> path('customsearch//', views.search, name='search'),
>>> path('noccustomsearch/', views.nocSearch, name='nocSearch'),
>>> path('nocreport/export/', views.noc_export, name='noc_export'),
>>> path('customsearch/export/', views.searchLit_export,
>>> name='SearchLit_export'),
>>> path('customsearch/exportSearch//', views.exportSearch,
>>> name='exportSearch'),
>>> ]
>>>
>>> *From searchLit/views.py*
>>> def filterCircuits(params, search_vector):
>>> circuits=[]
>>> if(params['circuitid']==None and params['bandwidth']==None and
>>> params['region']==None and params['carrier']==None and
>>> params['status']==None and params['segmentname']==None and
>>> params['mrcnew']==None):
>>> circuits=Circuitinfotable.objects.all()
>>> else:
>>> if(params['multipleSearch']!=None and
>>> params['multipleSearch']!=""):
>>>
>>> circuits=Circuitinfotable.objects.annotate(search=search_vector).filter(search=params['multipleSearch'])
>>> else:
>>> circuits = Circuitinfotable.objects.all()
>>> if(params['circuitid']!=None and params['circuitid']!=""):
>>> circuits = Circuitinfotable.objects.all()
>>>
>>> circuits=circuits.filter(circuitid__icontains=params['circuitid'])
>>> if(params['bandwidth']!=None and params['bandwidth']!="" and
>>> params['bandwidth']!='Select Bandwidth'):
>>> circuits=circuits.filter(bandwidth=params['bandwidth'])
>>> if(params['region']!=None and params['region']!="" and
>>> params['region']!='Select Region'):
>>> circuits=circuits.filter(region=params['region'])
>>> if(params['carrier']!=None and params['carrier']!="" and
>>> params['carrier']!='Select Carrier'):
>>> circuits=circuits.filter(carrier=params['carrier'])
>>> if(params['status']!=None and params['status']!="" and
>>> params['status']!='Select Status'):
>>> circuits=circuits.filter(status=params['status'])
>>> if(params['segmentname']!=None and params['segmentname']!="" and
>>> params['segmentname']!='Select Segment'):
>>> circuits=circuits.filter(segmentname=params['segmentname'])
>>> if(params['mrcnew']!=None and params['mrcnew']!=""):
>>> circuits=circuits.filter(mrcnew=params['mrcnew'])
>>> if(params['diversity']!='Select Option'):
>>> if(params['diversity']=='None'):
>>> circuits=circuits.filter(diversity=None)
>>> else:
>>>
>>> circuits=circuits.filter(diversity__icontains=params['diversity'])
>>> if(params['kmz']!='Select YES/NO'):
>>> if(params['kmz']=='No'):
>>> circuits=circuits.filter(kmz=None)
>>> else:
>>> circuits=circuits.filter(kmz__isnull=False)
>>> return(circuits)
>>>
>>>
>>> def search(request):
>>> form = CircuitForm
>>> template =  'customsearch/customsearch.html'
>>> search_vector = SearchVector('circuitid', 'carrier', 'pathname',
>>> 'segmentname', 'segmentid', 'alocationaddress', 'alocationcity', 'alocst',
>>> 'zlocationaddress', 'zlocationcity', 'zlocst', 'handoffalocaddress',
>>> 'handoffalocst',
>>>  'handoffaloccity',
>>> 'handoffzlocaddress', 'handoffzloccity', 'handoffzlocst',
>>> 'latestjiraticket', 'installciopsticket', 'retermciopsticket',
>>> 'discociopsticket', 'notes', 'diversitynotes')
>>>
>>> params={'circ

Re: DJANGO ADMINISTRATION ERROR & TemplateDoesNotExist

2020-08-31 Thread RANGA BHARATH JINKA
Hi,
 check in browser console for errors

On Tue, Sep 1, 2020 at 2:27 AM Lightning Bit <
thelegendofearthretu...@gmail.com> wrote:

> I logged into the ADMIN PORTAL and saw that there was an image for each
> item in the ADMIN PORTAL.
>
> Strangely, when returning to the website, I am unable to actually "see"
> the pictures - they are blank with the no file icon in the top left. This
> was not the case back in the testing environment.
>
> Why would this occur only upon publishing the website? It does not seem to
> be registering the images from DJANGO ADMINISTRATION. Also, when I click
> my  cart icon after adding one of the non-image showing items, I receive an
> error 500 stating that the cart.html and only the cart.html
> TemplateDoesNotExist. It has the same settings as every other html page,
> what makes this single page unique to becoming an error 500?
>
> --
> 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/f5e9e088-110e-4d2a-a70e-43d87bd6fdb1n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: DJANGO ADMINISTRATION ERROR & TemplateDoesNotExist

2020-08-31 Thread RANGA BHARATH JINKA
open console tab not elements tab

On Tue, Sep 1, 2020 at 10:13 AM King Niko 
wrote:

> Interesting, the browser console states the following:
>
> 
> 
> 
>   Server Error (500)
> 
> 
>   Server Error (500)
> 
> 
>
> How could the *title* and *header 1* be causing the Server Error (500)?
>
> On Tue, Sep 1, 2020 at 12:39 AM RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>  check in browser console for errors
>>
>> On Tue, Sep 1, 2020 at 2:27 AM Lightning Bit <
>> thelegendofearthretu...@gmail.com> wrote:
>>
>>> I logged into the ADMIN PORTAL and saw that there was an image for each
>>> item in the ADMIN PORTAL.
>>>
>>> Strangely, when returning to the website, I am unable to actually "see"
>>> the pictures - they are blank with the no file icon in the top left. This
>>> was not the case back in the testing environment.
>>>
>>> Why would this occur only upon publishing the website? It does not seem
>>> to be registering the images from DJANGO ADMINISTRATION. Also, when I click
>>> my  cart icon after adding one of the non-image showing items, I receive an
>>> error 500 stating that the cart.html and only the cart.html
>>> TemplateDoesNotExist. It has the same settings as every other html page,
>>> what makes this single page unique to becoming an error 500?
>>>
>>> --
>>> 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/f5e9e088-110e-4d2a-a70e-43d87bd6fdb1n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/f5e9e088-110e-4d2a-a70e-43d87bd6fdb1n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Thanks and Regards
>>
>> J. Ranga Bharath
>> cell: 9110334114
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAK5m317sPQakSxmtQVHWO8cMXWCss6F3d_FX2Gj8T-%2BELo0-Dw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAK5m317sPQakSxmtQVHWO8cMXWCss6F3d_FX2Gj8T-%2BELo0-Dw%40mail.gmail.com?utm_medium=email&utm_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/CAO1EWpEJbYvqaEdZ7rkd_B%2BocXjjAsbDTKZ0Aw1HxUCieqqN9w%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAO1EWpEJbYvqaEdZ7rkd_B%2BocXjjAsbDTKZ0Aw1HxUCieqqN9w%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: How to get client or user side details

2020-09-02 Thread RANGA BHARATH JINKA
Hi,

There is a javascript library called Detect.js
Detect.js Github: https://github.com/darcyclarke/Detect.js
Video Tutorial : https://youtu.be/QukFW1qymSA

All the best


On Thu, Sep 3, 2020 at 10:49 AM Salima Begum 
wrote:

> Hi,
> We are trying to extract new login attempts done by application users from
> new devices. That means if an application user tries to login other than
> their regular devices ( laptop, mobile phone etc.), we need to extract that
> particular new device details. So the details that we need are
> 1. Browser Name
> 2. IP address of the client's device
> 3. Location from where login is attempted
> 4. Date and Time Stamp
>
> Is there any suitable and latest package available in Django to achieve
> the above use case?
>
> Thank You
> ~ 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/CAMSz6b%3D0-LT69BroKq3u%3DOsG5NaVNNkzoRhW5pvMuAp%2BNOrZNA%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: ValueError... Cannot query "User": Must be "Model" instance.

2020-09-03 Thread RANGA BHARATH JINKA
Hi,
Go through this. This will help you. The error is because of
foreign key.

https://stackoverflow.com/questions/37839867/django-error-cannot-assign-must-be-an-instance

On Thu, Sep 3, 2020 at 8:46 PM Abdu-H  wrote:

> Hello,
>
> I am working on an app where car owner will list their car and drivers
> interested in renting them will make a request to rent the cars…
>
> i basically have three models the *users*(car owners and drivers) *car*
> listed by owners, and *rent, *i have a listView to list all the car
> available and a detailView for each car, i have a button on the detailed
> view, when clicked i want it to take some of the information on the
> detailed view and save it in the* rent *model… But i am getting a
> ValueError (Cannot query "testuser1": Must be "Listing" instance). But i
> also need to store the driver(testuser1 in this case) in the Rent model.
>
> Thanks in advance... any help is hugely appreciated
>
> Below are my view.py, models.py and error messages:
>
>
>
> *view.py*
>
> class ListingDetailView(DetailView):
>
> model = Listing
>
>
> def post_rent(self, request, pk, *args, **kwargs):
>
> user = request.User
>
> listing = get_object_or_404(Listing, pk=pk)
>
> rent, created = Rent.objects.get_or_create(
>
> car_owner=listing.car_owner,
>
> driver=request.user,
>
> car_id=listing.pk)
>
> rent.save(request.POST)
>
> messages.info(request, *"Rent request has been made succesfully."*
> )
>
> return redirect(*'/'*)
>
>
>
> *models.py*
>
> class Listing(models.Model):
>
> DEF_YEAR = *'2003'*
>
> CAR_YEAR_CHOICES = [(*'2002'*, *'2002'*), (*'2003'*, *'2003'*), (
> *'2004'*, *'2004'*), (*'2005'*, *'2005'*),
>
> (*'2006'*, *'2006'*), (*'2007'*, *'2007'*), (
> *'2008'*, *'2008'*), (*'2009'*, *'2009'*),
>
> (*'2010'*, *'2010'*), (*'2011'*, *'2011'*), (
> *'2012'*, *'2012'*), (*'2013'*, *'2013'*),
>
> (*'2014'*, *'2014'*), (*'2015'*, *'2015'*), (
> *'2016'*, *'2016'*), (*'2017'*, *'2017'*),
>
> (*'2018'*, *'2018'*), (*'2019'*, *'2019'*), (
> *'2020'*, *'2020'*), ]
>
>
> NEW = *'New'*
>
> USED = *'Used'*
>
> OLD = *'Old'*
>
> CAR_CONDITION_CHOICES = [(*'NEW'*, *'New'*), (*'USED'*, *'Used'*), (
> *'OLD'*, *'Old'*)]
>
>
> car_owner = models.ForeignKey(User, on_delete=models.CASCADE)
>
> car_make = models.CharField(max_length=50)
>
> car_model = models.CharField(max_length=50)
>
> car_year = models.CharField(max_length=4, choices=CAR_YEAR_CHOICES,
> default=DEF_YEAR)
>
> car_condition = models.CharField(max_length=4,
> choices=CAR_CONDITION_CHOICES, default=OLD)
>
> car_pic1 = models.ImageField(default=*'car.png'*, upload_to=
> *"car_listing-photos"*)
>
> weekly_charges = models.FloatField()
>
>
> def __str__(self):
>
> return *f'*{self.car_year}  {self.car_make}  {self.car_model}*'*
>
>
> def get_absolute_url(self):
>
> return reverse(*'listing-detail'*, kwargs={*'pk'*: self.pk})
>
>
>
> class Rent(models.Model):
>
> car_id = models.BigIntegerField(null=True, blank=True)
>
> car_owner = models.ForeignKey(Listing, on_delete=models.SET_NULL,
> null=True, blank=True)
>
> driver = models.ForeignKey(User, on_delete=models.SET_NULL, null=True,
> blank=True)
>
> start_date = models.DateField(null=True, blank=True)
>
> end_date = models.DateField(null=True, blank=True)
>
> approved = models.BooleanField(default=False)
>
>
> *listing_detail.html*
>
> 
>
> {% csrf_token %}
>
> Rent
> Car
>
>  
>
>
>
> *Error Message*
>
>
> *ValueError at /listing/2/*
>
> Cannot query "testuser1": Must be "Listing" instance.
>
> *Request Method:*
>
> POST
>
> *Request URL:*
>
> http://127.0.0.1:8000/listing/2/
>
> *Django Version:*
>
> 3.1
>
> *Exception Type:*
>
> ValueError
>
> *Exception Value:*
>
> Cannot query "testuser1": Must be "Listing" instance.
>
>
> *More Error Dump:*
>
>
> Environment:
>
>
>
> Request Method: POST
>
> Request URL: http://127.0.0.1:8000/listing/2/
>
>
> Django Version: 3.1
>
> Python Version: 3.8.5
>
> Installed Applications:
>
> ['accounts.apps.AccountsConfig',
>
>  'django.contrib.admin',
>
>  'django.contrib.auth',
>
>  'django.contrib.contenttypes',
>
>  'django.contrib.sessions',
>
>  'django.contrib.messages',
>
>  'django.contrib.staticfiles',
>
>  'app.apps.AppConfig',
>
>  'crispy_forms']
>
> Installed Middleware:
>
> ['django.middleware.security.SecurityMiddleware',
>
>  'django.contrib.sessions.middleware.SessionMiddleware',
>
>  'django.middleware.common.CommonMiddleware',
>
>  'django.middleware.csrf.CsrfViewMiddleware',
>
>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>
>  'django.contrib.messages.middleware.MessageMiddleware',
>
>  'django.middleware.clickjacking.XFrameOptionsMiddleware']
>
>
>
>
> Traceback (most recent call last):
>
>   File
> "/Users/ChuzzyOfficial/PycharmPr

Re:

2020-09-08 Thread RANGA BHARATH JINKA
Hi,
   See this link.

https://stackoverflow.com/questions/57000214/how-do-i-pip-install-twisted-without-getting-an-error
  All the best

On Tue, Sep 8, 2020 at 4:14 PM hans alexander  wrote:

> I got errors when installing Django Channels.
> I'm using Python 3.8.5, Django 3.1
>
> Installing using :
> pip install channels
>
> I got error like this:
>
> Installing collected packages: twisted, daphne, channels
> Running setup.py install for twisted ... error
> ERROR: Command errored out with exit status 1:
>(many error lines below)
>
> Please help. 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%3Db69GCOjap31KiAF%2BemS-zsDDDw96vHiMsKcWu9qW2hJg%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re:

2020-09-08 Thread RANGA BHARATH JINKA
Delete the Virtual Environment  venv (or) env folder and create a
new Virtual Environment using

python3.7 -m venv venv

Install all modules again.

Since it doesn't support python3.8.

All the best


On Tue, Sep 8, 2020 at 4:55 PM hans alexander  wrote:

> I have seen that link, still got errors after trying to install twisted.
> Guess the problem is that I'm using python 3.8.5. Guess it's not supported
> for Django Channels.
> Is there any safe way to downgrade python version ?
> Or how to separate Global Python Version and Virtual Environment Python
> Version?
> I already have my virtual env for my project.
>
> Please advise. Thanks
>
> On Tue, Sep 8, 2020 at 5:48 PM RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>See this link.
>>
>> https://stackoverflow.com/questions/57000214/how-do-i-pip-install-twisted-without-getting-an-error
>>   All the best
>>
>> On Tue, Sep 8, 2020 at 4:14 PM hans alexander  wrote:
>>
>>> I got errors when installing Django Channels.
>>> I'm using Python 3.8.5, Django 3.1
>>>
>>> Installing using :
>>> pip install channels
>>>
>>> I got error like this:
>>>
>>> Installing collected packages: twisted, daphne, channels
>>> Running setup.py install for twisted ... error
>>> ERROR: Command errored out with exit status 1:
>>>(many error lines below)
>>>
>>> Please help. 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%3Db69GCOjap31KiAF%2BemS-zsDDDw96vHiMsKcWu9qW2hJg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CANV3w%3Db69GCOjap31KiAF%2BemS-zsDDDw96vHiMsKcWu9qW2hJg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Thanks and Regards
>>
>> J. Ranga Bharath
>> cell: 9110334114
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAK5m315f%3D72cjw2R2WHu3xnRHdVyzCzuXW_1y7waFJreegRhbg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAK5m315f%3D72cjw2R2WHu3xnRHdVyzCzuXW_1y7waFJreegRhbg%40mail.gmail.com?utm_medium=email&utm_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/CANV3w%3DY07FdRyNB%3DDw3cGq5%2BbPJ2k_jXZEh%3D-3RquQxJo8SYtA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CANV3w%3DY07FdRyNB%3DDw3cGq5%2BbPJ2k_jXZEh%3D-3RquQxJo8SYtA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: Rocket chat with python: imp

2020-09-08 Thread RANGA BHARATH JINKA
Hi,

   Try this.

   https://pypi.org/project/rocket-python/

  All the best

On Wed, Sep 9, 2020 at 11:00 AM Chander shekhar  wrote:

> Can anyone help me in integrating rocket chat with python any link
> ,videos,or any personal suggestion.
> I have to make a chat with it,really imp
>
> --
> 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/db50ed7d-2058-4bff-818c-5677fa6ab62an%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: Django Admin

2020-09-09 Thread RANGA BHARATH JINKA
Hi,

Use this.
https://pypi.org/project/django-jazzmin/

All the best

On Wed, Sep 9, 2020 at 9:47 PM lada...@gmail.com 
wrote:

> Hello friends, I am developing a system and i want to use bootstrap admin
> dashboard but i dont want to loose the features of django admin please how
> do i go about it
>
> --
> 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/26defa3e-1dc4-4f04-a958-3ace3b8ddbc6n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314-scHwrLmU-401Vb3eQhD30J-aHt62FFbkTqkaTp8WyQ%40mail.gmail.com.


Re: Django Admin

2020-09-09 Thread RANGA BHARATH JINKA
Hi,

   You can configure it.
   https://django-jazzmin.readthedocs.io/configuration/

  All the best

On Thu, Sep 10, 2020 at 2:38 AM Emmanuel Oppong Ntiamoah <
ladamo...@gmail.com> wrote:

> Thanks a lot. Please i have installed it and it’s working but i have these
> challenges:
> 1. How to remove the Jazzmin version from the footer
> 2. I have a tabular inline which allows me to add more fields but it has
> removed the add more button.
>
>
> On 9 Sep 2020, at 4:24 PM, RANGA BHARATH JINKA 
> wrote:
>
> 
> Hi,
>
> Use this.
> https://pypi.org/project/django-jazzmin/
>
> All the best
>
> On Wed, Sep 9, 2020 at 9:47 PM lada...@gmail.com 
> wrote:
>
>> Hello friends, I am developing a system and i want to use bootstrap admin
>> dashboard but i dont want to loose the features of django admin please how
>> do i go about it
>>
>> --
>> 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/26defa3e-1dc4-4f04-a958-3ace3b8ddbc6n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/26defa3e-1dc4-4f04-a958-3ace3b8ddbc6n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAK5m314-scHwrLmU-401Vb3eQhD30J-aHt62FFbkTqkaTp8WyQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAK5m314-scHwrLmU-401Vb3eQhD30J-aHt62FFbkTqkaTp8WyQ%40mail.gmail.com?utm_medium=email&utm_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/E0AED428-0AE4-4B1E-8BA0-5304C440A6AB%40gmail.com
> <https://groups.google.com/d/msgid/django-users/E0AED428-0AE4-4B1E-8BA0-5304C440A6AB%40gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: Help:What is the problem in this code?

2020-09-13 Thread RANGA BHARATH JINKA
Hi,

   Create a virtual environment and install django in a virtual environment.

  All the best

On Sun, Sep 13, 2020 at 9:11 PM Hassan Shuvo  wrote:

> [image: manage.PNG][image: code.PNG]
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d3fa106f-2db2-4c63-a12e-178f5bce9ca9n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m3169Tpe-e07PixNm62u-b9aO%2BErry1F33xBpXgE%3DYde5tw%40mail.gmail.com.


Re: How Upload Image Html File To save DataBase

2020-09-16 Thread RANGA BHARATH JINKA
Hi,

Store the images in a folder.
Store the images folder path in the database.
Don't store the images directly in db.
It is not a good practice.
Instead use aws for storing images.

Follow this tutorial series.

https://www.youtube.com/watch?v=inQyZ7zFMHM

All the best

On Wed, Sep 16, 2020 at 1:43 PM waqar khan  wrote:

> [image: s.JPG]
>
> Please Guys Reply Me .
>
> On Wed, Sep 16, 2020 at 1:36 PM waqar khan  wrote:
>
>> *I am Using dataBase Sql*
>>
>> On Wed, Sep 16, 2020 at 1:21 AM kkwaq...@gmail.com 
>> wrote:
>>
>>> *Problem :- I have Create table and add ImageField , i wanna
>>> upload_image Front-end  and save database.*.
>>>
>>>
>>> html file: But Image Not save
>>> *I am upload using database*
>>>
>>>
>>> [image: u.JPG]
>>> *models.py*
>>>
>>> [image: i.JPG]
>>>
>>> Html Coding file
>>> [image: j.JPG]
>>>
>>> *urls.py*
>>>
>>> [image: g.JPG]
>>>
>>>
>>>
>>>
>>> --
>>> 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/7bcbd386-354a-40fd-87dc-2e9d83b11fa6n%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/CA%2B08CAP%2BArs1iDNwuCHRfk8iEvp8dQZpNRh%3DVneaQa_vcLWZpg%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314vcpNU6S0rDdKE%2Bhgvx%3DWuK8JQS%2B2bjZ%2BHL7%3DzhvthtA%40mail.gmail.com.


Re: How Upload Image Html File To save DataBase

2020-09-16 Thread RANGA BHARATH JINKA
Check django documentation to store images to the folder.

Use upload_to in models.py

You have to update your models.

All the best

On Wed, Sep 16, 2020 at 1:50 PM RANGA BHARATH JINKA <
bharathjink...@gmail.com> wrote:

> Hi,
>
> Store the images in a folder.
> Store the images folder path in the database.
> Don't store the images directly in db.
> It is not a good practice.
> Instead use aws for storing images.
>
> Follow this tutorial series.
>
> https://www.youtube.com/watch?v=inQyZ7zFMHM
>
> All the best
>
> On Wed, Sep 16, 2020 at 1:43 PM waqar khan  wrote:
>
>> [image: s.JPG]
>>
>> Please Guys Reply Me .
>>
>> On Wed, Sep 16, 2020 at 1:36 PM waqar khan  wrote:
>>
>>> *I am Using dataBase Sql*
>>>
>>> On Wed, Sep 16, 2020 at 1:21 AM kkwaq...@gmail.com 
>>> wrote:
>>>
>>>> *Problem :- I have Create table and add ImageField , i wanna
>>>> upload_image Front-end  and save database.*.
>>>>
>>>>
>>>> html file: But Image Not save
>>>> *I am upload using database*
>>>>
>>>>
>>>> [image: u.JPG]
>>>> *models.py*
>>>>
>>>> [image: i.JPG]
>>>>
>>>> Html Coding file
>>>> [image: j.JPG]
>>>>
>>>> *urls.py*
>>>>
>>>> [image: g.JPG]
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> 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/7bcbd386-354a-40fd-87dc-2e9d83b11fa6n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/7bcbd386-354a-40fd-87dc-2e9d83b11fa6n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CA%2B08CAP%2BArs1iDNwuCHRfk8iEvp8dQZpNRh%3DVneaQa_vcLWZpg%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CA%2B08CAP%2BArs1iDNwuCHRfk8iEvp8dQZpNRh%3DVneaQa_vcLWZpg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314eFb6mVjGV7n%3DPvFhxTE%3Dhi44XRQJB%2BvNg9%3D4D6nRr6g%40mail.gmail.com.


Re: Upload Imagae

2020-09-17 Thread RANGA BHARATH JINKA
Hi,

Watch the django part of this video

https://youtu.be/1Hc7KlLiU9w

All the best

On Thu, Sep 17, 2020 at 12:42 PM Kasper Laudrup 
wrote:

> Hi kkwaqar007,
>
> On 17/09/2020 08.17, kkwaq...@gmail.com wrote:
> > *How To Upload  Image  and save the file and save the databases *
> > I have a record table for student,
> > i wanna add column IMAGE every each row upload image..
> >
>
> Did you do any research at all?
>
> Maybe this could help:
>
> https://learndjango.com/tutorials/django-file-and-image-uploads-tutorial
>
> 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/d5b0e733-d461-a54a-3755-1f76d2887663%40stacktrace.dk
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: how to create url helloworld

2020-09-19 Thread RANGA BHARATH JINKA
Hi,

   Please check the typo.

   It is django.http

On Sun, 20 Sep 2020, 12:11 am coolguy, 
wrote:

> Instead of
> from pages import views
>
> use
> from . import views
> On Saturday, September 19, 2020 at 11:15:34 AM UTC-4 leoa...@gmail.com
> wrote:
>
>> *file views.py in folder pages
>>
>> from django.htpp import HtppResponse
>> from django.shortcuts import render
>>
>> # Create your views here.
>> def home_view(*args, **kwargs): # *args, **kwargs
>> return HtppResponse("hello world")
>>
>>
>> C:\Users\leo>C:/python37/python.exe
>> c:/python37/Try-Django-master/src/pages/views.py
>> Traceback (most recent call last):
>>   File "c:/python37/Try-Django-master/src/pages/views.py", line 1, in
>> 
>> from django.htpp import HtppResponse
>> ModuleNotFoundError: No module named 'django.htpp'
>>
>> from django.htpp import HtppResponse
>> from django.shortcuts import render
>>
>> *files urls.py
>>
>> from django.contrib import admin
>> from django.urls import path
>>
>> from pages import views
>>
>> urlpatterns = [
>> path('', views.home_view, name='home'),
>> path('admin/', admin.site.urls),
>> ]
>>
>> file setting
>> INSTALLED_APPS = [
>> 'django.contrib.admin',
>> 'django.contrib.auth',
>> 'django.contrib.contenttypes',
>> 'django.contrib.sessions',
>> 'django.contrib.messages',
>> 'django.contrib.staticfiles',
>>
>> # third party
>> # own
>> 'pages',
>> 'products',
>> ]
>>
>> error :
>> File "C:\python37\Try-Django-master\src\trydjango\urls.py", line 19, in
>> 
>> from pages import views
>>   File "C:\python37\Try-Django-master\src\pages\views.py", line 1, in
>> 
>> from django.htpp import HtppResponse
>> ModuleNotFoundError: No module named 'django.htpp'
>>
> --
> 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/64c882b9-9ab4-49a5-9a72-347cdadd324dn%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/CAK5m315eBUKiQA22O27JxuDQ3-p4sqBq0MEcWYCHiaSrLhh3wQ%40mail.gmail.com.


Re: New Users Unable to Use Website

2020-09-19 Thread RANGA BHARATH JINKA
Hi,

Try this.

https://stackoverflow.com/questions/36317816/relatedobjectdoesnotexist-user-has-no-userprofile


 All the best 👍

On Sun, 20 Sep 2020, 8:50 am Lightning Bit, <
thelegendofearthretu...@gmail.com> wrote:

> Encountering a lot of errors here. Here is the spill:
>
>
> *THE CASE:*
> So, I have created the base site with an operational store. However, now I
> am trying to add new users.
>
> I completed about half of the "setting up user accounts" tutorial,
> however, now, whenever a new user logs in, he/she is unable to access any
> of the pages on the website.
>
> *THE CAUSE*
> In fact, an "Exception Type: RelatedObjectDoesNotExist" and "Exception
> Value: User has no customer" appears.. This is stopping the website from
> being operational for new users.
>
> In the traceback, I am shown the following from "views.py" - "data =
> cartData(request)". Then, I am shown the following form "utils.py" -
> "customer = request.user.customer". This seems to be what is causing the
> errors.
>
> *Views.py *
>
> def about(request):
>
> data= cartData(request)
>
> items=data['items']
> order=data['order']
> cartItems=data['cartItems']
>
> context = {'items':items, 'order':order, 'cartItems':cartItems}
> return render(request, 'store/about.html', context)
>
>
>
> *CartData from Utils.py*
>
>
> def cartData(request):
> if request.user.is_authenticated:
> customer = request.user.customer
>
> order, created = 
> Order.objects.get_or_create(customer=customer, complete=False)
> items = order.orderitem_set.all()
> cartItems=order.get_cart_items
> else:
> cookieData = cookieCart(request)
> cartItems = cookieData['cartItems']
> order = cookieData['order']
> items = cookieData['items']
>
> return{'cartItems':cartItems, 'order':order, 'items':items}
>
>
> *THE CONFUSION*
> However, the store will not operate if I get rid of the cartData(request).
> How can I reconfigure the "views.py" or "utils.py" to make the
> cartData(request) operational for both admin and customers w/o this error
> appearing?
>
> Thanks everyone, I hope that someone knows how to bypass 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/6f1e5336-8ffe-4955-989e-ec166649de82n%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/CAK5m316h3JpBpjWF1uWsentu47VnzDuYi0P2OXo_o2zwV8Qf2w%40mail.gmail.com.


Re: New Users Unable to Use Website

2020-09-20 Thread RANGA BHARATH JINKA
You are welcome 😀

On Sun, Sep 20, 2020 at 9:08 PM King Niko 
wrote:

> This method works! Thank you!
>
> On Sat, Sep 19, 2020 at 23:32 RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>
>> Try this.
>>
>> https://stackoverflow.com/questions/36317816/relatedobjectdoesnotexist-user-has-no-userprofile
>>
>>
>>  All the best 👍
>>
>> On Sun, 20 Sep 2020, 8:50 am Lightning Bit, <
>> thelegendofearthretu...@gmail.com> wrote:
>>
>>> Encountering a lot of errors here. Here is the spill:
>>>
>>>
>>> *THE CASE:*
>>> So, I have created the base site with an operational store. However, now
>>> I am trying to add new users.
>>>
>>> I completed about half of the "setting up user accounts" tutorial,
>>> however, now, whenever a new user logs in, he/she is unable to access any
>>> of the pages on the website.
>>>
>>> *THE CAUSE*
>>> In fact, an "Exception Type: RelatedObjectDoesNotExist" and "Exception
>>> Value: User has no customer" appears.. This is stopping the website from
>>> being operational for new users.
>>>
>>> In the traceback, I am shown the following from "views.py" - "data =
>>> cartData(request)". Then, I am shown the following form "utils.py" -
>>> "customer = request.user.customer". This seems to be what is causing the
>>> errors.
>>>
>>> *Views.py *
>>>
>>> def about(request):
>>>
>>> data= cartData(request)
>>>
>>> items=data['items']
>>> order=data['order']
>>> cartItems=data['cartItems']
>>>
>>> context = {'items':items, 'order':order, 'cartItems':cartItems}
>>> return render(request, 'store/about.html', context)
>>>
>>>
>>>
>>> *CartData from Utils.py*
>>>
>>>
>>> def cartData(request):
>>> if request.user.is_authenticated:
>>> customer = request.user.customer
>>>
>>> order, created = 
>>> Order.objects.get_or_create(customer=customer, complete=False)
>>> items = order.orderitem_set.all()
>>> cartItems=order.get_cart_items
>>> else:
>>> cookieData = cookieCart(request)
>>> cartItems = cookieData['cartItems']
>>> order = cookieData['order']
>>> items = cookieData['items']
>>>
>>> return{'cartItems':cartItems, 'order':order, 'items':items}
>>>
>>>
>>> *THE CONFUSION*
>>> However, the store will not operate if I get rid of the
>>> cartData(request). How can I reconfigure the "views.py" or "utils.py" to
>>> make the cartData(request) operational for both admin and customers w/o
>>> this error appearing?
>>>
>>> Thanks everyone, I hope that someone knows how to bypass 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/6f1e5336-8ffe-4955-989e-ec166649de82n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/6f1e5336-8ffe-4955-989e-ec166649de82n%40googlegroups.com?utm_medium=email&utm_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/CAK5m316h3JpBpjWF1uWsentu47VnzDuYi0P2OXo_o2zwV8Qf2w%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAK5m316h3JpBpjWF1uWsentu47VnzDuYi0P2OXo_o2zwV8Qf2w%40mail.gmail.com?utm_medium=email&utm_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/CAO1EWpGvcgVwkPSFzQ6Tk826yu7BfDyn_CgogFzPnMwKBHu%3DSA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAO1EWpGvcgVwkPSFzQ6Tk826yu7BfDyn_CgogFzPnMwKBHu%3DSA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: Django compatibility with Django 3.0

2020-09-21 Thread RANGA BHARATH JINKA
Hi,

   Check this official docs from oracle.
  https://developer.oracle.com/dsl/vasiliev-django.html

On Mon, Sep 21, 2020 at 3:49 PM Vishnu Bhandari 
wrote:

> Hi folks,
> Does django 3.0 support oracle 19c database.
> If not, How can we achieve 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/CALeETXKrCfaXJRcTgOBNV2PfTN%3DLyh-uvgmjhofCcZL%3D3ASN6A%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: Help in deploying my app!!!!!!!

2020-09-22 Thread RANGA BHARATH JINKA
Hi,

For deploying both as a single, you have to run npm run build.
Then Link in django settings templates the build path of the dist
folder.
Every time you make a change run, npm run build.
All the best.

On Tue, Sep 22, 2020 at 7:35 PM Vishwajit Bhagat <
vishwajit20bha...@gmail.com> wrote:

> Hey developers!
> I am a beginner .I have created an app actually two separate apps  backend
> django api and frontend using react and the api requests for crud
> operations are made through axios.Now I wanna deploy it but the problem is
> should I deploy it separately or as single app . If single app, then how
> should I configure them together.
>
> --
> 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/8d4c5439-b803-4e80-80f7-803adf396ba2n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: Help in deploying my app!!!!!!!

2020-09-22 Thread RANGA BHARATH JINKA
Sure 👍

On Tue, 22 Sep 2020, 8:06 pm Vishwajit Bhagat, 
wrote:

> Thanks bro. I will reach you if I got errors.
>
> On Tue, Sep 22, 2020, 7:55 PM RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>
>> For deploying both as a single, you have to run npm run build.
>> Then Link in django settings templates the build path of the dist
>> folder.
>> Every time you make a change run, npm run build.
>> All the best.
>>
>> On Tue, Sep 22, 2020 at 7:35 PM Vishwajit Bhagat <
>> vishwajit20bha...@gmail.com> wrote:
>>
>>> Hey developers!
>>> I am a beginner .I have created an app actually two separate apps
>>> backend django api and frontend using react and the api requests for crud
>>> operations are made through axios.Now I wanna deploy it but the problem is
>>> should I deploy it separately or as single app . If single app, then how
>>> should I configure them together.
>>>
>>> --
>>> 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/8d4c5439-b803-4e80-80f7-803adf396ba2n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/8d4c5439-b803-4e80-80f7-803adf396ba2n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Thanks and Regards
>>
>> J. Ranga Bharath
>> cell: 9110334114
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAK5m314vAGYUwHJbNuMk2Jm4LLLd1Cek5H%2BN2fENVuKDRPhieA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAK5m314vAGYUwHJbNuMk2Jm4LLLd1Cek5H%2BN2fENVuKDRPhieA%40mail.gmail.com?utm_medium=email&utm_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/CAGYiv2sfK-g%2BMdBwCb_Ou8fUDdxSGO7pRw00mq3FWb4ufX-nZA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAGYiv2sfK-g%2BMdBwCb_Ou8fUDdxSGO7pRw00mq3FWb4ufX-nZA%40mail.gmail.com?utm_medium=email&utm_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/CAK5m3141%3DweSSjSVQ0_QMXDkQ9zuenjtvhqSm9mUxCZo9YeDtQ%40mail.gmail.com.


Re: Recruitment

2020-09-23 Thread RANGA BHARATH JINKA
I am interested

On Wed, Sep 23, 2020 at 8:14 PM Anh Nguyen  wrote:

> I’m, interested!
>
> On Sep 23, 2020, at 14:23, Harish Thiyagharajan <
> harishthiyagh...@gmail.com> wrote:
>
> I want a interested django user , DM mail for more details , all the
> details including payment can be discussed ...looking for for you guys .
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/7b7956bc-d239-4b63-9194-0644b8a6eeben%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/CE1F0D68-DFB1-43DF-BF25-269F030896FD%40gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: How to resize image when uploading to the cloudinary?

2020-09-25 Thread RANGA BHARATH JINKA
Hi,

Check this.
https://cloudinary.com/documentation/django_image_manipulation

On Fri, Sep 25, 2020 at 8:49 PM abhay santra  wrote:

>
> Hi,
> I would like to know how to resize any image when uploading to the
> cloudinary in django?
>
> --
> 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/d9eaaea0-b3e3-42a5-8ccf-884662258ddcn%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: domain/sitemap.xml HTTP Error 500, site matching query does not exist

2020-09-26 Thread RANGA BHARATH JINKA
Hi,

Run heroku logs --tail in terminal
All the best

On Sun, Sep 27, 2020 at 10:51 AM dum dum  wrote:

> what do you mean "log files"?
> Is that logs in terminal or ?
>
> In my terminal it works normal, no problem at all.
> in localhost it works normal, but in production I got http error 500
> [image: image.png]
>
> I'm using heroku.
>
> Thanks
>
>
> On Sun, Sep 27, 2020 at 1:20 AM Kasper Laudrup 
> wrote:
>
>> Hi Dum Dum,
>>
>> On 26/09/2020 18.56, dum dum wrote:
>> > I followed the solution on the internet
>> >
>> https://www.codeproject.com/Questions/5257129/Why-does-my-sitemap-xml-page-return-django-issue-r
>> >
>> > image.png
>> > by commented django.contrib.sites. But still got the same error.
>> > Please advise. Thanks
>> >
>>
>> What did you find in your log files?
>>
>> 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/ada20960-af21-f42b-700f-40d6c2abccb7%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/CANV3w%3Db-z7UV_Qb8TdtS1eczXEJ%3DQJZRm1TuBB095zSPjjUfRw%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: domain/sitemap.xml HTTP Error 500, site matching query does not exist

2020-09-26 Thread RANGA BHARATH JINKA
Check the whole logs by going up

On Sun, Sep 27, 2020 at 11:07 AM dum dum  wrote:

> [image: image.png]
> This is what I got from heroku logs --tail.
>
> Thanks.
>
> On Sun, Sep 27, 2020 at 12:30 PM RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>
>> Run heroku logs --tail in terminal
>> All the best
>>
>> On Sun, Sep 27, 2020 at 10:51 AM dum dum  wrote:
>>
>>> what do you mean "log files"?
>>> Is that logs in terminal or ?
>>>
>>> In my terminal it works normal, no problem at all.
>>> in localhost it works normal, but in production I got http error 500
>>> [image: image.png]
>>>
>>> I'm using heroku.
>>>
>>> Thanks
>>>
>>>
>>> On Sun, Sep 27, 2020 at 1:20 AM Kasper Laudrup 
>>> wrote:
>>>
>>>> Hi Dum Dum,
>>>>
>>>> On 26/09/2020 18.56, dum dum wrote:
>>>> > I followed the solution on the internet
>>>> >
>>>> https://www.codeproject.com/Questions/5257129/Why-does-my-sitemap-xml-page-return-django-issue-r
>>>> >
>>>> > image.png
>>>> > by commented django.contrib.sites. But still got the same error.
>>>> > Please advise. Thanks
>>>> >
>>>>
>>>> What did you find in your log files?
>>>>
>>>> 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/ada20960-af21-f42b-700f-40d6c2abccb7%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/CANV3w%3Db-z7UV_Qb8TdtS1eczXEJ%3DQJZRm1TuBB095zSPjjUfRw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CANV3w%3Db-z7UV_Qb8TdtS1eczXEJ%3DQJZRm1TuBB095zSPjjUfRw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Thanks and Regards
>>
>> J. Ranga Bharath
>> cell: 9110334114
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAK5m316iSxAL1w-7HnY9qxVDM42t34U5Yn3Ep19fzfaEnOZthQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAK5m316iSxAL1w-7HnY9qxVDM42t34U5Yn3Ep19fzfaEnOZthQ%40mail.gmail.com?utm_medium=email&utm_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/CANV3w%3DaiM-_D8U_ns-oJdO7Z5vyfP8AD6B72tB12VABB8NeOPg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CANV3w%3DaiM-_D8U_ns-oJdO7Z5vyfP8AD6B72tB12VABB8NeOPg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: Limit the choices for a ForeignKey

2020-09-27 Thread RANGA BHARATH JINKA
Hi,

Check this. This may be useful for you. It is based on dependent
dropdown.

https://www.youtube.com/watch?v=U_qPp6vPl-g

On Sun, Sep 27, 2020 at 10:09 PM Marco Paradisi  wrote:

> Hi Everyone!
>
> I need to filter the choices for a foreign key.
>
> My Model has an attribute SEX that could be M or F, and two Foreign keys (
> FATHER and MOTHER ), I want both filtered for sex.
>
> How can I achieve it?
>
> 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/CAFCTdWp0xJE_J-r%3DmHbHzVmeAsGvotFc1%3DyQBGuyEzjfiiVxTA%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m314V6rMaarKnx3rV4uNO%3DfKo-24JsNLczFddDNShN65mmw%40mail.gmail.com.


Re: How to resize image when uploading to the cloudinary?

2020-09-29 Thread RANGA BHARATH JINKA
Hi,

I saw a video to upload images to cloudinary. Check it out.

   https://youtu.be/1T6G7Znrbfg


On Tue, Sep 29, 2020 at 7:12 PM abhay santra  wrote:

> Thank you everyone...
>
> On Friday, September 25, 2020 at 9:53:32 PM UTC+5:30 Kasper Laudrup wrote:
>
>> Hi Abbay,
>>
>> On 25/09/2020 16.21, abhay santra wrote:
>> >
>> > Hi,
>> > I would like to know how to resize any image when uploading to the
>> > cloudinary in django?
>> >
>>
>> You use Pillow:
>>
>> https://pillow.readthedocs.io/en/stable/
>>
>> It's hard for anyone to give you a better answer until you try to write
>> a better question.
>>
>> 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/c0621b57-4f50-409e-8267-7f48aa7f4148n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: How to resize image when uploading to the cloudinary?

2020-09-30 Thread RANGA BHARATH JINKA
https://youtu.be/inQyZ7zFMHM

Check this out. All the best 👍😁

On Thu, 1 Oct 2020, 5:10 am abhay santra,  wrote:

> Thank you man...
> have you worked with Amazon s3 in django?
>
> On Wednesday, September 30, 2020, RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>
>> I saw a video to upload images to cloudinary. Check it out.
>>
>>https://youtu.be/1T6G7Znrbfg
>>
>>
>> On Tue, Sep 29, 2020 at 7:12 PM abhay santra 
>> wrote:
>>
>>> Thank you everyone...
>>>
>>> On Friday, September 25, 2020 at 9:53:32 PM UTC+5:30 Kasper Laudrup
>>> wrote:
>>>
>>>> Hi Abbay,
>>>>
>>>> On 25/09/2020 16.21, abhay santra wrote:
>>>> >
>>>> > Hi,
>>>> > I would like to know how to resize any image when uploading to the
>>>> > cloudinary in django?
>>>> >
>>>>
>>>> You use Pillow:
>>>>
>>>> https://pillow.readthedocs.io/en/stable/
>>>>
>>>> It's hard for anyone to give you a better answer until you try to write
>>>> a better question.
>>>>
>>>> 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/c0621b57-4f50-409e-8267-7f48aa7f4148n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/c0621b57-4f50-409e-8267-7f48aa7f4148n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Thanks and Regards
>>
>> J. Ranga Bharath
>> cell: 9110334114
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Django users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/django-users/0xfYS71IurM/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAK5m316rFiQatVEVeMAhtEtmG0mTE1Z4rC3Rkkei32Y6G%2B6iHA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAK5m316rFiQatVEVeMAhtEtmG0mTE1Z4rC3Rkkei32Y6G%2B6iHA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BmzYVvGxpmGihZcn7Fqt-ULAtibGYF3pbUvpK9JyqAhpX%2BfBA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CA%2BmzYVvGxpmGihZcn7Fqt-ULAtibGYF3pbUvpK9JyqAhpX%2BfBA%40mail.gmail.com?utm_medium=email&utm_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/CAK5m3157Tj6ZxuozDGExf06Cwu-YP4_U-uaS4VCrUnkpEq2THA%40mail.gmail.com.


Re: Send csrf token and retrieve with javascript?

2020-09-30 Thread RANGA BHARATH JINKA
Hi,

   Check the docs link. This will be useful. All the best
  https://docs.djangoproject.com/en/3.1/ref/csrf/

On Thu, Oct 1, 2020 at 5:10 AM Alexandro Gonçalves Dos Santos <
alexandrogon...@gmail.com> wrote:

> I am building a django api to be used in a front end of another server,
> how do I send the csrf token and how do I retrieve it in the front end with
> javascript?
>
> Currently my posts.py file looks like this:
> ```python
> from django.http import HttpResponse
> from django.views.decorators.csrf import ensure_csrf_cookie
>
> @ensure_csrf_cookie
> def index(request):
> return HttpResponse('ok')
> ```
>
> And the header that the javascript receives when making the request is:
> ```
> content-length: 2
> content-type: text/html; charset=utf-8
> date: Wed, 30 Sep 2020 22:37:40 GMT
> server: WSGIServer/0.2 CPython/3.7.3
> vary: Cookie
> x-content-type-options: nosniff
> x-frame-options: DENY
> ```
>
> Thank you so much 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/fd412572-d35c-460e-934f-6fb684d1c0c9n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m316v0c_cZ7E%3DKEWDieJ-f1N2bsUoB57r%3DuafAFWKdhodPg%40mail.gmail.com.


Re: How to get logged in user location and save it in database

2020-09-30 Thread RANGA BHARATH JINKA
Hi,

   Use javascript location api
   https://www.w3schools.com/html/html5_geolocation.asp

   All the best

On Thu, Oct 1, 2020 at 9:59 AM Ram  wrote:

> Hi All,
>
> I'm looking for a way to capture location of logged in users in our Web
> App and save that location into our database.
>
> Basically if we could capture this location, we would like to use it
> around members account features.
>
> Please let me know if you have suitable pointers for this.
>
> Thanks in advance,
> ~Ram
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BOi5F1T1X_Q-GGSqKp4f-fRhY4qfu8Y12-XcNUGcEmUSGQ9AA%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: How to get logged in user location and save it in database

2020-09-30 Thread RANGA BHARATH JINKA
I think you can find out city name using IP address. Use JavaScript or
there are some python modules also.
All the best 👍

On Thu, 1 Oct 2020, 11:34 am Ram,  wrote:

> Thank you very much, Ranga for the pointer. We actually need to capture
> the location of the IP address, like "Where" attribute in this  example. So
> where attribute should also include nearest city name in that country.
>
> [image: image.png]
>
>
> Best Regards,
> ~Ram
>
> On Wed, Sep 30, 2020 at 10:36 PM RANGA BHARATH JINKA <
> bharathjink...@gmail.com> wrote:
>
>> Hi,
>>
>>Use javascript location api
>>https://www.w3schools.com/html/html5_geolocation.asp
>>
>>All the best
>>
>> On Thu, Oct 1, 2020 at 9:59 AM Ram  wrote:
>>
>>> Hi All,
>>>
>>> I'm looking for a way to capture location of logged in users in our Web
>>> App and save that location into our database.
>>>
>>> Basically if we could capture this location, we would like to use it
>>> around members account features.
>>>
>>> Please let me know if you have suitable pointers for this.
>>>
>>> Thanks in advance,
>>> ~Ram
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CA%2BOi5F1T1X_Q-GGSqKp4f-fRhY4qfu8Y12-XcNUGcEmUSGQ9AA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CA%2BOi5F1T1X_Q-GGSqKp4f-fRhY4qfu8Y12-XcNUGcEmUSGQ9AA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Thanks and Regards
>>
>> J. Ranga Bharath
>> cell: 9110334114
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAK5m315QeHRHpv0kbg4OefdGUSDmNgSp7KbmsLEswVWPGNqd4g%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAK5m315QeHRHpv0kbg4OefdGUSDmNgSp7KbmsLEswVWPGNqd4g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BOi5F1p-uCrkEVCobuB%3DE8srydue1Fp-H_%2BFv8W8gRkPiwhTA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CA%2BOi5F1p-uCrkEVCobuB%3DE8srydue1Fp-H_%2BFv8W8gRkPiwhTA%40mail.gmail.com?utm_medium=email&utm_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/CAK5m316QhbiWzXA3NvOt6981ohFrcdNJiBu%2BCyFL4rm4zzkRig%40mail.gmail.com.


Re: Mass Emailing

2020-10-01 Thread RANGA BHARATH JINKA
Hi,

Try these. This may be useful

https://pypi.org/project/django-massmailer/

https://docs.djangoproject.com/en/3.1/topics/email/#send-mass-mail


https://stackoverflow.com/questions/8659131/how-does-one-send-an-email-to-10-000-users-in-django

All the best

On Thu, Oct 1, 2020 at 1:11 PM degnon...@gmail.com 
wrote:

>
> Hi, hope every one is doing fine, I have an issue that I have not been
> able to resolve for several months now. I have two apps where  I need to
> send a bunch of emails on a monthly basis, The first app is host on heroku
> and the second on DigitalOcean with dokku, for async task I'm using
> Django_Q and Redis is used as broker, when I need to send 1 or 2 emails, or
> even something like 100, there is no issue, the emails are sent and the
> task is marked as successful in the Django_q admin section, but when I need
> to send just 200 or 500 (send 500 is supposed to be nothing), the task is
> never accomplished, I don't receive any error message sand even if I wait
> for days the task is never marked completed and all emails are not sent, at
> first I think it was a resources issue, in the case of my first app I'm
> using the heroku hobby-dev plan, maybe this is two low for the work I need
> to get done, but for my second app I'm using the 15$ plan on DigitalOcean,
> for just 500 emails i think that's enough, Maybe I should use celery
> instead of Django_q, I don't know, I need to know what are the minimum
> requirements to send a lot(and by a lot I mean something like 50k for
> example) emails with a Django app, and how to do this efficiently. An
> article, a package name, anything would be helpful. I'm using amazon SES
> for both apps. 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/5d981f11-c996-47bc-8897-72a43b4a76a7n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: Mass Emailing

2020-10-01 Thread RANGA BHARATH JINKA
https://github.com/sherzberg/django-emailer

On Thu, Oct 1, 2020 at 1:18 PM RANGA BHARATH JINKA 
wrote:

> Hi,
>
> Try these. This may be useful
>
> https://pypi.org/project/django-massmailer/
>
> https://docs.djangoproject.com/en/3.1/topics/email/#send-mass-mail
>
>
> https://stackoverflow.com/questions/8659131/how-does-one-send-an-email-to-10-000-users-in-django
>
> All the best
>
> On Thu, Oct 1, 2020 at 1:11 PM degnon...@gmail.com <
> degnonfran...@gmail.com> wrote:
>
>>
>> Hi, hope every one is doing fine, I have an issue that I have not been
>> able to resolve for several months now. I have two apps where  I need to
>> send a bunch of emails on a monthly basis, The first app is host on heroku
>> and the second on DigitalOcean with dokku, for async task I'm using
>> Django_Q and Redis is used as broker, when I need to send 1 or 2 emails, or
>> even something like 100, there is no issue, the emails are sent and the
>> task is marked as successful in the Django_q admin section, but when I need
>> to send just 200 or 500 (send 500 is supposed to be nothing), the task is
>> never accomplished, I don't receive any error message sand even if I wait
>> for days the task is never marked completed and all emails are not sent, at
>> first I think it was a resources issue, in the case of my first app I'm
>> using the heroku hobby-dev plan, maybe this is two low for the work I need
>> to get done, but for my second app I'm using the 15$ plan on DigitalOcean,
>> for just 500 emails i think that's enough, Maybe I should use celery
>> instead of Django_q, I don't know, I need to know what are the minimum
>> requirements to send a lot(and by a lot I mean something like 50k for
>> example) emails with a Django app, and how to do this efficiently. An
>> article, a package name, anything would be helpful. I'm using amazon SES
>> for both apps. 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/5d981f11-c996-47bc-8897-72a43b4a76a7n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/5d981f11-c996-47bc-8897-72a43b4a76a7n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> Thanks and Regards
>
> J. Ranga Bharath
> cell: 9110334114
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m317kbs6SBhs6cEC6voPS-UAvL-xDkEfsDA%3D0M16P4JYEAQ%40mail.gmail.com.


Re: Ajax, jQuery and Django

2020-10-05 Thread RANGA BHARATH JINKA
Hi,

Check this. This may be useful for you.

All the best

https://www.youtube.com/results?search_query=django+dependent+drop+down+list+from+database

On Mon, Oct 5, 2020 at 1:56 PM Kunal Solanke 
wrote:

> Rather than sending ajax every time handle it on frontend in javascript
>
> On Mon, Oct 5, 2020, 13:35 Salima Begum 
> wrote:
>
>> Hi all,
>> I have database of zip code for example,
>> INSERT INTO pages_zip_code (id, zip, city, st) VALUES
>> (1, '00501', 'Holtsville', 'NY'),
>> (2, '00544', 'Holtsville', 'NY'),
>> (3, '00601', 'Adjuntas', 'PR'),
>> (4, '00602', 'Aguada', 'PR'),
>> (5, '00603', 'Aguadilla', 'PR'),
>> (6, '00604', 'Aguadilla', 'PR'),
>> (7, '00605', 'Aguadilla', 'PR'),
>> (8, '00606', 'Maricao', 'PR'),
>> (9, '00610', 'Anasco', 'PR'),
>> (10, '00611', 'Angeles', 'PR'),
>> (11, '00612', 'Arecibo', 'PR'),
>> (12, '00613', 'Arecibo', 'PR'),
>> (13, '00614', 'Arecibo', 'PR'),
>> (14, '00616', 'Bajadero', 'PR'),
>> (15, '00617', 'Barceloneta', 'PR'),
>> (16, '00622', 'Boqueron', 'PR'),
>> (17, '00623', 'Cabo Rojo', 'PR'),
>> (18, '00624', 'Penuelas', 'PR'),
>> (19, '00627', 'Camuy', 'PR');
>> If user enters zipcode, Then state and city column should be auto fill by
>> using database of zip code in django and jQuery .
>> Please let me know how to do this.
>>
>> Thank You,
>> ~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/CAMSz6b%3DceNs7rk3zY4aNAS2MpUtAnamPi%2BzsfBx5maK9NZPo%2Bw%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/CAOecAny6XS%2B7wrvTDbEDdVOwC76Umv02nQ4AxnDeEwXUAArMUA%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK5m316JmU0i_CkUMkUE93VwAN-cyTGSMAPBMxDg%2BJ6OcLSG-Q%40mail.gmail.com.


Re: E Commerce Website Assistance

2020-10-09 Thread RANGA BHARATH JINKA
Hi,

Check this.

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

All the best

On Sat, Oct 10, 2020 at 11:29 AM Farai M  wrote:

> Hello all
>
> I am doing an ecommerce  app can any one who have done a commercial
> project assist with maybe documentation and architecture and packages l can
> use.
>
> Thanks in advance
>
> DM me on +263779046006
>
> --
> 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/CAMeub5PeaY_xeLntMo0K2%3DMQwDFsydb5wB685u%3D6te3r-Rqqwg%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: django template forloop

2020-10-14 Thread RANGA BHARATH JINKA
Hi,

 You have to end for loop for second for loop

On Wed, Oct 14, 2020 at 4:23 PM luca72.b...@gmail.com <
luca72.bertolo...@gmail.com> wrote:

> Hello
> I have this:
> {% for x in lista_form %}
> {% if forloop.counter < 100 %}
> {% for fieldi in formone %}
> {{ fieldi.label }} {{ fieldi }}
> {% endfor %}
> Immagine 
>  {% endif %}
> {% if forloop.counter|divisibleby:"2" %}
> 
> {% endif %}
>
> The second forloop is not executed, where i have to apply it?
>
> 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/7a3e9bec-7e96-4922-ac0d-765ab49eb0d7n%40googlegroups.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


Re: Regd:- Generating PDF from HTML with image

2020-10-27 Thread RANGA BHARATH JINKA
Hi,

Refer to this.

https://www.youtube.com/watch?v=5umK8mwmpWM&ab_channel=DennisIvy

On Tue, Oct 27, 2020 at 7:24 PM Senthil Kumar 
wrote:

> Thanks a lot. We will check it out & get back to you
>
> On Tue, Oct 27, 2020 at 6:43 PM Derek  wrote:
>
>> You can try : https://pypi.org/project/xhtml2pdf/
>>
>> On Tuesday, 27 October 2020 at 11:37:22 UTC+2 senthil...@gmail.com wrote:
>>
>>> Hi Everyone,
>>>
>>> Hope you are doing well
>>>
>>> We need help to generate the PDF from the HTML tag with images. Let us
>>> know if any package available to do this requirement.
>>>
>>> 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/02111ef7-0e42-40ff-930f-282599c37594n%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/CAPPQ_ijiMPpK195SEC8cgQkqVhURUBH9aKi51%2BeK77yXPp9YwQ%40mail.gmail.com
> 
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

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


  1   2   >