Re: Login with email or phone not username

2019-01-07 Thread Manas Nikam
Add AccountKit integration https://www.accountkit.com/ into into app and 
add the authentication backend for the same 

On Sunday, January 6, 2019 at 7:37:50 AM UTC+5:30, Achyut Pandey wrote:
>
>
> Hello guys i want to allow user to register and login with their email or 
> phone number instead of username . How can i do that i am extending user 
> model with abstractuser.

-- 
You received this message because you are subscribed to the Google Groups 
"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/41811d1c-925c-4b7e-ac6c-bd4e27317a61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: ms sql server connectivity to django

2019-01-07 Thread pahlawanto.pancawindu
Make sure the port MSSQL is open.

 

From: django-users@googlegroups.com  On Behalf 
Of BALA KRISHNAN
Sent: 07 January 2019 13:34
To: django-users@googlegroups.com
Subject: Re: ms sql server connectivity to django

 

Create your database in MySQL

Migrate your files 

 

On Sun, 6 Jan 2019 at 23:25, Praveen Kumar mailto:kumar.pravee...@gmail.com> > wrote:

Hi All,

 

Changed DATABASE code as under in setting.py in Django project. But not getting 
able to connect to MS SQL Server. Please suggest.

 

ATABASES = {

'default': {

'NAME': 'APJ_AIM_LITE',

'ENGINE': 'sqlserver_ado',

'HOST': 'DB_SERVER',

'USER': '',

'PASSWORD': '',

}

}

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com 
 .
To 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/ee503251-d646-4585-b773-0b1fc5b11c66%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/CAGxtV7ZZ-kEPQ7xuyOa%2B6wOOdzJmcNcDR2vihNNPLuqyQ%3DCuOQ%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/002801d4a654%248f32ecd0%24ad98c670%24%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: ms sql server connectivity to django

2019-01-07 Thread Ivan Martić
Hi Mate,

I had the same issues with connecting to MS SQL.
This is the configuration which worked for me...

DATABASES = {
'default': {
'ENGINE': 'sql_server.pyodbc',
'HOST': 'XXX',
'PORT': '1433',

'USER': 'XXX',
'PASSWORD': 'XXX',
'NAME': 'XXX', #name of your table
'CONN_MAX_AGE': 0,
'AUTOCOMMIT': True,

'OPTIONS': {
'driver': 'ODBC Driver 17 for SQL Server',
'host_is_server': True,
'autocommit': True,
'driver_needs_utf8': True,
'use_legacy_date_fields' : True,
},
}
}
You need to have pyodbc installed.

BR,
Ivan

On Sunday, January 6, 2019 at 6:56:09 PM UTC+1, Praveen Kumar wrote:
>
> Hi All,
>
> Changed DATABASE code as under in setting.py in Django project. But not 
> getting able to connect to MS SQL Server. Please suggest.
>
> ATABASES = {
> 'default': {
> 'NAME': 'APJ_AIM_LITE',
> 'ENGINE': 'sqlserver_ado',
> 'HOST': 'DB_SERVER',
> 'USER': '',
> 'PASSWORD': '',
> }
> }
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To 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/c8366067-faf8-426a-b6d1-3b0e37a35e15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: ms sql server connectivity to django

2019-01-07 Thread Ivan Martić
Hi mate,

I had the same issue with MS SQL.

This worked for me:
DATABASES = {
'default': {
'ENGINE': 'sql_server.pyodbc',
'HOST': 'xxx',
'PORT': '1433',

'USER': 'xxx',
'PASSWORD': 'xxx',
'NAME': 'xx',#table name
'CONN_MAX_AGE': 0,
'AUTOCOMMIT': True,

'OPTIONS': {
'driver': 'ODBC Driver 17 for SQL Server',
'host_is_server': True,
'autocommit': True,
'driver_needs_utf8': True,
'use_legacy_date_fields' : True,
},
}
}

You need to have pyodbc azure installed.

GL,
Ivan

-- 
You received this message because you are subscribed to the Google Groups 
"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/7b00ad3b-8964-4b39-9eaa-4a204f45eb92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error 403 (Csfr token not valid)

2019-01-07 Thread Nebojsa Hajdukovic
did you call {% csrf_token %} in your template html file?

нед, 6. јан 2019. у 18:55 Pasquale  је написао/ла:

