Re: Venv

2019-03-30 Thread Gurmeet Kaur
Go to scripts/activate.bat. it shud activate the ebv

On Sat, Mar 30, 2019, 2:32 PM John  wrote:

> Good evening
>
> I've created and activated venv like this:
> $ python3 -m venv 
> $ source /bin/activate
>
> Now Ive ‘deactivate’ the venv
>
> How do I re-activate 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 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/EA2E8453-8CF9-4F32-9EB6-D364C71D3FD4%40gmail.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/CAEbKJViz6EnjbMLwHkr9FSveGd3BZgbgYzL97J%3D7CQavg_YX1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to pass context value from views.py to getElementById in JavaScript?

2019-05-03 Thread Gurmeet Kaur
I have done this in my project. We converted the object ( or context
object) that you want to pass in list object in python function and then
casted it with Json response object.

Something like below:

 myqueryset_new = list(myqueryset1)
finalmyqueryset = JsonResponse(myqueryset_new, safe=False)
return finalmyqueryset

and this finalmyqueryset object will come in data when you will try to call
this view.py function using ajax.

Let me know if it works for you.

On Fri, May 3, 2019 at 10:41 AM Mayur Bagul  wrote:

> I don't want to anything in context because I already passing value of
> database inside it.
>
> What I want that how I can pass that context to JavaScript
> getElementById().innerHTML='context'
>
> Like 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 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/44fca221-7061-4af7-822d-914778eb7f20%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/CAEbKJVg9sUvSY8fJ6-6Eb3D9TUuSpf-d1PtO92sMCwytmPVKGA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to pass context value from views.py to getElementById in JavaScript?

2019-05-06 Thread Gurmeet Kaur
Hi Mayur,

For your question - I would suggest you to create a situation like how will
you call a function from views.py using ajax from a js file for the same
page?

And then you will understand the need of ajax and then will understand how
you can get the data from views.py function in a js function.

Hope this helps and if you need some more info from my end, let me know.



thanks,
Gurmeet Kaur

On Sun, May 5, 2019 at 1:59 AM Mayur Bagul  wrote:

> hi john,
>
> thanks for help.
> i new to django so i dont know how its work and how its syntax  is. until
> i found resource and learn it.
> im not getting your solution but i will search and try to learn it.
>
> thanking you.
>
>
> On Fri, May 3, 2019 at 9:05 PM John Bagiliko <
> john.bagil...@aims-senegal.org> wrote:
>
>> import serializers from django.core
>> You can simply use the serializers.serialize method to do this. No need
>> to use Restframework.
>>
>> On Fri, May 3, 2019, 3:25 PM John Bagiliko <
>> john.bagil...@aims-senegal.org> wrote:
>>
>>> Dump this result into json and render it on a page. Use AJAX to get this
>>> json data in JavaScript.
>>>
>>> On Fri, May 3, 2019, 2:41 PM sachinbg sachin 
>>> wrote:
>>>
>>>> If u want to use that context in html means for I context ,I.user
>>>> name,i.products like that u can use
>>>>
>>>> On Fri, May 3, 2019, 8:09 PM sachinbg sachin >>> wrote:
>>>>
>>>>> In JavaScript I don't know buddy
>>>>>
>>>>> On Fri, May 3, 2019, 6:33 PM Ravi Kumar >>>>
>>>>>> Try to use ajax
>>>>>>
>>>>>> On Fri 3 May, 2019 5:42 pm Mayur Bagul >>>>>
>>>>>>> Hello community,
>>>>>>>
>>>>>>> I have stored single value from database inside a variable which is
>>>>>>> playing role of context inside views.py function.
>>>>>>>
>>>>>>> Now I want to use this context(which holds single value) in
>>>>>>> JavaScript to change specific HTML content of template which will give 
>>>>>>> me
>>>>>>> desired webpage.
>>>>>>>
>>>>>>> I Searched on Google but I didn't found any useful tutorial or
>>>>>>> solution on specified problem.
>>>>>>>
>>>>>>> I'm looking forward to get solution from community.
>>>>>>>
>>>>>>> Thanking 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 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/37395263-cf1d-4a7d-ad51-911e68da810b%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/CAANT8EFTTjuSXF5U87jX_VDwu6yMZpHN3GcbJ-7zBpTU5YPm2g%40mail.gmail.com
>>>>>> <https://groups.google.com/d/msgid/django-users/CAANT8EFTTjuSXF5U87jX_VDwu6yMZpHN3GcbJ-7zBpTU5YPm2g%40mail.gmail.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

