Re: Please check

2020-01-10 Thread RONAK JAIN
Please help me out what can I write code in views?

On Fri, Jan 10, 2020 at 4:58 PM RONAK JAIN  wrote:

>
> I am doing save data in form but models inside foreign key how can I save
> data in my form?
>
>
>
> Sharing screen shorts please check.
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send 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%2BAqMUcAcWmna3KcYDCc30rpyFLrb1Z6RXZOvsyUk4Es9gnZ%3DQ%40mail.gmail.com.


Re: How to write raw SQL or ORM for Count

2019-12-02 Thread RONAK JAIN
What you want to hear please cear that one..

Thanks

On Mon, 2 Dec 2019, 19:13 xiaopeng luo,  wrote:

> I am new to django ORM, I want query something like this:
>
> input:
> AAAfemale1
> AAAfemale2
> BBBmale   1
> BBBmale   3
> AAAmale   2
>
>
>
> output
> AAAfemale3
> AAAmale   2
> BBBmale   4
>
>
> Sorry, my english is not good. Thanks for everyone help me.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a297dc1f-6821-4bba-b04c-e8ce271b5a8d%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%2BAqMUewuq-ugJTBZ-%2BfFrWT8hvNN%3D3-g7V7W3Tzj2iLV3mf7A%40mail.gmail.com.


Re: Regarding to nested serilizers

2019-09-05 Thread RONAK JAIN
Yes, I am sure about it when I am doing in admin panel I am getting my
data..

On Thu, Sep 5, 2019 at 10:26 PM Ronit Mishra 
wrote:

> If you see your output, you're getting empty salaries, you're just not
> getting to edit them in the form beneath it since they're read only fields.
> Are you sure you've data for your salary model?
>
> On Thu, Sep 5, 2019 at 1:41 PM RONAK JAIN  wrote:
>
>> please check it output also...
>>
>> On Thu, Sep 5, 2019 at 1:39 PM RONAK JAIN  wrote:
>>
>>> I am getting same issue...
>>>
>>>
>>> Thanks
>>>
>>> On Wed, Sep 4, 2019 at 7:49 PM Ronit Mishra 
>>> wrote:
>>>
>>>> Hey RJ,
>>>>
>>>> All your views have the same name, that is probably the reason you're
>>>> not able to view the salary field, since its displaying the first view i.e
>>>> for employe_hireSerializer always.
>>>>
>>>> On Wed, Sep 4, 2019 at 7:11 PM RONAK JAIN 
>>>> wrote:
>>>>
>>>>> Hello
>>>>>
>>>>>
>>>>> I am trying to do nested but I am not getting my* salaries fileds* in
>>>>> nested form can you see my screen shots.
>>>>>
>>>>>
>>>>> 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/CA%2BAqMUd9TYRz%3D%3D%3D%3DZ-Hooj21CD15y2h9aP%2BBntyCCuON_AbMSg%40mail.gmail.com
>>>>> <https://groups.google.com/d/msgid/django-users/CA%2BAqMUd9TYRz%3D%3D%3D%3DZ-Hooj21CD15y2h9aP%2BBntyCCuON_AbMSg%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/CACh0Ehyt1iFtPowOqW83CN_-_FomV5EfjJed54iKWqH2vf_wsw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CACh0Ehyt1iFtPowOqW83CN_-_FomV5EfjJed54iKWqH2vf_wsw%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%2BAqMUdAUp_wTGDm3_bpbDDQauu65TY-O-MkeKiXkthqzh9CzA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CA%2BAqMUdAUp_wTGDm3_bpbDDQauu65TY-O-MkeKiXkthqzh9CzA%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/CACh0EhycQLtL7-oL-i-1Bt3_2cu0UF5uFkdfBmj4Nn2Dfb2b3A%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CACh0EhycQLtL7-oL-i-1Bt3_2cu0UF5uFkdfBmj4Nn2Dfb2b3A%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%2BAqMUcqVa28%2BcNLby0sZaOTMiPi4CyUsk2c%3D_zCQe8NgL7t_A%40mail.gmail.com.


Re: Regarding to nested serilizers

2019-09-05 Thread RONAK JAIN
please check it output also...

On Thu, Sep 5, 2019 at 1:39 PM RONAK JAIN  wrote:

> I am getting same issue...
>
>
> Thanks
>
> On Wed, Sep 4, 2019 at 7:49 PM Ronit Mishra 
> wrote:
>
>> Hey RJ,
>>
>> All your views have the same name, that is probably the reason you're not
>> able to view the salary field, since its displaying the first view i.e for
>> employe_hireSerializer always.
>>
>> On Wed, Sep 4, 2019 at 7:11 PM RONAK JAIN  wrote:
>>
>>> Hello
>>>
>>>
>>> I am trying to do nested but I am not getting my* salaries fileds* in
>>> nested form can you see my screen shots.
>>>
>>>
>>> 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/CA%2BAqMUd9TYRz%3D%3D%3D%3DZ-Hooj21CD15y2h9aP%2BBntyCCuON_AbMSg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CA%2BAqMUd9TYRz%3D%3D%3D%3DZ-Hooj21CD15y2h9aP%2BBntyCCuON_AbMSg%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/CACh0Ehyt1iFtPowOqW83CN_-_FomV5EfjJed54iKWqH2vf_wsw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CACh0Ehyt1iFtPowOqW83CN_-_FomV5EfjJed54iKWqH2vf_wsw%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%2BAqMUdAUp_wTGDm3_bpbDDQauu65TY-O-MkeKiXkthqzh9CzA%40mail.gmail.com.


Re: Django Version to be used on for Windows Server 2016 and MS SQL 2016

2019-09-03 Thread RONAK JAIN
Hi Django-user,

You can do simply change in* Settings.py.*


   1. *First go on settings.py and look data base connection which is
   connect with default dbsqlite3.*
   2. *Remove there.*
   3. *Search on google how to integrate mysql with django..*
   4. *then connect with your django*
   5. *Maybe , you will get your answer.*



*Thanks *
*RJ *



On Mon, Sep 2, 2019 at 7:09 PM Mahaveerchand Jain <
mahaveerchand.j...@gmail.com> wrote:

> Dear All,
>
> I have Windows Server 2016 , IIS 10 and the Database is MS SQL 2016.
>
> I am not sure about the compatibility and  version of Django to use on
> Windows Server 2016  with IIS 10 and I want the Django to be integrated
> seamlessly with MS SQL server 2016  so any  module or library suggestion
> for the same.
>
> Say I wish to run the Django application on Jython so that application
> runs on JVM then the compatible Jython version will help.
>
> Thanks ,
> Nirmal Kumar.M
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/01b7e022-2c63-4984-a4d4-0a4d49790cf9%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%2BAqMUf4DZd5tTSGenHwmVtYUNSqhL21yFi_2rGEOAh8sYP1%3Dw%40mail.gmail.com.


Django Template url mapping

2019-08-21 Thread RONAK JAIN
Hi

I am new in Django I am doing struggle with add  Django templates using by
inheritance.


so when I am trying within *Example::  index.html  add inside the blog.html
but, *I am getting the direct blog.html, not index.html on the index page.


so I used simply in index.html.

*index.html:*

{%. include  "blog.html"   %}

*view.py*

class blog(TemplateView):
template_name = "blog.html"


*or Can I use templateview for dynamically ?*