> I have the following files:
>
> #views.py
> from django.views.generic.edit import FormView
> from django.views.generic.base import TemplateView
> from braces.views import AnonymousRequiredMixin, CsrfExemptMixin
>
>
> #exempting from Csfr as the worst it can do is making lots of new users
> class LogonView(CsrfExemptMixin, AnonymousRequiredMixin, FormView):
>  "the page to create a new user"
>
>  from .forms import LogonForm as form_class
>  template_name = "registration/logon.html"
>  from django.urls import reverse_lazy
>  authenticated_redirect_url = reverse_lazy("success")
>  success_url = authenticated_redirect_url
>
>  def form_valid(self, form):
>  u = form.save(commit=False)
>  u.set_password(form.cleaned_data["password"])
>  u.save()
>  from django.contrib.auth import login
>  login(self.request, u)
>  return super().form_valid(form)
>
>
> class SuccessView(TemplateView):
>  template_name = "registration/success.html"
>
>
>
>
> #forms.py
> from django import forms as f
>
>
> class LogonForm(f.ModelForm):
>  "The form to create a new user"
>
>  # repeat the password form
>  password2 = f.CharField(
>  label="Please repeat your password",
>  widget=f.PasswordInput,
>  )
>
>  class Meta:
>  from django.contrib.auth.models import User as model
>  fields = ("username", "email", "first_name", "last_name",
> "password")
>  widgets = {"password": f.PasswordInput, }
>
>  def clean(self):
>  c = super().clean()
>  pwd = c.get("password")
>  if pwd and pwd == c.get("password2"):
>  return c
>  raise f.ValidationError(
>
>  "You need to repeat the passwords identically")
>
>
>
> #urls.py
> from django.urls import path, include
> from .views import *
>
> urlpatterns = [
>  path('', include('django.contrib.auth.urls')),
>  path("logon/", LogonView.as_view(), name="logon"),
>  path("success/",SuccessView.as_view(),name="success")
> ]
>
>
>
>
> When I try to access /logon and fill the resulting form,it gives me a
> 403 CSFR error.
> The weird thing is that the user is still created and the login is still
> successful,
> so if I tried to reload the page of the error it redirects me to the
> /success page
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To 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/eb166a71-2cff-f20a-4c20-57554ff2ddc5%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/CAJ60hW2TW42-X7zMo3SkwFx%2Bd96%2BQKiJROinBXL54DAz-hViDw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: default groups and permissions

2019-01-07 Thread Nebojsa Hajdukovic
you can do it from views.py inside signup function
if Försäljningschef
then if exist() sign there, if not create that group.

I will be at home in few hours so can write one full example if you can't
make it until then.

нед, 6. јан 2019. у 18:55 Robin Riis  је написао/ла:

> i have a custom user model that i want to have 4 default groups depending
> on job title.
>
> this is my model.py
>   1 from django.contrib.auth.models import AbstractUser, UserManager,
> PermissionsMixin
>   2 from django.db import models
>   3
>   4 class WiggenUserManager(UserManager):
>   5 pass
>   6
>   7 class WiggenUser(AbstractUser):
>   8 title_choices = (
>   9 ('Försäljningschef', 'Försäljningschef'),
>  10 ('Affärsområdeschef', 'Affärsområdeschef'),
>  11 ('Ekonomi', 'Ekonomi'),
>  12 ('Verkstad', 'Verkstad'),
>  13 ('IT utvecklare', 'IT utvecklare')
>  14 )
>  15 objects = WiggenUserManager()
>  16 dob = models.DateField(blank=True, null=True)
>  17 employee_number = models.IntegerField(blank=True, null=True)
>  18 title = models.CharField(max_length=30, choices=title_choices,
> blank=True, null=True)
>  19 mobile = models.CharField(max_length=15, blank=True, null=True)
>  20 phone = models.CharField(max_length=15, blank=True, null=True)
>  21 salary = models.IntegerField(blank=True, null=True)
>
> so when i add a new user with for example (title Verkstad) i want that
> user to belong to the group verkstad..
>
> where do i add that new group and set its permissions? i read somewhere
> about signal but it didnt say what to import or where to add it
>
> anyone got an idea? :)
>
> thnx in advance :)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To 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/17b1e7b9-61e1-4643-9679-653d138052c9%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/CAJ60hW0NVny6e0oCJirxhiTA-a-RbKN3i6SELoshyo%2BzWn0Czw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: simple boy start learn python

2019-01-07 Thread Mario R. Osorio
These are some of the best resources I've ever found on the subject:


   - 
   - Obey the Testing Goat! (You can buy they book or read it online for 
   free) 
   - TaskBuster Django Tutorial (might be a bit outdated but I'd still go 
   thru it) 
   - Workshop: Test-Driven Web Development with Django 
   
   