Re: Django framework on Windows OS

2020-03-17 Thread Gurmeet Kaur
Yes, I have my project installed on Windows IIS. Please let us know what
issue are you facing.


Thanks,
Gurmeet Kaur

On Tue, Mar 17, 2020 at 9:34 PM chucks ogwo  wrote:

> Does anyone here use Django on windows? Cos I have been having a series of
> errors since I started using Django on Windows, even while using the
> windows commands and it has really stunted my learning process of the
> 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/b61cb0a4-4145-4a87-a4fc-dc9c93cd9a5b%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/b61cb0a4-4145-4a87-a4fc-dc9c93cd9a5b%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/CAEbKJViRA8e2jgVAAKA92%3DQn2kZfXk0CvRRCVAbqmPtcCS4Kiw%40mail.gmail.com.


Implement querystring using Search option + Pagination

2020-04-27 Thread Gurmeet Kaur
Hi All,

I have a situation where currently, I am showing data using views.py
function on the template and the template shows data on the page.

The html page also has search dropdowns and those dropdowns are getting
data from the landing view function itself.

Note - This landing function is the one that is providing data to the
page + options in dropdown menus.

Also, the pagination has been implemented in the page which also changes
when the dropdown option is chosen.

Is there a way that instead of managing this from template side, can I
manage the pagination(when dropdown is chosen and when not) + dropdown
option from views side?

Thanks,
Gurmeet Kaur

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


Re: Unable to establish odbc connection to MS SQL Server

2020-04-27 Thread Gurmeet Kaur
Hi There,

I have also implemented this in my project. The code in my settings.py is
below. You could also try the same.

DATABASES = {
'default': {
'ENGINE': 'sql_server.pyodbc',
'NAME': 'MyDbName',
'USER': 'user',
'PASSWORD': 'password',
'HOST': 'DbHost',
'OPTIONS': {
'driver': 'ODBC Driver 13 for SQL Server',
'unicode_results': True,

},
}
}

On Mon, Apr 27, 2020 at 10:22 PM Kirk Brown 
wrote:

> I'm getting an error when I try to runserver. Here is my code in manage.py:
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'sql_server.pyodbc',
> 'NAME': 'database',
> 'HOST': 'localhost',
> 'USER': 'user',
> 'PASSWORD': 'password',
>
> 'OPTIONS': {'ODBC Driver 17 for SQL Server',
> }
> }
> }
>
>
> And here is the error:
>
> (venv) C:\Users\Kirk\PycharmProjects\PyShop>manage.py runserver
> Unhandled exception in thread started by  check_errors..wrapper at 0x01770CD61438>
> Traceback (most recent call last):
>   File
> "C:\Users\Kirk\PycharmProjects\PyShop\venv\lib\site-packages\django\utils\autoreload.py",
> line 225, in wrapper
> fn(*args, **kwargs)
>   File
> "C:\Users\Kirk\PycharmProjects\PyShop\venv\lib\site-packages\django\core\management\commands\runserver.py",
> line 109, in inner_run
> autoreload.raise_last_exception()
>   File
> "C:\Users\Kirk\PycharmProjects\PyShop\venv\lib\site-packages\django\utils\autoreload.py",
> line 248, in raise_last_exception
> raise _exception[1]
>   File
> "C:\Users\Kirk\PycharmProjects\PyShop\venv\lib\site-packages\django\core\management\__init__.py",
> line 337, in execute
> autoreload.check_errors(django.setup)()
>   File
> "C:\Users\Kirk\PycharmProjects\PyShop\venv\lib\site-packages\django\utils\autoreload.py",
> line 225, in wrapper
> fn(*args, **kwargs)
>   File
> "C:\Users\Kirk\PycharmProjects\PyShop\venv\lib\site-packages\django\__init__.py",
> line 24, in setup
> apps.populate(settings.INSTALLED_APPS)
>   File
> "C:\Users\Kirk\PycharmProjects\PyShop\venv\lib\site-packages\django\apps\registry.py",
> line 112, in populate
> app_config.import_models()
>   File
> "C:\Users\Kirk\PycharmProjects\PyShop\venv\lib\site-packages\django\apps\config.py",
> line 198, in import_models
> self.models_module = import_module(models_module_name)
>   File
> "C:\Users\Kirk\AppData\Local\Programs\Python\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 967, in
> _find_and_load_unlocked
>   File "", line 677, in _load_unlocked
>   File "", line 728, in exec_module
>   File "", line 219, in
> _call_with_frames_removed
>   File
> "C:\Users\Kirk\PycharmProjects\PyShop\venv\lib\site-packages\django\contrib\auth\models.py",
> line 2, in 
> from django.contrib.auth.base_user import AbstractBaseUser,
> BaseUserManager
>   File
> "C:\Users\Kirk\PycharmProjects\PyShop\venv\lib\site-packages\django\contrib\auth\base_user.py",
> line 47, in 
> class AbstractBaseUser(models.Model):
>   File
> "C:\Users\Kirk\PycharmProjects\PyShop\venv\lib\site-packages\django\db\models\base.py",
> line 101, in __new__
> new_class.add_to_class('_meta', Options(meta, app_label))
>   File
> "C:\Users\Kirk\PycharmProjects\PyShop\venv\lib\site-packages\django\db\models\base.py",
> line 305, in add_to_class
> value.contribute_to_class(cls, name)
>   File
> "C:\Users\Kirk\PycharmProjects\PyShop\venv\lib\site-packages\django\db\models\options.py",
> line 203, in contribute_to_class
> self.db_table = truncate_name(self.db_table,
> connection.ops.max_name_length())
>   File
> "C:\Users\Kirk\PycharmProjects\PyShop\venv\lib\site-packages\django\db\__init__.py",
> line 33, in __getattr__
> return getattr(connections[DEFAULT_DB_ALIAS], item)
>   File
> "C:\Users\Kirk\PycharmProjects\PyShop\venv\lib\site-packages\django\db\utils.py",
> line 203, in __getitem__
> conn = backend.DatabaseWrapper(db, alias)
>   File
> "C:\Users\Kirk\PycharmProjects\PyShop\venv\lib\site-packages\sql_server\pyodbc\base.py",
> line 193, in __init__
> self.driver_charset = opts.get('driver_charset', None)
> AttributeError: 'set' object has no attribute 'get'
>
>
> Any help is much appreciated. 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/7f003a10-2c5e-472f-9bdc-eca8a2e277c1%40googlegroups.com
> 
> .
>

-- 
You received this me

Re: Re : how to deploy django project on iis windows server

2020-07-03 Thread Gurmeet Kaur
Hi,

It shows your static files and folders are not configured in IIS. You can
find the whole process step by step at -

https://www.mattwoodward.com/2016/07/23/running-a-django-application-on-windows-server-2012-with-iis/


It is very cleanly explained here.

On Fri, Jul 3, 2020 at 5:05 PM Avi shah  wrote:

> I am getting the error message while i have deployed the django project on
> my iis windows server , the error in the console log is this :
>
> And the project is working fine on the servers localhost , only having an
> issue while it is on the url/domain
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/b3c78e55-927f-47db-9966-1ba9acd0e92fn%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/CAEbKJVhzjiNgApLVt2xL9PUHrtQS2PfaY5_KcVFWbCNoqXjG1w%40mail.gmail.com.


Re: Required Django Programmer for freelancer

2020-07-08 Thread Gurmeet Kaur
Hi All,

I am also interested in this project.


Thanks,
Gurmeet Kaur

On Wed, Jul 8, 2020 at 8:05 AM Ali Murtuza  wrote:

> Hello I am interested in this project
>
> On Wed, 8 Jul 2020 at 3:06 PM, vishal sharma  wrote:
>
>> I am interested in this position. I have an experience in Django,
>> Python,AWS,Pandas,Numpy, shell,bash, Angular, HTML, css.
>>
>> On Wed, 8 Jul 2020 at 3:13 PM, Ajeet Kumar Gupt 
>> wrote:
>>
>>> Dear Team,
>>>
>>> I require Django programmers for an HR portal like leave request, HRMS.
>>>
>>> *System Requirements:*
>>>
>>> *1. Main Database :* Main app only for the authentication purpose and
>>> employee information take it from the oracle ebs system by API.
>>>
>>> *2. Leave Application System:* User login and validate details from the
>>> main app point no.1 apply the leave and send for the approver with history
>>> details
>>>
>>> *3. SCR application :* Here also a  approval and rejection process with
>>> customized notification based on company profile.
>>>
>>> *Note:* Single Sign On and single Employee Information no need to
>>> create in every app for the user profile. I need to create the only Main
>>> App / Main Database.
>>>
>>> Any person have interested please let me know and give me the demo on
>>> zoom meeting as soon as possible.
>>>
>>>
>>>
>>> *Thanks & Regards*
>>> Ajit
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> 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%2BTqRstOCEpZsnpq%3DyJkgqRRXY-UBqUMMxX%2BaM-Mt7Q-pBejoQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CA%2BTqRstOCEpZsnpq%3DyJkgqRRXY-UBqUMMxX%2BaM-Mt7Q-pBejoQ%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/CADdVhnZfqn5uKBJd2578v0CHCnzyrur1Hk42oM%2BVMY_K0mJOkw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CADdVhnZfqn5uKBJd2578v0CHCnzyrur1Hk42oM%2BVMY_K0mJOkw%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%2BGgMvXPJBSzmfhnSHCCBky8Pn7mSbYM53R1bsrr3%3DgJR0eZVw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CA%2BGgMvXPJBSzmfhnSHCCBky8Pn7mSbYM53R1bsrr3%3DgJR0eZVw%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/CAEbKJViJiJGc%3DFMJ4%2BZDMHvb7UaL-Ldwg7NW45EH2cP2kStBGQ%40mail.gmail.com.


Re: Data Science and sql problem

2020-07-26 Thread Gurmeet Kaur
you could try using connection and cursor to connect nd then pandas to read
csv using readcsv function

On Sun, Jul 26, 2020, 11:59 AM Prashant Singh 
wrote:

> How can i connect database with help of function in jupyter notebook and
> then conver data into csv to build model ?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/dd90d45a-dfbf-47a6-86b2-a4e600d4a9c9n%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/CAEbKJVi%3DPfRdjN7AxWiEb-BuUZ_cjwinBpwrbQ9-iTi7e_hyrQ%40mail.gmail.com.


Not able to connect to SQL Server 2012 from current version of DJango and Python

2018-08-10 Thread Gurmeet Kaur
Hi All,

I am trying to connect to SQL server 2012 using Pyodbc and DJango framework
but the version of Django is 2.1. Now, when I try to connect using below
code when I only have Pyodbc installed then the below code doesnot run.

DATABASES = {
'default': {
# 'ENGINE': '{ODBC Driver 11 for SQL Server}', Tried this as well
but it did not work.
'ENGINE': 'sql_server.pyodbc',
'NAME': 'MY_DATABASE',
# 'HOST': 'XXX.XX.XXX.XXX', Tried this as well but it did not work.
'SERVER': 'XXX.XX.XXX.XXX',
# 'HOST': 'SQLSERVER_InstanceName',
'PORT': '',
'USER': 'SQLSERVERUSER',
'PASSWORD': 'USER's PASSWORD',
 'DATABASE': 'MY_DATABASE',
 # 'Trusted_Connection': 'Yes',
# 'OPTIONS': {
# 'driver': 'ODBC Driver 11 for SQL Server',
#}

},
}


But when I install django-pyodbc-azure and try to run the above code by
running python manage.py inspectdb command, it works.

But the problem with using django-pyodbc-azure is that it downgrades the
current version of django to 2.0.8 version - which I do not want.

I do not want to use FreeTDS or Pymssql. I want to go with pyodbc only.