can you help me with that? how can I render dynamically my blog.html file?.


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/CA%2BAqMUdZDk3ce7HY5WTTB0uVNA%3DYsnx3OxUj3x4rf3%3D-2AfMBA%40mail.gmail.com.


Re: Regarding to suggestion for registration page

2019-08-21 Thread RONAK JAIN
Thank you so much all of you for your kind of help.


I have done this Task.


Thanks





On Thu, Aug 22, 2019 at 10:21 AM Sipum  wrote:

> Hey Ronak,
>
> At first u did wrong in import.
>
> Do as below and compare what u have done.
>
> From django.contrib.auth.models import User
> From django.contrib import auth
>
> Then when u are creating user do as-
>  user = User.objects.create_user(uanme,pwd,email)
>
> THEN for login after sign up use as below -
> auth.login(request, user)
>
> On Thu, 22 Aug, 2019, 10:02 AM 'Gaurav Ravindra Bole' via Django users, <
> django-users@googlegroups.com> wrote:
>
>> in register method
>> add user.set_password = request.POST.get('password') before user.save()
>>
>> On Wed, Aug 21, 2019 at 10:56 PM 'Amitesh Sahay' via Django users <
>> django-users@googlegroups.com> wrote:
>>
>>> I guess you have forgotten to mention the APP name under which the pages
>>> are created. Please cross-verify on my observation .
>>>
>>> Regards,
>>> Amitesh Sahay
>>> *91-750 797 8619*
>>>
>>>
>>> On Wednesday, 21 August, 2019, 12:35:28 pm IST, RONAK JAIN <
>>> jainronak...@gmail.com> wrote:
>>>
>>>
>>> Hey
>>> I tried but still getting like that...
>>>
>>> Attached screenshots take a look..
>>>
>>>
>>>
>>> Thanks
>>>
>>> On Wed, Aug 21, 2019 at 12:23 PM Tosin Ayoola 
>>> wrote:
>>>
>>> Using httpRedirect to d view 4 the URL u want user to b redirected to
>>>
>>> On Aug 21, 2019 06:21, "RONAK JAIN"  wrote:
>>>
>>> I am trying to redirect my registration page but, I am not getting *please
>>> check my attached screenshot* and please let me know where I am doing
>>> wrong...
>>>
>>>
>>>
>>> On Tue, Aug 20, 2019 at 10:26 AM Sipum  wrote:
>>>
>>> Hey Ronit,
>>>
>>> It is very simple.
>>> Just do return redirect ('/name used in url')
>>>
>>> If ur url for home page be like,  path('home', views.index, name='home')
>>>
>>> Then u hv to write as redirect('/home').
>>>
>>>
>>> On Tue, 20 Aug, 2019, 9:43 AM Ronit Mishra, 
>>> wrote:
>>>
>>> Hi,
>>>
>>> If I've understood your issue correctly, you probably just need to add
>>> this lil' snippet in your settings.py
>>>
>>> LOGIN_REDIRECT_URL = '/' (or wherever you wanna redirect after login)
>>>
>>> Let me know if it works out for you!
>>>
>>> Regards,
>>> Ronnie
>>>
>>> On Tue, Aug 20, 2019 at 2:40 AM Smovie Makers Club 
>>> wrote:
>>>
>>> return redirect('{{ request.scheme }}://{{ request.get_host }}')
>>> This will redirect to home page
>>>
>>> On Mon, 19 Aug 2019, 3:52 pm RONAK JAIN,  wrote:
>>>
>>> Hello Django developers,
>>>
>>> I am trying to redirect my registration page on the home page but, I am
>>> not getting when I am trying with a registration page it will work for
>>> registration but when I am doing with the home page so I am not getting.
>>>
>>> *Home Page : localhost:8000*
>>>
>>> *Could you help me out with this problem?*
>>>
>>> *Attached screenshots for Better Understanding please check it out.*
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> 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%2BAqMUeYs7CALaGOmfFfJ%2BHp%3DWoKMyrjvYcOc8Za3JkTLFY_CQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CA%2BAqMUeYs7CALaGOmfFfJ%2BHp%3DWoKMyrjvYcOc8Za3JkTLFY_CQ%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

Re: Template Does Not Exist

2019-08-19 Thread RONAK JAIN
Hey

can you remove learning_logs in views.py?

please simply write inside view.py :


*return render(request, 'index.html')*

Maybe it will work for you.

Thanks




On Mon, Aug 19, 2019 at 4:17 PM Naty Mina  wrote:

> *,hi guys*
> finally i could run my project but when i'm trying to open the home page
> that built i get error template does not exist
> and when i look at the details i see that django.engine looked for the
> template when it''s not in.
> the html file is in the same directory as the views and that's when i want
> django to look for it.
> i need your help to fix that
> please
> i attached files so you can see
> *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/b1d04ad5-f3aa-454e-ba3f-8983c9201920%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%2BAqMUeZQydrHn7AWES5G-B1V5LsteoTsthkg5WuB71osXfOjw%40mail.gmail.com.


Re: Code wont let me pull data to modelform from database, :(

2019-08-16 Thread RONAK JAIN
Hey ,

I think ,  i am not sure but got it so here you need to develop url from
the templates it's mean you are trying your url from tenplate page Right?


So ,  if you are connecting with them i think you need to correction on
your url form...


Please let me first ,  i am getting right then,  i will try to solve your
conditions.


Thanks

On Sat, 17 Aug 2019, 01:58 Kean,  wrote:

> Hi,
>
> New to Django, and am really really struggling which something maybe
> others may find really easy..
>
> I've created a custom database model, and the subsequent modelform
> template to enable creating a record and storing to database.
> However I am struggling to create two instances, where the user, retrieves
> a specific record created by them and can edit or delete this via a
> template.
>
> My setup is as follows:
>
> I have a url. In the body I have called each of the record to display with
> the objects. I then added a button for edit and delete to each record.
>
> My thought process was if the user presses the edit button, the user is
> directed to a URL which enables them to edit any of the existing objects
> details
> specifically around that record, and the edit url recognises the PK, and
> takes the user to only edit that record with that PK.
> Once in the modelform, they can see all the object related data, i.e name
> = John , Surname = Smith ... they can then change the data, and submit it
> to the database. The record is then stored with new data and same PK, into
> the databse and the user is then
> redirected  to the records overview page, to determine the next step, edit
> another record or delete.
>
>
> -- This is my button setup for the edit -
>
> template.
>
> 
>   Edit
>
>
> --- This is url path to get to the edit record url ---
>
>
> path('Business register/Business management/Admin/Edit or remove
> business/editbusiness', views.editbusiness, name='editbusiness'),
>
> --- This is the view I have created to extract retrieve the post request
> and render it to the editing template,
>
>
> def editbusiness(request):
> data = Businessownercreate.objects.all()
> if request.method == "POST":
> form = Businessownercreate(request.POST, instance=instance)
>
> if form.is_valid():
> form.save()
> return redirect("accounts:editremovebusiness")
> else:
> form =  forms.Businessownercreate()
> args = { "form": form }
> return render(request, 'editbusiness.html', args)
>
> --- This is the template that allows the user to edit the record via a
> modelform, based on the original Businessownercreate form, which just
> creates the nentity record.
>
> {% load static %}
>
>
> 
> 
>
> 
> {% csrf_token %}
> {{form.as_p}}
>
> 
> submit
> 
>
> Sorry for the long mail, and the detail, but it's tough starting out with
> a project, and im jut trying to grow and learn.
> Please can anyone provide any guidance on how I can resolve to pull the
> data to the edit modelform from the database and save the data, with final
> redirect.
>
> Best,
>
> K
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/451152f3-3582-4e91-a2ba-3cf56e89329e%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%2BAqMUcM28MvuX660HCrtZ07gbFhS7dP_j2iKAjXEBhbuRWs2w%40mail.gmail.com.


Re: use site's templates

2019-08-15 Thread RONAK JAIN
Hey ,


You can use for the load your base.html

 {% extends "project/base.html" %}

I will give some example for better understanding so, if you are trying to
Extend your html file in your index.html file so, you can write simply
according to me:
{% load static %}
{% extends 'base.html' %}


{% block content %}



{% endblock %}



I hope this is helpful...


Thanks


On Fri, Aug 16, 2019 at 12:01 AM dupakoor kannan 
wrote:

> Hi,
>
> I am trying to use a Django tip from stackoverflow
> https://stackoverflow.com/a/946397/4037275
>
> I have static css style sheets (static). I will use {% load static %}. Can
> I use this template approach in extending templates {% extends
> "project/base.html" %}
>
> Can you give me few other examples of using this?
>
>
> Copied from the above stackoverflow link.
>
> There's a set of custom tags I use all over my site's templates. Looking
> for a way to autoload it (DRY, remember?), I found the following:
>
> from django import template
> template.add_to_builtins('project.app.templatetags.custom_tag_module')
>
> If you put this in a module that's loaded by default (your main urlconf
> for instance), you'll have the tags and filters from your custom tag module
> available in any template, without using {% load custom_tag_module %}.
>
> The argument passed to template.add_to_builtins() can be any module path;
> your custom tag module doesn't have to live in a specific application. For
> example, it can also be a module in your project's root directory (eg.
> 'project.custom_tag_module').
>
> Thank you
>
> Kannan
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADiZb_fDFdVzs2b3rt54BFa5_jxCiWs01NPHtnmhrZ%2BCEfJp7w%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/CA%2BAqMUeejwHwpH6o%3DDYobG2GkqFPQ0WJPm2dOE08stK%3DtT_-%3Dg%40mail.gmail.com.