On Saturday, January 5, 2019 at 3:46:54 PM UTC-5, mw53...@gmail.com wrote:
>
> I know that you are exp in django, so I need you tell me the best way to 
> learn django is what ?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"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/5765d003-8ebb-44b9-a22c-c19e97cabc57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


django middleware return response and prevent calling main function

2019-01-07 Thread Samuel Muiruri
I want to use a form of cache using django middleware/context-processors. I 
do know it's simpler to just add the decorator at the top of the function 
but for reasons I have to do it this way.

Using this as my example of my function

def cache_results(request):
response =  {}
if request.path == '/about':
#my json response
return {...}

return response

the idea is if it matches my requests it returns a result and also prevent 
the matching function call from the `urls.py` from being called or 
returning the result basically acting as a middleware caching system.

the views look like this

def about(request):
response = {
'title': 'This is the About Page',
'activity': 'Check out this link --',
'additional data': 'something else'
}

return HttpResponse(
json.dumps(response),
content_type="application/json"
)


Is this doable?

-- 
You received this message because you are subscribed to the Google Groups 
"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/2d289f89-127c-4c36-89d8-c4ac5d71e939%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: simple boy start learn python

2019-01-07 Thread Mario R. Osorio
Sorry, I forgot to include the link for the book:
https://www.obeythetestinggoat.com/

Dtb/Gby
===
Mario R. Osorio
B.A.S. of Information Technology
A.S. of Computer Programming and Analysis
Web page: *http;//mario.osorio.solutions
*
Email: *mario@osorio.solutions* 
*Just Choose Python!* 

“If I had asked people what they wanted, they would have said faster
horses.”
 ― Henry Ford








On Mon, Jan 7, 2019 at 11:33 AM Mario R. Osorio 
wrote:

> These are some of the best resources I've ever found on the subject:
>
>
>-
>- Obey the Testing Goat! (You can buy they book or read it online for
>free)
>- TaskBuster Django Tutorial (might be a bit outdated but I'd still go
>thru it) 
>- Workshop: Test-Driven Web Development with Django
>
>
>
> On Saturday, January 5, 2019 at 3:46:54 PM UTC-5, mw53...@gmail.com wrote:
>>
>> I know that you are exp in django, so I need you tell me the best way to
>> learn django is what ?
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/2KCHCeK7XBQ/unsubscribe.
> To unsubscribe from this group and all its topics, 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/5765d003-8ebb-44b9-a22c-c19e97cabc57%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/CAO2PNV4gUN0qPP19P2jYBaufJreAn45G%2BSrUKtsnQvmvMtKtLQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Make mobile app from webapp

2019-01-07 Thread maunish dave
Hi i have a website built with django and now i want to make a mobile app
for it how to do it any suggestions?

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


Re: Make mobile app from webapp

2019-01-07 Thread Nebojsa Hajdukovic
You need to create rest api from that app, and then to use in ionic,
flutter etc.

Do you have experience with django rest framework?

pon, 07. jan 2019. 19:10 maunish dave  je
napisao/la:

> Hi i have a website built with django and now i want to make a mobile app
> for it how to do it any suggestions?
>
> --
> You received this message because you are subscribed to the Google Groups
> "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/CALpJ3uLaDOHgjeuM8dez0hKxZ2M%2BwJn7DhzkbX8hf0GV1mqKOw%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/CAJ60hW3UtZbzNuXpgP38%3D2aF6gC4qUHHdV-rPU2YhheKL0RLVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Make mobile app from webapp

2019-01-07 Thread maunish dave
Ya i have little experience of creating API using django rest framework

On Mon 7 Jan, 2019, 11:42 PM Nebojsa Hajdukovic, 
wrote:

> You need to create rest api from that app, and then to use in ionic,
> flutter etc.
>
> Do you have experience with django rest framework?
>
> pon, 07. jan 2019. 19:10 maunish dave  je
> napisao/la:
>
>> Hi i have a website built with django and now i want to make a mobile app
>> for it how to do it any suggestions?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "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/CALpJ3uLaDOHgjeuM8dez0hKxZ2M%2BwJn7DhzkbX8hf0GV1mqKOw%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/CAJ60hW3UtZbzNuXpgP38%3D2aF6gC4qUHHdV-rPU2YhheKL0RLVw%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/CALpJ3u%2B8dOiOXHeyfLxWRwXOtUbWJGTiLV7fnB-VDhcut7H8bw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Creation of database in real time and loading it in the DATABASES variable of Django;