Can someone please suggest some way for this?


Thanks,
Gurmeet Kaur

-- 
You received this message because you are subscribed to the Google Groups 
"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/CAEbKJVinxbK8KMVdUH74kxkGC%3DNv1FCU3H4B9w7HYznM8-DQLg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to handle database VIEWS in Django

2018-10-11 Thread Gurmeet Kaur
Just code for them in models.py just as a table. And it will work.

I have done that in my project. It is working fine.

On Thu, Oct 11, 2018, 1:38 AM django_learner  wrote:

> Hi everyone,
>
> I am using SQL SERVER and I have some predefines VIEWS in the database,
> what I am looking for is to manage that VIEWS
>
>
> Thank you
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+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/27c14f60-b074-4b79-a1db-d9b519ac6637%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/CAEbKJVgwvBHUBtbjc8vd8n7CpxVfARY%3D9NLNb0XfwWo3Pv4C2g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Connecting Sql server to Django

2018-10-12 Thread Gurmeet Kaur
I did it in my project. Use pyodbc to connect to sql server and i am using
django 2.0.8

On Fri, Oct 12, 2018, 11:04 AM Pradeep Singh  wrote:

> bro...will you help me ...
> i am getting django 404 error ...please tell how to fix it...
> i am using python 3.6 + django 1.11
>
> On Fri, 12 Oct 2018 at 19:35, vineeth sagar 
> wrote:
>
>> I don't know if it works for 1.8, you would've tested it by now. The link
>> I haven given is a current method to connect with sql server with newer
>> versions of django, also I think it's about time your company updated your
>> django version.  For 2.1 the link I have given works seemlessly.
>>
>>
>> On Oct 12, 2018 5:38 PM, "Jason"  wrote:
>>
>>> well, considering that 1.8 is no longer supported, you're not getting
>>> any backports and updates.  which if you're doing a production level app,
>>> is pretty bad.
>>>
>>> Unfortunately, seems if you want to use the recent LTS or newer
>>> versions, SQL server is not an option unless you're willing to update those
>>> packages yourself for compatibility.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "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/078b932f-fde5-4eb5-9d59-4d66f43ff6f0%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/CAMMZq8OKW5ODFZpcxHhJKF1RBKrBQWGB1dDKCd7iJ6bRc%3DcDrw%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/CANwgZcaiLs3RqawFDzYX%3Dtz3B3ye_FW7nudgDEw6BqkBFJm0Dg%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/CAEbKJVhVHNAe6z-FAc%2BuBUqq%3DKb2A0mFJHh%3D6k0DuZAfuiJG7g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Connecting Sql server to Django

2018-10-14 Thread Gurmeet Kaur
Can you please share your settings.py file and requirements.txt?

On Sun, Oct 14, 2018, 12:51 PM Pradeep Singh  wrote:

> please help me why i am getting no change detected
>
> On Sat, 13 Oct 2018 at 01:33, Gurmeet Kaur 
> wrote:
>
>> I did it in my project. Use pyodbc to connect to sql server and i am
>> using django 2.0.8
>>
>> On Fri, Oct 12, 2018, 11:04 AM Pradeep Singh 
>> wrote:
>>
>>> bro...will you help me ...
>>> i am getting django 404 error ...please tell how to fix it...
>>> i am using python 3.6 + django 1.11
>>>
>>> On Fri, 12 Oct 2018 at 19:35, vineeth sagar 
>>> wrote:
>>>
>>>> I don't know if it works for 1.8, you would've tested it by now. The
>>>> link I haven given is a current method to connect with sql server with
>>>> newer versions of django, also I think it's about time your company updated
>>>> your django version.  For 2.1 the link I have given works seemlessly.
>>>>
>>>>
>>>> On Oct 12, 2018 5:38 PM, "Jason"  wrote:
>>>>
>>>>> well, considering that 1.8 is no longer supported, you're not getting
>>>>> any backports and updates.  which if you're doing a production level app,
>>>>> is pretty bad.
>>>>>
>>>>> Unfortunately, seems if you want to use the recent LTS or newer
>>>>> versions, SQL server is not an option unless you're willing to update 
>>>>> those
>>>>> packages yourself for compatibility.
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "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/078b932f-fde5-4eb5-9d59-4d66f43ff6f0%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/django-users/078b932f-fde5-4eb5-9d59-4d66f43ff6f0%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/CAMMZq8OKW5ODFZpcxHhJKF1RBKrBQWGB1dDKCd7iJ6bRc%3DcDrw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAMMZq8OKW5ODFZpcxHhJKF1RBKrBQWGB1dDKCd7iJ6bRc%3DcDrw%40mail.gmail.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/CANwgZcaiLs3RqawFDzYX%3Dtz3B3ye_FW7nudgDEw6BqkBFJm0Dg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CANwgZcaiLs3RqawFDzYX%3Dtz3B3ye_FW7nudgDEw6BqkBFJm0Dg%40mail.gmail.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@googleg