Re: Exception value name is not defined

2019-08-15 Thread RONAK JAIN
Hey Kean,

What is the object here?




On Thu, Aug 15, 2019 at 11:37 PM Kean  wrote:

> Hi,
>
> I have written the following code in views.py
>
> def editremovebusiness(request):
> data = Businessownercreate.objects.all()
> context = {
> 'Creator': obj.Creator,
> 'Micro_Small_Medium': obj.Micro_Small_Medium,
> }
> return render(request, 'editremovebusiness.html', context={"data":data})
>
> when I save it and check the url
>
> it returns
>
> Exception Type: NameError
> Exception Value:
>
> name 'obj' is not defined
>
>
>
> Is anyone familiar with this issue, please advise cause and fix?
>
> Best,
>
> K
>
>
>
>
>
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/8b426d60-4a54-4ec4-b130-05c0ae69cdd3%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%2BAqMUdv39HYFE95ts%3DRyuJdtekr%3D6hPF1KicaaHvmh1FMrq%2Bw%40mail.gmail.com.


Re: Can't run manage.py

2019-08-15 Thread RONAK JAIN
You can do uninstall and try to do it again I think. you installed the
wrong version.

or if you will get again error please let me know I will connect with you
on TeamViewer and Zoom also.


Thank

On Thu, 15 Aug 2019, 18:01 chevalier,  wrote:

>
>
> On Wednesday, August 14, 2019 at 4:58:44 PM UTC-7, MATTHEW GODSTIME wrote:
>>
>> The error displayed is
>>
>>   ' couldn't import Django I'm sure if it's install or in my python path
>> or if forget to activate my virtual environment'
>>
>> I have Django installed and activate my virtualenv were it was installed
>> activated before the installation , I also have the path of the bin file in
>> my python path what could be the solution?
>>
>> I googled many help but were not clear I'm frustrated
>>
>
> You can check Django in terminal by
>
> py -m django --version
> It will give you the currently installed version of Django.
>
> If it is installed and you in your virtual environment, try going to previous 
> sub folder. There is a possibility that you have installed there.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/b5218f53-78f8-4a45-8eb1-6f6b1f9d5b09%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%2BAqMUdWpJzAM-KtvrBEb_dYMp-YEenaAiVfDoW9D_CXpGrJzA%40mail.gmail.com.


Re: Can't run manage.py

2019-08-15 Thread RONAK JAIN
Hey,

You can do simply first of all remove your virtualenv path write there.

rm -rf env (or whatever created name for environment..)


Then , again simply create your virtual path :
virtualenv  -p python3 env && source env/bin/activate


I think ,  you cando easily and if you will get any type of error please
let me know...



Thanks

On Thu, 15 Aug 2019, 05:29 MATTHEW GODSTIME,  wrote:

> The error displayed is
>
>   ' couldn't import Django I'm sure if it's install or in my python path
> or if forget to activate my virtual environment'
>
> I have Django installed and activate my virtualenv were it was installed
> activated before the installation , I also have the path of the bin file in
> my python path what could be the solution?
>
> I googled many help but were not clear I'm frustrated
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/28c8bd72-136e-44ac-8805-03f15498d9f8%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%2BAqMUdCRfaGu%3DER8G7m3Gf0qRFt5f_cD5Pw3UBftcGCftxSeg%40mail.gmail.com.


Re: operational error no such column: accounts_businessownercreate.id

2019-08-14 Thread RONAK JAIN
So you can conect with me on hangout...

On Thu, 15 Aug 2019, 00:47 RONAK JAIN,  wrote:

> I need your id and password
>
> On Thu, 15 Aug 2019, 00:45 Kean,  wrote:
>
>> HI Ronak,
>>
>> Ok, please can you guide me through how to do this, I have team viewer?
>>
>> Thanks,
>>
>> Kean
>> On 14 Aug 2019, at 20:12, RONAK JAIN  wrote:
>>
>> Okay,  so please conect with me on teamviewer...
>>
>> On Thu, 15 Aug 2019, 00:23 Kean,  wrote:
>>
>>> Hi,
>>>
>>> closed down instance django running
>>> deleted db.sqlite3
>>> run python3 manage.py makemigrations
>>> run python3 manage.py migrate
>>>
>>> all exceptions were handled and migrate file created.
>>>
>>> checked in admin on ‘myowndbase'…error still appears.
>>>
>>> Best,
>>>
>>>
>>> On 14 Aug 2019, at 19:35, Tosin Ayoola  wrote:
>>>
>>>  delete my sqlite.db file
>>>
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/2F780E21-2B62-46DD-A518-976E7C138350%40gmail.com
>>> <https://groups.google.com/d/msgid/django-users/2F780E21-2B62-46DD-A518-976E7C138350%40gmail.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%2BAqMUfQBg70rBaAmuMheBL7SRyAonQdESqvv7u9HO0Z2ixYzQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CA%2BAqMUfQBg70rBaAmuMheBL7SRyAonQdESqvv7u9HO0Z2ixYzQ%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/9196990F-9707-43B3-9744-76C47FD47C3B%40gmail.com
>> <https://groups.google.com/d/msgid/django-users/9196990F-9707-43B3-9744-76C47FD47C3B%40gmail.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%2BAqMUcteh72VZYS7%3D%2BJHSU7MMkMyRNtOGGkotqcyGiU8gYkGw%40mail.gmail.com.