2019-01-07 Thread Sanderson Carmona
Good afternoon,

I'm using the latest version of Django (2.x) and I'm having a rather 
complicated task because of the lack of experience I have with the 
Framework.
To do: I need to use 1 bank as default and others created in real time for 
the contract client in the company.

Example: You purchased a service and when registering the system create a 
database with standard tables for its use;
When this client logs in the system will load information from the created 
bank.
To do this it should read in the database the name of the client's database 
and load it into the DATABASES variable, that is, if not see another way.

If anyone can help me thank you very much, I already researched and did not 
find anything on.
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/9d0b76c9-f8fb-4c5a-b335-d7bb6cfb9fe0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Creation of database in real time and loading it in the DATABASES variable of Django;

2019-01-07 Thread zekri sidi mohamed hicham
you must search about django chennels, i don't have good experiences  with
django channels but i think it's may help you.
good chance.
SIDI MOHAMED HICHAM Zekri student.

Le lun. 7 janv. 2019 à 19:48, Sanderson Carmona  a
écrit :

> Good afternoon,
>
> I'm using the latest version of Django (2.x) and I'm having a rather
> complicated task because of the lack of experience I have with the
> Framework.
> To do: I need to use 1 bank as default and others created in real time for
> the contract client in the company.
>
> Example: You purchased a service and when registering the system create a
> database with standard tables for its use;
> When this client logs in the system will load information from the created
> bank.
> To do this it should read in the database the name of the client's
> database and load it into the DATABASES variable, that is, if not see
> another way.
>
> If anyone can help me thank you very much, I already researched and did
> not find anything on.
> 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/9d0b76c9-f8fb-4c5a-b335-d7bb6cfb9fe0%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/CADxjhnuH4SWeMVEU05OFs%3DMq%3DhwpwpxSUOQtz5RPCTt7wqsQMA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Make mobile app from webapp

2019-01-07 Thread Brad Pitcher
The basic formula we've used in the past:
1. Decouple back- and front-end using API
2. Use django-bakery (https://django-bakery.readthedocs.io/en/latest/) to
export the needed pages to HTML (requires the use of class-based views,
which are actually really awesome)
3. Use Phonegap to wrap these HTML pages into an app

Steps 2 and 3 are build steps, the HTML should not be edited or checked in
to source control.

On Mon, Jan 7, 2019 at 11:15 AM maunish dave 
wrote:

> Ya i have little experience of creating API using django rest framework
>
> On Mon 7 Jan, 2019, 11:42 PM Nebojsa Hajdukovic, <
> nebojsa.zero...@gmail.com> wrote:
>
>> You need to create rest api from that app, and then to use in ionic,
>> flutter etc.
>>
>> Do you have experience with django rest framework?
>>
>> pon, 07. jan 2019. 19:10 maunish dave  je
>> napisao/la:
>>
>>> Hi i have a website built with django and now i want to make a mobile
>>> app for it how to do it any suggestions?
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "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/CALpJ3uLaDOHgjeuM8dez0hKxZ2M%2BwJn7DhzkbX8hf0GV1mqKOw%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/CAJ60hW3UtZbzNuXpgP38%3D2aF6gC4qUHHdV-rPU2YhheKL0RLVw%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/CALpJ3u%2B8dOiOXHeyfLxWRwXOtUbWJGTiLV7fnB-VDhcut7H8bw%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/CAMFpZrgsZxrHopZf0_cWHaTmmHhYHGFWbF_9p-_4DuaF9mojpQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: ms sql server connectivity to django

2019-01-07 Thread Jani Tiainen
Hi,

What happens? Do you get errors? Nothing?

On Sun, Jan 6, 2019 at 7:56 PM Praveen Kumar 
wrote:

> Hi All,
>
> Changed DATABASE code as under in setting.py in Django project. But not
> getting able to connect to MS SQL Server. Please suggest.
>
> ATABASES = {
> 'default': {
> 'NAME': 'APJ_AIM_LITE',
> 'ENGINE': 'sqlserver_ado',
> 'HOST': 'DB_SERVER',
> 'USER': '',
> 'PASSWORD': '',
> }
> }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To 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/ee503251-d646-4585-b773-0b1fc5b11c66%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Jani Tiainen

- Well planned is half done, and a half done has been sufficient before...

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