Need help for sql stored proc

2018-10-17 Thread Gurmeet Kaur
Hi all,

I have a ms sql stored proc and want to use it. How can I do that? Do I
need to write the class just like a view in models.py?

Please suggest.

Thanks,
Gurmeet Kaur

-- 
You received this message because you are subscribed to the Google Groups 
"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/CAEbKJVg%3DRfXuokWh9SPakJLUq3qCVrmk-DBaFSXi3xu651fZ-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need help for sql stored proc

2018-10-17 Thread Gurmeet Kaur
Thank you Matthew for sharing this link with me but my situation is:

I have some textboxes whose value I want to pass to sql query and want to
do a select *. Right now, I am doing that with the help of queryset but the
issue I am facing with this approach is that I need to do multiple ifs and
else because user is not restricted to pass values in all textboxes.

If I use cursor.callproc(), will I be able to get the data and show it on
the page? If yes then how can I do that?

Please suggest.

On Wed, Oct 17, 2018 at 12:10 PM Matthew Pava  wrote:

>
> https://docs.djangoproject.com/en/2.1/topics/db/sql/#calling-stored-procedures
>
>
>
>
>
> *From:* django-users@googlegroups.com [mailto:
> django-users@googlegroups.com] *On Behalf Of *Gurmeet Kaur
> *Sent:* Wednesday, October 17, 2018 11:06 AM
> *To:* django-users@googlegroups.com
> *Subject:* Need help for sql stored proc
>
>
>
> Hi all,
>
>
>
> I have a ms sql stored proc and want to use it. How can I do that? Do I
> need to write the class just like a view in models.py?
>
>
>
> Please suggest.
>
>
>
> Thanks,
>
> Gurmeet Kaur
>
> --
> You received this message because you are subscribed to the Google Groups
> "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/CAEbKJVg%3DRfXuokWh9SPakJLUq3qCVrmk-DBaFSXi3xu651fZ-g%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAEbKJVg%3DRfXuokWh9SPakJLUq3qCVrmk-DBaFSXi3xu651fZ-g%40mail.gmail.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/5e22807f4c0e49fd80f4ea2a7273c965%40ISS1.ISS.LOCAL
> <https://groups.google.com/d/msgid/django-users/5e22807f4c0e49fd80f4ea2a7273c965%40ISS1.ISS.LOCAL?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/CAEbKJVi_GxCLB5rq%3DdWvp1QdcdFnN%3DY_cdsjz0Jb%2BdVGQoJexw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re:

2020-02-22 Thread Gurmeet Kaur
I also know how to write selenium code in integration with Python. I can
help too.


Thanks,
Gurmeet Kaur

On Sat, Feb 22, 2020 at 9:09 AM Suraj Kumar 
wrote:

> Do you know Automation through Python.
> I want to learn automation tools.
>
> Tools like appium, selenium
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CACCwaoVZuL2awcQyPo0YPHaaB3k51PsxbN70NOJotXyctaYvCA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CACCwaoVZuL2awcQyPo0YPHaaB3k51PsxbN70NOJotXyctaYvCA%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/CAEbKJVjevR0vx%3DCSh4ef%3DHd9synON0B%2BC_3fOQZqOkTM%2BJ79%3Dw%40mail.gmail.com.