Re: operational error no such column: accounts_businessownercreate.id

2019-08-14 Thread RONAK JAIN
I need your id and password

On Thu, 15 Aug 2019, 00:45 Kean,  wrote:

> HI Ronak,
>
> Ok, please can you guide me through how to do this, I have team viewer?
>
> Thanks,
>
> Kean
> On 14 Aug 2019, at 20:12, RONAK JAIN  wrote:
>
> Okay,  so please conect with me on teamviewer...
>
> On Thu, 15 Aug 2019, 00:23 Kean,  wrote:
>
>> Hi,
>>
>> closed down instance django running
>> deleted db.sqlite3
>> run python3 manage.py makemigrations
>> run python3 manage.py migrate
>>
>> all exceptions were handled and migrate file created.
>>
>> checked in admin on ‘myowndbase'…error still appears.
>>
>> Best,
>>
>>
>> On 14 Aug 2019, at 19:35, Tosin Ayoola  wrote:
>>
>>  delete my sqlite.db file
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/2F780E21-2B62-46DD-A518-976E7C138350%40gmail.com
>> <https://groups.google.com/d/msgid/django-users/2F780E21-2B62-46DD-A518-976E7C138350%40gmail.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%2BAqMUfQBg70rBaAmuMheBL7SRyAonQdESqvv7u9HO0Z2ixYzQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CA%2BAqMUfQBg70rBaAmuMheBL7SRyAonQdESqvv7u9HO0Z2ixYzQ%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/9196990F-9707-43B3-9744-76C47FD47C3B%40gmail.com
> <https://groups.google.com/d/msgid/django-users/9196990F-9707-43B3-9744-76C47FD47C3B%40gmail.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%2BAqMUemJod2Ps7tOhLdVkAPyhBZFpv6VoB8XRN%3DePuPQ6TRVw%40mail.gmail.com.


Re: operational error no such column: accounts_businessownercreate.id

2019-08-14 Thread RONAK JAIN
I think ,  getting same error..

On Thu, 15 Aug 2019, 00:43 Kean,  wrote:

> Hi,
>
> Thanks for the help, it is making progress I think.
> Since deleting and recreating, I now have a different error.
>
> Please see below:
>
> OperationalError at /admin/accounts/businessownercreate/
>
> no such table: accounts_businessownercreate
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/admin/accounts/businessownercreate/
> Django Version: 2.2.4
> Exception Type: OperationalError
> Exception Value:
>
> no such table: accounts_businessownercreate
>
> Exception Location: 
> /Users/ProductionEnv/Desktop/prj1/project/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py
> in execute, line 383
> Python Executable: /Users/ProductionEnv/Desktop/prj1/project/bin/python3
> Python Version: 3.7.4
>
> So when trying to access the table, I get the above error messages.
>
> Is there another step for me to undertake to resolve?
>
> Best,
>
> K
>
> On 14 Aug 2019, at 19:53, Kean  wrote:
>
> Hi,
>
> closed down instance django running
> deleted db.sqlite3
> run python3 manage.py makemigrations
> run python3 manage.py migrate
>
> all exceptions were handled and migrate file created.
>
> checked in admin on ‘myowndbase'…error still appears.
>
> Best,
>
>
> On 14 Aug 2019, at 19:35, Tosin Ayoola  wrote:
>
>  delete my sqlite.db file
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/04551BC1-7EE5-4504-9023-96DDC711432F%40gmail.com
> 
> .
>

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


Re: operational error no such column: accounts_businessownercreate.id

2019-08-14 Thread RONAK JAIN
Okay,  so please conect with me on teamviewer...

On Thu, 15 Aug 2019, 00:23 Kean,  wrote:

> Hi,
>
> closed down instance django running
> deleted db.sqlite3
> run python3 manage.py makemigrations
> run python3 manage.py migrate
>
> all exceptions were handled and migrate file created.
>
> checked in admin on ‘myowndbase'…error still appears.
>
> Best,
>
>
> On 14 Aug 2019, at 19:35, Tosin Ayoola  wrote:
>
>  delete my sqlite.db file
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/2F780E21-2B62-46DD-A518-976E7C138350%40gmail.com
> 
> .
>

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


Re: operational error no such column: accounts_businessownercreate.id

2019-08-14 Thread RONAK JAIN
If you will not get please let me know, I will help you on Teamviewer...

On Wed, Aug 14, 2019 at 11:48 PM RONAK JAIN  wrote:

> Hey, could you delete your migrations files and again try to create
> makemigrations and migrate...
>
>
>
> Thanks
>
> On Wed, Aug 14, 2019 at 11:45 PM Kean  wrote:
>
>> Hi,
>>
>> Thanks for response. I have tried to migrate several times.
>> shell response from django is ‘No migrations to apply”
>>
>> Not sure if this is a bug in Django?
>>
>> Best,
>>
>> K
>>
>>
>> On 14 Aug 2019, at 19:12, Tosin Ayoola  wrote:
>>
>> Did u do d python manage.py makemigrations, python manage.py migrate,
>> that d main cause of diz type of errors
>>
>> On Aug 14, 2019 18:32, "Kean"  wrote:
>>
>> Hi,
>>
>> I'm new to django and python.
>>
>> I created a database, but Every time I access my database on the backend,
>> I get the no such column exists error.
>> I cant understand how a column i didn't create, exists in the database,
>> and is preventing dbase management.
>>
>> I have attached s.shot of the error.
>>
>> Im using the sqlite3 db with version django version 2.2.3
>>
>> Please can anyone help with ID, root cause and fix?
>>
>> Best,
>>
>> Kean
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/8c5e159a-a6b2-4cfb-acf9-5019a1a599ae%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/8c5e159a-a6b2-4cfb-acf9-5019a1a599ae%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/CAHLKn72oj4MoXGCHpZj6S6QijMb7ixx-MREszxD8XHo3hptraA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CAHLKn72oj4MoXGCHpZj6S6QijMb7ixx-MREszxD8XHo3hptraA%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/1B59D49C-B1DE-4475-88C7-2C521C5F0DF6%40gmail.com
>> <https://groups.google.com/d/msgid/django-users/1B59D49C-B1DE-4475-88C7-2C521C5F0DF6%40gmail.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%2BAqMUe90JJYB%3DYRwH6zH%3DbefptkcXACE6YoaZW8k5_e-yKGkA%40mail.gmail.com.


Re: operational error no such column: accounts_businessownercreate.id

2019-08-14 Thread RONAK JAIN
Hey, could you delete your migrations files and again try to create
makemigrations and migrate...



Thanks

On Wed, Aug 14, 2019 at 11:45 PM Kean  wrote:

> Hi,
>
> Thanks for response. I have tried to migrate several times.
> shell response from django is ‘No migrations to apply”
>
> Not sure if this is a bug in Django?
>
> Best,
>
> K
>
>
> On 14 Aug 2019, at 19:12, Tosin Ayoola  wrote:
>
> Did u do d python manage.py makemigrations, python manage.py migrate, that
> d main cause of diz type of errors
>
> On Aug 14, 2019 18:32, "Kean"  wrote:
>
> Hi,
>
> I'm new to django and python.
>
> I created a database, but Every time I access my database on the backend,
> I get the no such column exists error.
> I cant understand how a column i didn't create, exists in the database,
> and is preventing dbase management.
>
> I have attached s.shot of the error.
>
> Im using the sqlite3 db with version django version 2.2.3
>
> Please can anyone help with ID, root cause and fix?
>
> Best,
>
> Kean
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/8c5e159a-a6b2-4cfb-acf9-5019a1a599ae%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/CAHLKn72oj4MoXGCHpZj6S6QijMb7ixx-MREszxD8XHo3hptraA%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/1B59D49C-B1DE-4475-88C7-2C521C5F0DF6%40gmail.com
> 
> .
>

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


Re: Regarding to Correction my error

2019-08-14 Thread RONAK JAIN
Thanks for help...

On Wed, Aug 14, 2019 at 7:27 PM Manzur Alahi  wrote:

> For image: use *** src = "{{course.img.url}}"
>
> for the horizontal list issue, that seems to be an issue with html or css
> styling, sorry to say i'm not good with these things.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a4770184-d6dc-4b1e-b329-0dd7cbf4d8e8%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%2BAqMUf0pdtofFPrYDX%3DYVJ%2BUDahsR5BLJsRcXV018RE%3DNQppg%40mail.gmail.com.


Re: Job opporunity for an experienced Django/Python software engineer - Corvallis, OR (Remote possible)

2019-07-26 Thread RONAK JAIN
Thanks, Nikolas Stevenson-Molnar.

I don't have update resume yet so please go best representing my profile
here,

https://www.linkedin.com/in/ronakjainpython/



Thanks & Regards
Ronak Jain

On Fri, Jul 26, 2019 at 7:50 AM Nikolas Stevenson-Molnar <
nik.mol...@consbio.org> wrote:

> The Conservation Biology Institute (CBI) is a non-profit organization of
> scientists, GIS analysts, spatial modellers, and software engineers. Our
> software development team works closely with scientists and stakeholders to
> build software that helps them better understand and communicate their
> data, and make scientifically-informed decisions.
>
> We're currently looking to hire at least one, and possibly two experienced
> full stack engineers with Python/Django experience. We use Django
> extensively on the backend, and React on front end in our newer projects
> (we have an older project using Dojo, but we have plans to migrate that to
> React as well). We also use Golang for some backend components. Most of our
> applications are GIS-focused, and we use Leaflet and Mapbox GL JS for
> mapping.
>
> The full job description is attached, including instructions to apply. Our
> office is located in Corvallis, OR. We are open to hiring remote positions,
> and currently have 2 remote software engineers on the team, including me.
> Candidates must be able to work in the US.
>
> Thanks,
> Nik
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADW6jR%3DYE71DitXO-LPpu3WKTjUv0%3DLif_2xzKuF_7WScNTXGA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CADW6jR%3DYE71DitXO-LPpu3WKTjUv0%3DLif_2xzKuF_7WScNTXGA%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%2BAqMUdLBWe0PmN_aMNN9T%2BcSbr84Q%3DQs8dtsPbXt4PvQMbDoQ%40mail.gmail.com.


Regarding to trying to make Django rest Api for eCommerce project.

2019-06-06 Thread RONAK JAIN
Dear All,

*Note: trying to make Django rest Api for eCommerce project.*

I am working drf eCommerce project.

I am trying to make product rating and review Django Rest Api.

*Models.py*

class Product_review(models.Model):
user_id = models.ForeignKey(User_registrations,
on_delete=models.CASCADE)
product_id = models.ForeignKey(Techshop, on_delete=models.CASCADE)
product_rating = models.IntegerField()
product_created_rating_date = models.DateTimeField(auto_now_add=True,
null=True)
product_review  = models.ForeignKey(on_delete=models.SET_DEFAULT,
null=True, default = "NA")
product_created_review_date = models.DateTimeField(auto_now_add=True,
null=True)

Serializer.py



class Product_review(serializers.Serializer):
product_code = models.IntegerField(null=True)
product_rating = models.IntegerField()
product_review  = models.TextField(max_length=3000)
product_created_rating_date = models.DateTimeField(auto_now_add=True,
null=True)
def validate(self, data,email):
product_code = data.get("product_code")
product_rating = data.get("product_rating")
product_review  = data.get("product_review")
user_data = User_registrations.objects.get(email=email)
product_code = Techshop.objects.get(product_code, product_rating,
user_data)
if int(product_rating) <= 5 and int(product_rating) => 1:
if product_rating == 1:
print("Poor")
elif product_rating == 2:
print("Average")
elif product_rating == 3:
print("Good")
elif product_rating == 4:
print("Very Good")
elif product_rating == 5:
print("Excellent")
else:
continue
else:
continue
*views.py *

class Product_reviewView(APIView):
def post(self,request):
try:
rt = TokenAuthentication()
g = rt.authenticate(request)
if g[1]:
serializer = Product_review.validate(None,request.data,
g[0])
return Response(serializer,status=HTTP_200_OK)
else:
raise serializers.ValidationError(g)
except Exception as e:
raise serializers.ValidationError(e)

I need to find ratings for particular user and my side I am taking uniqe as
product code.


Thanks
django user

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


How to design database for django rest api

2019-05-05 Thread RONAK JAIN
Hello,


I am trying to start a new website in Django so the whole website my task
is here make Django rest API. I have an angular template which is related
to education + eCommerce there.
So, I am not getting here how can I start to make Django rest API and what
is my first step?  because of mostly part there in the angular template.

Note: I tried to concentrate make design database but, I am not getting
where and what can I start here database design because there only I was
looking at my task form registration.

please give me initial steps.


Thanks and Regards
Django_User

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


Re: django assignment

2018-10-27 Thread RONAK JAIN
Why are you thinking this is cheating I have done there more think I need
idea for do better.
so , I was asking if you are thinking like that please don't give me answer.


Thank you
Ronak Jain

On Sun, Oct 28, 2018 at 10:59 AM Joel Mathew  wrote:

> Isn't this cheating? Why dont you complete your own assignment?
>
> Joel G Mathew
>
>
> On Sun, 28 Oct 2018 at 10:40, RONAK JAIN  wrote:
> >
> > Hi
> >
> >
> > Please help me out  this assignment urgent. How can I solve ?
> >
> >
> >
> >
> > Thanks
> > RJ
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Django users" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users+unsubscr...@googlegroups.com.
> > To post to this group, send email to django-users@googlegroups.com.
> > Visit this group at https://groups.google.com/group/django-users.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CA%2BAqMUfHh77Op6OVRnwFLnpuOdLueXyzT9M4Sqbi8wu7g9Q9dA%40mail.gmail.com
> .
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAA%3Diw_9pXPvEM%3DKYZmsoDp4vtRv8rNbHUijydKS1SfBv9Dw%3DFQ%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BAqMUfytrWWc6zsOckb-uaj9HrZW858RV9J%3DiBZ6mDoi%2BWawA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


django assignment

2018-10-27 Thread RONAK JAIN
Hi


Please help me out  this assignment urgent. How can I solve ?




Thanks
RJ

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


Python Django Test Instructions.docx
Description: MS-Word 2007 document


Re: Django dynamic form class creation at runtime

2018-10-22 Thread RONAK JAIN
You can create Model and configure admin then you will get your way.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BAqMUcyg0VP44xEh%2Bwh4%2BExWDgojTP%2B-k%3Dx7-DAHyUUiP_XQw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: saleor error NoReverseMatch at /en/

2018-09-04 Thread RONAK JAIN
I think should be there cot's issues look like that you should right there:




Thanks
Ronak Jain

On Tue, Sep 4, 2018 at 6:44 PM Ravi Kiran Katukam 
wrote:

> any one developed  kivy  app for enterprise needs along with django web
> need help
>
> On Tue, Sep 4, 2018 at 5:46 PM, Julio Biason 
> wrote:
>
>> Hey Tim,
>>
>> Are you sure your view is defined with spaces in the urls.py? Shouldn't
>> it be {% url 'manifest' %} instead, with no spaces around the name?
>>
>> On Tue, Sep 4, 2018 at 6:28 AM, Tim Vogt (Tim Vogt) 
>> wrote:
>>
>>> I have made saleor local
>>>
>>> after restart I get this error
>>>
>>> Tried to change the “ “ into ‘ ‘ bout before it worked.
>>>
>>> Any tips how to solve this?
>>>
>>> Tim
>>>
>>> NoReverseMatch at /en/
>>>
>>> Reverse for ' manifest ' not found. ' manifest ' is not a valid view 
>>> function or pattern name.
>>>
>>> Request Method: GET
>>> Request URL: http://localhost:8000/en/
>>> Django Version: 2.0.8
>>> Exception Type: NoReverseMatch
>>> Exception Value:
>>>
>>> Reverse for ' manifest ' not found. ' manifest ' is not a valid view 
>>> function or pattern name.
>>>
>>> Exception Location: 
>>> /Users/timvogt/virtualenvs/saleor/lib/python3.6/site-packages/django/urls/resolvers.py
>>> in _reverse_with_prefix, line 634
>>> Python Executable: /Users/timvogt/virtualenvs/saleor/bin/python3
>>> Python Version: 3.6.5
>>> Python Path:
>>>
>>> ['/Users/timvogt/Software_projects/saleor',
>>>  '/Users/timvogt/virtualenvs/saleor/lib/python36.zip',
>>>  '/Users/timvogt/virtualenvs/saleor/lib/python3.6',
>>>  '/Users/timvogt/virtualenvs/saleor/lib/python3.6/lib-dynload',
>>>  '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6',
>>>  '/Users/timvogt/virtualenvs/saleor/lib/python3.6/site-packages',
>>>  '/Users/timvogt/Software_projects/saleor']
>>>
>>> Server time: Tue, 4 Sep 2018 04:26:23 -0500
>>> Error during template rendering
>>> In template /Users/timvogt/Software_projects/saleor/templates/base.html,
>>> error at line *24*
>>> Reverse for ' manifest ' not found. ' manifest ' is not a valid view
>>> function or pattern name.
>>> 14 
>>> 15 
>>> 16  {% get_available_languages
>>> as LANGUAGES %} {% for lang_code, language_name in LANGUAGES %}
>>> 17  {% endfor %} {%
>>> endblock meta %} {% include 'favicon.html' %} {% render_bundle 'storefront'
>>> 'css' attrs='async' %} {% block stylesheet %}{% endblock stylesheet %} {%
>>> block meta_tags %}
>>> 18 
>>> 19 
>>> 20 
>>> 21 
>>> 22 >> %}"> {% endblock meta_tags %}
>>> 23
>>> 24 
>>> 25
>>> 26 
>>> 27 
>>> 30 
>>> 31
>>> 32 
>>> 33 {% block header %}
>>> 34 
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users+unsubscr...@googlegroups.com.
>>> To post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/F33E62F9-637C-4EB0-A1E0-CA36735500DF%40gmail.com
>>> <https://groups.google.com/d/msgid/django-users/F33E62F9-637C-4EB0-A1E0-CA36735500DF%40gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> *Julio Biason*, Sofware Engineer
>> *AZION*  |  Deliver. Accelerate. Protect.
>> Office: +55 51 3083 8101   |  Mobile: +55 51
>> *99907 0554*
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com

Re: Trying to update pip in a venv enviroment using python 3.7 but an error occur.

2018-09-04 Thread RONAK JAIN
I am not getting What you want install there ?

On Tue, Sep 4, 2018 at 6:44 PM Christian Haugland <
haugland.christ...@gmail.com> wrote:

> this is the output i get using python 3.7: any idea?
>
> (venv) D:\Code\CompanyVTC\venv\Scripts>python -m pip install --upgrade pip
> Collecting pip
>   Using cached
> https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.whl
> Installing collected packages: pip
>   Found existing installation: pip 10.0.1
> Uninstalling pip-10.0.1:
>   Successfully uninstalled pip-10.0.1
>   Rolling back uninstall of pip
> Exception:
> Traceback (most recent call last):
>   File
> "D:\Code\CompanyVTC\venv\lib\site-packages\pip-10.0.1-py3.7.egg\pip\_internal\basecommand.py",
> line 228, in main
> status = self.run(options, args)
>   File
> "D:\Code\CompanyVTC\venv\lib\site-packages\pip-10.0.1-py3.7.egg\pip\_internal\commands\install.py",
> line 335, in run
> use_user_site=options.use_user_site,
>   File
> "D:\Code\CompanyVTC\venv\lib\site-packages\pip-10.0.1-py3.7.egg\pip\_internal\req\__init__.py",
> line 49, in install_given_reqs
> **kwargs
>   File
> "D:\Code\CompanyVTC\venv\lib\site-packages\pip-10.0.1-py3.7.egg\pip\_internal\req\req_install.py",
> line 748, in install
> use_user_site=use_user_site, pycompile=pycompile,
>   File
> "D:\Code\CompanyVTC\venv\lib\site-packages\pip-10.0.1-py3.7.egg\pip\_internal\req\req_install.py",
> line 961, in move_wheel_files
> warn_script_location=warn_script_location,
>   File
> "D:\Code\CompanyVTC\venv\lib\site-packages\pip-10.0.1-py3.7.egg\pip\_internal\wheel.py",
> line 431, in move_wheel_files
> generated.extend(maker.make(spec))
>   File
> "D:\Code\CompanyVTC\venv\lib\site-packages\pip-10.0.1-py3.7.egg\pip\_vendor\distlib\scripts.py",
> line 403, in make
> self._make_script(entry, filenames, options=options)
>   File
> "D:\Code\CompanyVTC\venv\lib\site-packages\pip-10.0.1-py3.7.egg\pip\_vendor\distlib\scripts.py",
> line 307, in _make_script
> self._write_script(scriptnames, shebang, script, filenames, ext)
>   File
> "D:\Code\CompanyVTC\venv\lib\site-packages\pip-10.0.1-py3.7.egg\pip\_vendor\distlib\scripts.py",
> line 243, in _write_script
> launcher = self._get_launcher('t')
>   File
> "D:\Code\CompanyVTC\venv\lib\site-packages\pip-10.0.1-py3.7.egg\pip\_vendor\distlib\scripts.py",
> line 382, in _get_launcher
> result = finder(distlib_package).find(name).bytes
> AttributeError: 'NoneType' object has no attribute 'bytes'
>
> (venv) D:\Code\CompanyVTC\venv\Scripts>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/088f0761-28c6-45d5-9ab7-4a2f2ae69220%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BAqMUeq1GWvXxF877zew55CKL%3Dii9pNXo43MuEY%3DxNSMSNtfA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Trying to build a cart using django cart. "" error unhashable type dict ""

2018-09-04 Thread RONAK JAIN
Are you not using class ?

On Tue, Sep 4, 2018 at 6:44 PM carl collins 
wrote:

> Here is the code for view.py in my cart app  please help(also see the
> screenshot):
>
>
> from django.template import loader
> from django.http import HttpResponse
> from django.template.loader import render_to_string
> import django.template.loader
>
>
> from cart.cart import Cart
> from .models import Product
> '''from cart.models import Category, Product'''
>
>
> #gallerydefault view
> def index(request):
> #prepare the models
> #empty
> #prepare the template
> template = loader.get_template('templates/cart.html',
> dict(cart=Cart(request))  )
> #prepare the context
> context = {'request':request}
> return HttpResponse(template.render(context, request))
>
> def add_to_cart(request, product_id, quantity):
> product = Product.objects.get(id=product_id)
> cart = Cart(request)
> cart.add(product, product.unit_price, quantity)
>
> def remove_from_cart(request, product_id):
> product = Product.objects.get(id=product_id)
> cart = Cart(request)
> cart.remove(product)
>
>
> def get_cart(request):
>
> template = loader.get_template('templates/cart.html', dict(cart =
> Cart(request)))
>
> #prepare the context
> context = {'request':request}
> return HttpResponse(template.render(context, request))
> return HttpResponse(template.render(context, request))
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a78552f7-9973-456d-b0d5-79602f4bbf5c%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BAqMUfoUms07suSkNJuCCZMjn3iHAwqyonerU1K%2BE%3Dc%2B43m6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need help for saving JSON object into Django Model (class object)

2018-09-04 Thread RONAK JAIN
hello Sonali

Please use:
python manage.py makemigrations
python manage.py migrate


Thanks
Ronak Jain

On Tue, Sep 4, 2018 at 5:52 PM Sonali Vighne  wrote:

> Hi,
> I have create a model
>
> Models.py
>
> from django.db import models
> import datetime
> from django.utils import timezone
>
> class Question(models.Model):
> question_text = models.CharField(max_length=200)
> pub_date = models.DateTimeField('date published')
>
> def __str__(self):
> return self.question_text
>
> def was_published_recently(self):
> return self.pub_date >= timezone.now() - datetime.timedelta(days=1)
>
> using this model table created in database. I am creating REST API . I am
> passing in request body
>
> {
> "question": { "question_text":"Some question?"
>   "pub_date":timezone.now()
>}
> }
>
>
> I am getting this code, but how to save that data in existing model. So
> that I can save that info into database.
> i.e. want to save above data question object.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/9fdae6df-dd1c-4229-b6eb-f8349528b1e0%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/9fdae6df-dd1c-4229-b6eb-f8349528b1e0%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BAqMUf-%2Bm6Ph13vFGQ2qGqkxKfUybAD7Q4R7X%2BE4ZVYX-wNgA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Language code twice in url

2018-09-04 Thread RONAK JAIN
I am not getting direct  error because more time you will get this type of
error if you want to solve this one we can do connect on team viewer and
then Maybe, I will solve your error.


Thanks
Ronak Jain

On Tue, Sep 4, 2018 at 1:49 PM Kaelig  wrote:

> Debug is already set to True.. Even if I only put one url in urlpatterns,
> I get this error. I don't think it's from a wrong url mapping. It looks
> like the path is empty even if it should not (it should be /aves/ in this
> case)
>
> Le mardi 4 septembre 2018 10:13:59 UTC+2, RONAK JAIN a écrit :
>>
>> okay one more thing you can do please go to settings and look there
>> option DEBUG=False please do True.
>>
>> On Tue, Sep 4, 2018 at 1:41 PM Kaelig  wrote:
>>
>>> [image: error_message.png]
>>>
>>> Here is the error message I get
>>>
>>> --
>>> You received this message because you are subscribed 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 post to this group, send email to django...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/8591ce9c-4775-4bf4-b07c-d8571f2904cb%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/8591ce9c-4775-4bf4-b07c-d8571f2904cb%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/414bd9c4-6f93-468f-a408-ce9490805f36%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/414bd9c4-6f93-468f-a408-ce9490805f36%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BAqMUc81Tn_nWQ5dC%3D%2Bpu5Xys23xqy9mepL8nOdvgSj7%2Bxn%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Language code twice in url

2018-09-04 Thread RONAK JAIN
okay one more thing you can do please go to settings and look there option
DEBUG=False please do True.

On Tue, Sep 4, 2018 at 1:41 PM Kaelig  wrote:

> [image: error_message.png]
>
> Here is the error message I get
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/8591ce9c-4775-4bf4-b07c-d8571f2904cb%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: Language code twice in url

2018-09-04 Thread RONAK JAIN
Please analyse your url mapping in django..

Thanks

On Tue, Sep 4, 2018 at 1:40 PM Kaelig  wrote:

> [image: error_message.png]
>
> Here is the error message I got from debug
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d6731f16-6c3e-4999-9ab2-411f080f6ff0%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: text editor

2018-09-02 Thread RONAK JAIN
okay, Thanks


On Sun, Sep 2, 2018 at 7:29 PM Kasper Laudrup  wrote:

> Hi Ronak,
>
> On 02/09/2018 14.57, RONAK JAIN wrote:
> > okay Thanks
> > *Portfolio Page *
> > There are portfolio images and categories above it. We want to do the
> same
> > So new model is required Category  and a relationship between Category
> and
> > projects So the portfolio page should load from our db*.*
> > *1.   How to make relationship category and project ?*
> > *2. How can I load from our db ?*
> >
>
> I'm sorry, but I really don't understand what your issue is.
>
> You can definitely make a relationship between your Category and Project
> model.
>
> You can load from you database the same way you would use any other
> database model in Django.
>
> I'm afraid I cannot help you. Maybe someone else can understand what you
> are trying to achieve and what your challenges are.
>
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/987034ad-bd86-fe7c-f998-8926ae6c9fdb%40stacktrace.dk
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: text editor

2018-09-02 Thread RONAK JAIN
Hello Kasper


can I share me my screen ?

Thanks
Ronak Jain

On Sun, Sep 2, 2018 at 5:51 PM Kasper Laudrup  wrote:

> Hi Vishal,
>
> On 02/09/2018 13.48, vishal sharma wrote:
> > Hi All,
> > How to upload files back to node server. I am new in ApI I am using the
> > Django where I am downloading files from node server and will process
> > videos files once processing will be done will upload videos back to
> server.
>
> So, if I understand correctly, you are downloading some video files from
> a node.js server, processing them and now want to upload them again?
>
> What does Django have to do with that? Why even involve Django in that,
> it seems completely unrelated. Just write a Python (or whatever) script
> for that.
>
> > Also, How to work with internal files in Django I am running my script
> > locally it is working fine but when I am running these script in Django I
> > am getting an error.
>
> I have no idea what you mean by "internal files". What script are you
> trying to run, what do you mean by "running it in Django"? What error
> are you getting?
>
> You need to be a lot more specific if you want help.
>
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/f5b518f0-3d10-9846-3c05-e5b74f301230%40stacktrace.dk
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: text editor

2018-09-02 Thread RONAK JAIN
can you come on Skype or teamviewer.

Thanks
Ronak Jain

On Sun, Sep 2, 2018 at 3:04 PM Kasper Laudrup  wrote:

>
>
> On 02/09/2018 07.50, RONAK JAIN wrote:
> > Atom is best editor.
> >
>
> No, no, no. Everyone knows emacs is the best editor.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5cd2fd77-b0f7-49c4-c2dc-74f87f17609c%40stacktrace.dk
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: Django templates render

2018-09-01 Thread RONAK JAIN
Thanks for reply
Firar of all i need here I want to make relation between projects and
categories.
You can look attached HTML page picture  there categories parts three
attributes digital, print or branding and projects are there show pictures
or pictures name.
1. How can I make expect relation between in models ?
2. How can i do HTML page should load from our db ?


Thanks
Ronak Jain


On Sun, 2 Sep 2018, 2:01 a.m. Jason,  wrote:

> I'm sorry, I have no idea what you're trying to do.  what exactly is
> correct relationship and what is different from the render output that you
> desire?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/3136ddd9-b931-40c6-b7bf-9c4834e0e23a%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/3136ddd9-b931-40c6-b7bf-9c4834e0e23a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: text editor

2018-09-01 Thread RONAK JAIN
Both of the same atom is best and option sublime or Pycharm.


Thanks
Ronak Jain

On Sun, 2 Sep 2018, 11:25 a.m. sankar ardhas, 
wrote:

> Thanks for response.. for Windows?
>
>
> On Sep 2, 2018 11:21 AM, "RONAK JAIN"  wrote:
>
>> Atom is best editor.
>>
>> On Sun, 2 Sep 2018, 11:11 a.m. sankar ardhas, 
>> wrote:
>>
>>>
>>> Hi to all,
>>> Which is the best editor for django framework  in Ubuntu os
>>> 18.04
>>>
>>> Get Outlook for Android <https://aka.ms/ghei36>
>>>
>>>
>>>
>>>
>>> On Sun, Sep 2, 2018 at 1:46 AM +0530, "RONAK JAIN" <
>>> jainronak...@gmail.com> wrote:
>>>
>>> Namaste !!
>>>>
>>>> Dear ,
>>>>
>>>> I have two models categories and Project.
>>>>
>>>>  created like that :
>>>>
>>>> class Category(models.Model):
>>>> categorys = models.ManyToManyField('Category',blank=True)
>>>> name = models.CharField(max_length=100)
>>>> created_at = models.DateTimeField(auto_now=False, auto_now_add=True)
>>>> updated_at = models.DateTimeField(auto_now=True)
>>>>
>>>>
>>>>
>>>> class Meta:
>>>> verbose_name_plural = "Categories"
>>>>
>>>> def __str__(self):
>>>> return self.name
>>>>
>>>> def __unicode__(self):
>>>> return self.categorys
>>>>
>>>> class Project(models.Model):
>>>> categorys = models.ManyToManyField('Category',blank=True)
>>>> name = models.CharField(max_length=100)
>>>> description = models.CharField(max_length=100)
>>>> created_at = models.DateTimeField(auto_now=False, auto_now_add=True)
>>>> updated_at = models.DateTimeField(auto_now=True)
>>>> photo = models.ImageField(upload_to="pictures")
>>>>
>>>>
>>>> def __str__(self):
>>>> return self.name
>>>>
>>>> def __unicode__(self):
>>>> return self.categorys
>>>>
>>>> *and Views I did here :*
>>>>
>>>> *from web.models import Category,Project*
>>>>
>>>> class Portfolio(TemplateView):
>>>> template_name = "web/protfolio.html"
>>>>
>>>> def post(self, request, *args, **kwargs):
>>>> context = self.get_context_data()
>>>> return super(TemplateView, self).render_to_response(context)
>>>>
>>>> def portfolio(request):
>>>>   context = RequestContext(request)
>>>>   # Project_list = Project.objects.order_by('-likes')[:3]
>>>>   # context_dict = {'Project': project_list}
>>>>   # return render(template_name, context_dict, context
>>>>   brand_list = Category.objects.all()
>>>>   return render(template_name, {'brand_list' : brand_list},
>>>> context)
>>>>
>>>> *I need correct relationship both I mean project and categories. How
>>>> can I do correct here ? *
>>>> Note : I attached picture please analyse briefly.
>>>>
>>>> How to do approch html page and   I want  the html(view) page should
>>>> load from our db.
>>>> please give me quickly answer.
>>>> How can i do ?
>>>>
>>>>
>>>> Thanks
>>>> Ronak
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Django users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to django-users+unsubscr...@googlegroups.com.
>>>> To post to this group, send email to django-users@googlegroups.com.
>>>> Visit this group at https://groups.google.com/group/django-users.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/63ecd6f1-411a-4581-b245-296efbd49303%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/django-users/63ecd6f1-411a-4581-b245-296efbd49303%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>&g

Re: text editor

2018-09-01 Thread RONAK JAIN
Atom is best editor.

On Sun, 2 Sep 2018, 11:11 a.m. sankar ardhas, 
wrote:

>
> Hi to all,
> Which is the best editor for django framework  in Ubuntu os
> 18.04
>
> Get Outlook for Android <https://aka.ms/ghei36>
>
>
>
>
> On Sun, Sep 2, 2018 at 1:46 AM +0530, "RONAK JAIN"  > wrote:
>
> Namaste !!
>>
>> Dear ,
>>
>> I have two models categories and Project.
>>
>>  created like that :
>>
>> class Category(models.Model):
>> categorys = models.ManyToManyField('Category',blank=True)
>> name = models.CharField(max_length=100)
>> created_at = models.DateTimeField(auto_now=False, auto_now_add=True)
>> updated_at = models.DateTimeField(auto_now=True)
>>
>>
>>
>> class Meta:
>> verbose_name_plural = "Categories"
>>
>> def __str__(self):
>> return self.name
>>
>> def __unicode__(self):
>> return self.categorys
>>
>> class Project(models.Model):
>> categorys = models.ManyToManyField('Category',blank=True)
>> name = models.CharField(max_length=100)
>> description = models.CharField(max_length=100)
>> created_at = models.DateTimeField(auto_now=False, auto_now_add=True)
>> updated_at = models.DateTimeField(auto_now=True)
>> photo = models.ImageField(upload_to="pictures")
>>
>>
>> def __str__(self):
>> return self.name
>>
>> def __unicode__(self):
>> return self.categorys
>>
>> *and Views I did here :*
>>
>> *from web.models import Category,Project*
>>
>> class Portfolio(TemplateView):
>> template_name = "web/protfolio.html"
>>
>> def post(self, request, *args, **kwargs):
>> context = self.get_context_data()
>> return super(TemplateView, self).render_to_response(context)
>>
>> def portfolio(request):
>>   context = RequestContext(request)
>>   # Project_list = Project.objects.order_by('-likes')[:3]
>>   # context_dict = {'Project': project_list}
>>   # return render(template_name, context_dict, context
>>   brand_list = Category.objects.all()
>>   return render(template_name, {'brand_list' : brand_list},
>> context)
>>
>> *I need correct relationship both I mean project and categories. How can
>> I do correct here ? *
>> Note : I attached picture please analyse briefly.
>>
>> How to do approch html page and   I want  the html(view) page should load
>> from our db.
>> please give me quickly answer.
>> How can i do ?
>>
>>
>> Thanks
>> Ronak
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/63ecd6f1-411a-4581-b245-296efbd49303%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/63ecd6f1-411a-4581-b245-296efbd49303%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/39ABAA35669F59A4.eb8de1ab-f7fe-4f09-ac86-ab24def151d1%40mail.outlook.com
> <https://groups.google.com/d/msgid/django-users/39ABAA35669F59A4.eb8de1ab-f7fe-4f09-ac86-ab24def151d1%40mail.outlook.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

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