Django to exe ... windows executable

2019-07-02 Thread Balaji Shetty
Hello everyone

I want to can work my D jango application into exe   format  this
application will run on windows machine my application have libraries and
dependencies.

 There are lots of options which are available on web.
 which is the best option.

please help me

Thank you very much.  Have a good day




-- 
Mr Shetty Balaji
Asst. Prof.
IT Department
SGGS I
Nanded. My. India

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


Re: Polls app not showing?

2019-07-02 Thread Joe Reitman
That looks really weird.

Try running this command in a new folder exactly as shown.
django-admin startproject polls_project .

Remember to include a space and period after polls_ project. 

It should create a directory structure like this in your new folder.

.

├── manage.py

├── polls_project

│   ├── __init__.py

│   ├── settings.py

│   ├── urls.py

│   └── wsgi.py

Most developers use a virtual environment when creating new projects. A 
virtual env separates the dependencies between different projects. It is 
not necessary for you to do that on your first project so don't worry about 
it. You can always watch youtube tutorials on creating virtual envs later 
on. 

On Tuesday, July 2, 2019 at 9:25:35 PM UTC-5, Scott Winter wrote:
>
> Ok, attached a pic of the mysite folder and the other items inside. Polls 
> 2 and 3 are my attempt at making another polls app. Feels like I'm missing 
> something really simple here.
>
> On Sunday, June 30, 2019 at 11:06:54 PM UTC-4, Joe Reitman wrote:
>>
>> What does your project directory look like?
>>
>>
>>
>> On Sunday, June 30, 2019 at 8:29:02 PM UTC-5, Scott Winter wrote:
>>>
>>> Sorry, you'll have to be clearer than that. Not sure how to do that nor 
>>> how it relates to the issue
>>>
>>> On Friday, June 28, 2019 at 12:28:33 AM UTC-4, karthikvignesh28 wrote:

 Create virtual environment

 On Fri, Jun 28, 2019, 6:14 AM ScottW  wrote:

> The server ran a few weeks ago before I ran into this issue. I used 
> the run server command just now and now its not working. Interesting
>
> On Thursday, June 27, 2019 at 3:09:29 PM UTC-4, karthikvignesh28 wrote:
>>
>>
>>
>> On Thursday, June 27, 2019 at 8:04:39 AM UTC+5:30, ScottW wrote:
>>>
>>> Hi, 
>>>
>>> I'm attempting to get started with Django and very first part of the 
>>> polls app. When I type "python manage.py startapp polls"  into the 
>>> Windows 
>>> Powershell I don't see a folder for it in my file explorer under 
>>> "mysite". 
>>> Even stranger is that when I type 'tree' for this folder it shows that 
>>> its 
>>> on the computer, but there's nothing in it besides 'migrations' and 
>>> '_pycache_ '. Please refer to the screenshot attached for a picture of 
>>> the 
>>> Powershell code. If someone could help steer me in the right direction 
>>> that 
>>> would be great! 
>>>
>>
>>
>>
>> Can you run the server Without Creating a new app? 
>>
> -- 
> You received this message because you are subscribed to the Google 
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send 
> an email to django...@googlegroups.com.
> To 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/003f95c0-4e7d-4806-af90-6a4e9f6da018%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/5f8b834e-13f5-4806-a2df-b8d8a1bfa4fa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Polls app not showing?

2019-07-02 Thread Scott Winter
Ok, attached a pic of the mysite folder and the other items inside. Polls 2 
and 3 are my attempt at making another polls app. Feels like I'm missing 
something really simple here.

On Sunday, June 30, 2019 at 11:06:54 PM UTC-4, Joe Reitman wrote:
>
> What does your project directory look like?
>
>
>
> On Sunday, June 30, 2019 at 8:29:02 PM UTC-5, Scott Winter wrote:
>>
>> Sorry, you'll have to be clearer than that. Not sure how to do that nor 
>> how it relates to the issue
>>
>> On Friday, June 28, 2019 at 12:28:33 AM UTC-4, karthikvignesh28 wrote:
>>>
>>> Create virtual environment
>>>
>>> On Fri, Jun 28, 2019, 6:14 AM ScottW  wrote:
>>>
 The server ran a few weeks ago before I ran into this issue. I used the 
 run server command just now and now its not working. Interesting

 On Thursday, June 27, 2019 at 3:09:29 PM UTC-4, karthikvignesh28 wrote:
>
>
>
> On Thursday, June 27, 2019 at 8:04:39 AM UTC+5:30, ScottW wrote:
>>
>> Hi, 
>>
>> I'm attempting to get started with Django and very first part of the 
>> polls app. When I type "python manage.py startapp polls"  into the 
>> Windows 
>> Powershell I don't see a folder for it in my file explorer under 
>> "mysite". 
>> Even stranger is that when I type 'tree' for this folder it shows that 
>> its 
>> on the computer, but there's nothing in it besides 'migrations' and 
>> '_pycache_ '. Please refer to the screenshot attached for a picture of 
>> the 
>> Powershell code. If someone could help steer me in the right direction 
>> that 
>> would be great! 
>>
>
>
>
> Can you run the server Without Creating a new app? 
>
 -- 
 You received this message because you are subscribed to the Google 
 Groups "Django users" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to django...@googlegroups.com.
 To 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/003f95c0-4e7d-4806-af90-6a4e9f6da018%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/e626597d-e0f9-46e6-aedf-a153754dc821%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Persistir campo novo na models User - Não consigo

2019-07-02 Thread Marcos G.A
Preciso gravar na models User do django um campo denominado "Role" do tipo 
boolean. Este campo vai ser True quando for um cliente se cadastrando e 
False para quando for um Fornecedor. A principio, no que tange visualmente, 
o campo aparece na tela e eu consigo marcar ele, mas seu valor não persiste 
no banco. Na verdade, ele nem precisaria aparecer, mas na via views.py eu 
gostaria de quando "origin" fosse igual a 'Client' o valor seria True e 
False quando 'Provider'. 

*models.py*

class Role(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
# Adicionando os campos
role = models.BooleanField(default=False)

def __str__(self):
return self.user.username

*views.py*

from django.shortcuts import render, redirect
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth import authenticate, login
from django.conf import settings
from .forms import RegisterForm

def register(request, origin):
template_name = '../templates/register.html'
if request.method == 'POST':
form = RegisterForm(request.POST)
if form.is_valid():
user = form.save()
user = authenticate( 
username=user.username,password=form.cleaned_data['password1']
) 
login(request,user)
return redirect('qnow_client:quotation_client')
#return  
HttpResponse("Área do marceneiro")

else:
form = RegisterForm()
context = {
'origin': origin,
'active_page_client_provider':'active',
'form': form
}
return render(request, template_name,context)

*forms.py*

from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User

class RegisterForm(UserCreationForm):

email = forms.EmailField(label='E-mail')
role = forms.BooleanField(label='Cliente')

def clean_email(self):
email = self.cleaned_data['email']
if User.objects.filter(email=email).exists():
raise forms.ValidationError('Já existe usuário com este E-mail!')
return email

def save(self):
user = super(RegisterForm, self).save(commit=False)
user.email = self.cleaned_data['email']
user.save()
return 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/32eda923-d981-4cd9-8966-be2285f019c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


FilterSelectMultiple Widget's right list box does not render

2019-07-02 Thread Yeashin Rabbi
Hello,
I tried to use Django's FilterSelectMultiple Widget. But it does not render 
the right list box. Any help would be appreciated.

Thanks 

Here is my code:

forms.py

class appForm(ModelForm):
port = forms.ModelMultipleChoiceField(internalapp.objects.all(),widget=
FilteredSelectMultiple("Port",False,attrs={'rows':'10'}))
class Meta:
model = internalapp
fields = '__all__'
class Media:
css = {'all': ('/static/admin/css/widgets.css',), }
js = ('/admin/jsi18n/',)

views.py
def testhome(request):
submitted = False
if request.method == 'POST' :
form = appForm(request.POST)
if form.is_valid():
form.save()
return HttpResponseRedirect('/testhome/?submitted=True')
else:
form = appForm()

if 'submitted' in request.GET:
submitted = True
return render(request, 'tryout/testhome.html', {'form': form, 'submitted': 
submitted})

templates
{% load static %}





 
Document


{{ form.media }}


{{form.ports }}





-- 
You received this message because you are subscribed to the Google Groups 
"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/56f358ec-68d6-46d1-a009-381d65365694%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django use id=models.IntegerField(primary_key=True) as autokey

2019-07-02 Thread P O
Hello,
sorry if I am wrong, but I use somethig like:
id=models.IntegerField(db_name="some_id", primary_key=True)
and Django uses auto-key when I add objects this way:
obj = Obj()
obj.some_id= 1
obj.save()
obj = Obj()
obj.some_id= 3
obj.save()
In default DB this objects have some_id=1 and some_id=2, There us no 
errors, no warnings.

Is it a bug? Without db_name works well. 

-- 
You received this message because you are subscribed to the Google Groups 
"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/b876893b-bd60-495a-9e62-092317b80d7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: order of loading css-files

2019-07-02 Thread Joe Reitman
You have a 404 error meaning the browser can not find the file on the 
server.
The 304 error code means the file is already loaded in the browser and is 
the same as the file on the server so it won't be modified.

On Tuesday, July 2, 2019 at 7:14:38 AM UTC-5, bengoshi wrote:
>
> Hi:
>
> I tried to load bootstrap and an own css-file. But in which order does 
> django load it?
>
> I have tried in my base.html:
>
> 
> {% load static %}
>
>
> 
> 
>
> {% block title %}gyousei{% endblock title %}
>
> 
> ...
>
> and the log is writing:
>
> [02/Jul/2019 11:54:38] "GET / HTTP/1.1" 200 6259
> [02/Jul/2019 11:54:38] "GET /static/css/base.css HTTP/1.1" 304 0
> [02/Jul/2019 11:54:38] "GET /static/bootstrap/css/site.css HTTP/1.1" 404 1690
> [02/Jul/2019 11:54:38] "GET /static/bootstrap/js/jquery.min.js HTTP/1.1" 404 
> 1702
> [02/Jul/2019 11:54:38] "GET /static/bootstrap/js/popper.js HTTP/1.1" 404 1690
> [02/Jul/2019 11:54:38] "GET /static/bootstrap/js/popper.js HTTP/1.1" 404 1690
>
> and if I write 
>
> 
> {% load static %}
> 
>
> 
> 
>
>
> {% block title %}gyousei{% endblock title %}
>
> 
> ...
> the log writes
>
> [02/Jul/2019 11:54:11] "GET /static/css/base.css HTTP/1.1" 304 0
> [02/Jul/2019 11:54:11] "GET /static/bootstrap/js/jquery.min.js HTTP/1.1" 404 
> 1702
> [02/Jul/2019 11:54:11] "GET /static/bootstrap/js/popper.js HTTP/1.1" 404 1690
> [02/Jul/2019 11:54:11] "GET /static/bootstrap/css/site.css HTTP/1.1" 404 1690
>
> If I understand it correct in both cases django loads my base.css first so 
> bootstrap overwrites it.
> How can I change this?
>
> Thanks for your response,
>
> bengoshi
>
> -- herz-jesu-jugend.de
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"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/e6830f9b-66c3-4bef-9c8d-d45946804eda%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: order of loading css-files

2019-07-02 Thread Kai Kobschätzki
Hi,

thanks for your responses. Damn, but learning something new. Is there
something existing like a "proxy" in django which deliver the browser
only one css (quasi a mixture of all css-files)?

bengoshi

On 7/2/19 2:34 PM, Jani Tiainen wrote:
> Hi.
>
> It's your browser not Django. Django just emits HTML that is parsed by
> your browser.
>
>
> ti 2. heinäk. 2019 klo 15.14 Kai Kobschätzki
> mailto:kai.kobschaet...@gmail.com>>
> kirjoitti:
>
> Hi:
>
> I tried to load bootstrap and an own css-file. But in which order
> does django load it?
>
> I have tried in my base.html:
>
> 
> 
> {% load static %}
> 
>
>
> 
> 
> 
>
> {% block title %}gyousei{% endblock title %}
>
>
>  ... and the log is writing: [02/Jul/2019 11:54:38] "GET /
> HTTP/1.1" 200 6259 [02/Jul/2019 11:54:38] "GET
> /static/css/base.css HTTP/1.1" 304 0 [02/Jul/2019 11:54:38] "GET
> /static/bootstrap/css/site.css HTTP/1.1" 404 1690 [02/Jul/2019
> 11:54:38] "GET /static/bootstrap/js/jquery.min.js HTTP/1.1" 404
> 1702 [02/Jul/2019 11:54:38] "GET /static/bootstrap/js/popper.js
> HTTP/1.1" 404 1690 [02/Jul/2019 11:54:38] "GET
> /static/bootstrap/js/popper.js HTTP/1.1" 404 1690 and if I write
> 
> 
> {% load static %}
> 
>
> 
>
> 
> 
>
>
> {% block title %}gyousei{% endblock title %}
>
>
>  ...
> the log writes
>
> [02/Jul/2019 11:54:11] "GET /static/css/base.css HTTP/1.1" 304 0
> [02/Jul/2019 11:54:11] "GET /static/bootstrap/js/jquery.min.js HTTP/1.1" 
> 404 1702
> [02/Jul/2019 11:54:11] "GET /static/bootstrap/js/popper.js HTTP/1.1" 404 
> 1690
> [02/Jul/2019 11:54:11] "GET /static/bootstrap/css/site.css HTTP/1.1" 404 
> 1690
>
> If I understand it correct in both cases django loads my base.css first 
> so bootstrap overwrites it.
> How can I change this?
>
> Thanks for your response,
>
> bengoshi
>
> -- 
> herz-jesu-jugend.de 
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "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/d6be7f83-ca64-cd9d-b72e-2b9a4aa093cb%40herz-jesu-jugend.de
> 
> .
> 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/CAHn91ocYA%3Da%2BeZgEis76XXvcs0XqT69U5mXXPAV2W4aJ2mNLew%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/2635d533-dde5-97e9-46a5-64b0104c15f4%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: New leaener.

2019-07-02 Thread Charlotte Wood
I found that doing a project from YouTube was helpful.  It made me wonder
how to accomplish things I didn't even know I would wonder about..


Charlotte Wood, MEd

Educator

(405) 578-5701

Zoom Meeting ID#: 4055785701

*Zoom URL:* https://epiccharterschools.zoom.us/j/2970513912

Classroom Google Site:
https://sites.google.com/epiccharterschools.org/charlottewoodclassroom/home

Epic Technical Support: (405) 652-0935



Jordan McKesson Principal

405-749-4550 ext. 309

jordan.mckes...@epiccharterschools.org

 






On Tue, Jul 2, 2019 at 6:20 AM ABU SADAT MOHAMMAD SAYEM <
sayem.ee...@gmail.com> wrote:

> Hi,
> I have recently started python & somewhat completed the basics. Now want
> to learn 'django'. Please advise where to begin & focus?
>
> --
> You received this message because you are subscribed to the Google Groups
> "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/22ed9a42-405c-4b0d-84b6-c7720ea6f734%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/CAPZR0N72EfzR5i0_wRQdbtM%2Bmxov1zMaGT73U6xHFEMV9UWXjQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: order of loading css-files

2019-07-02 Thread Jani Tiainen
Hi.

It's your browser not Django. Django just emits HTML that is parsed by your
browser.


ti 2. heinäk. 2019 klo 15.14 Kai Kobschätzki 
kirjoitti:

> Hi:
>
> I tried to load bootstrap and an own css-file. But in which order does
> django load it?
>
> I have tried in my base.html:
>
> 
> {% load static %}
>
>
> 
> 
>
> {% block title %}gyousei{% endblock title %}
>
> 
> ...
>
> and the log is writing:
>
> [02/Jul/2019 11:54:38] "GET / HTTP/1.1" 200 6259
> [02/Jul/2019 11:54:38] "GET /static/css/base.css HTTP/1.1" 304 0
> [02/Jul/2019 11:54:38] "GET /static/bootstrap/css/site.css HTTP/1.1" 404 1690
> [02/Jul/2019 11:54:38] "GET /static/bootstrap/js/jquery.min.js HTTP/1.1" 404 
> 1702
> [02/Jul/2019 11:54:38] "GET /static/bootstrap/js/popper.js HTTP/1.1" 404 1690
> [02/Jul/2019 11:54:38] "GET /static/bootstrap/js/popper.js HTTP/1.1" 404 1690
>
> and if I write
>
> 
> {% load static %}
> 
>
> 
> 
>
>
> {% block title %}gyousei{% endblock title %}
>
> 
> ...
> the log writes
>
> [02/Jul/2019 11:54:11] "GET /static/css/base.css HTTP/1.1" 304 0
> [02/Jul/2019 11:54:11] "GET /static/bootstrap/js/jquery.min.js HTTP/1.1" 404 
> 1702
> [02/Jul/2019 11:54:11] "GET /static/bootstrap/js/popper.js HTTP/1.1" 404 1690
> [02/Jul/2019 11:54:11] "GET /static/bootstrap/css/site.css HTTP/1.1" 404 1690
>
> If I understand it correct in both cases django loads my base.css first so 
> bootstrap overwrites it.
> How can I change this?
>
> Thanks for your response,
>
> bengoshi
>
> -- herz-jesu-jugend.de
>
> --
> You received this message because you are subscribed to the Google Groups
> "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/d6be7f83-ca64-cd9d-b72e-2b9a4aa093cb%40herz-jesu-jugend.de
> 
> .
> 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/CAHn91ocYA%3Da%2BeZgEis76XXvcs0XqT69U5mXXPAV2W4aJ2mNLew%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


order of loading css-files

2019-07-02 Thread Kai Kobschätzki
Hi:

I tried to load bootstrap and an own css-file. But in which order does
django load it?

I have tried in my base.html:



{% load static %}







{% block title %}gyousei{% endblock title %}


 ... and the log is writing: [02/Jul/2019 11:54:38] "GET /
HTTP/1.1" 200 6259 [02/Jul/2019 11:54:38] "GET /static/css/base.css
HTTP/1.1" 304 0 [02/Jul/2019 11:54:38] "GET
/static/bootstrap/css/site.css HTTP/1.1" 404 1690 [02/Jul/2019 11:54:38]
"GET /static/bootstrap/js/jquery.min.js HTTP/1.1" 404 1702 [02/Jul/2019
11:54:38] "GET /static/bootstrap/js/popper.js HTTP/1.1" 404 1690
[02/Jul/2019 11:54:38] "GET /static/bootstrap/js/popper.js HTTP/1.1" 404
1690 and if I write 

{% load static %}








{% block title %}gyousei{% endblock title %}


 ...
the log writes

[02/Jul/2019 11:54:11] "GET /static/css/base.css HTTP/1.1" 304 0
[02/Jul/2019 11:54:11] "GET /static/bootstrap/js/jquery.min.js HTTP/1.1" 404 
1702
[02/Jul/2019 11:54:11] "GET /static/bootstrap/js/popper.js HTTP/1.1" 404 1690
[02/Jul/2019 11:54:11] "GET /static/bootstrap/css/site.css HTTP/1.1" 404 1690

If I understand it correct in both cases django loads my base.css first so 
bootstrap overwrites it.
How can I change this?

Thanks for your response,

bengoshi

-- 
herz-jesu-jugend.de

-- 
You received this message because you are subscribed to the Google Groups 
"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/d6be7f83-ca64-cd9d-b72e-2b9a4aa093cb%40herz-jesu-jugend.de.
For more options, visit https://groups.google.com/d/optout.


Re: New leaener.

2019-07-02 Thread KUMBHAGIRI SIVAKRISHNA
https://www.youtube.com/playlist?list=PLsyeobzWxl7r2ukVgTqIQcl-1T0C2mzau
Follow this YouTube channel you will get overall on django. Easily
understanding and simple taching ,provide good more knowledge within less
time.

On Tue, 2 Jul 2019, 4:50 pm ABU SADAT MOHAMMAD SAYEM, 
wrote:

> Hi,
> I have recently started python & somewhat completed the basics. Now want
> to learn 'django'. Please advise where to begin & focus?
>
> --
> You received this message because you are subscribed to the Google Groups
> "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/22ed9a42-405c-4b0d-84b6-c7720ea6f734%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/CAMM5N90TnLftx7YVpKbtA5eq2s4C-0gzQGKuHyTmjT2EDNOK1w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


New leaener.

2019-07-02 Thread ABU SADAT MOHAMMAD SAYEM
Hi,
I have recently started python & somewhat completed the basics. Now want to 
learn 'django'. Please advise where to begin & focus? 

-- 
You received this message because you are subscribed to the Google Groups 
"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/22ed9a42-405c-4b0d-84b6-c7720ea6f734%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signup in Django rest API framework With MIXIN

2019-07-02 Thread laya
Hi, 
I need a help in signing up  Custom Model User with MAXIN and be able to edit 
and delete and see the saved user info . At first , I defined a sterilizer 
class to get the fields I want to have from user then I defined a class view 
which the parameter are 
mixins.ListModelMixin,mixins.CreateModelMixin,generics.GenericAPIView, 

I de fined two methods as def post and get in class view but I don’t know 
anymore how set password in the post def

Sent from Mail for Windows 10

-- 
You received this message because you are subscribed to the Google Groups 
"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/5d1b32ac.1c69fb81.41704.0edc%40mx.google.com.
For more options, visit https://groups.google.com/d/optout.


Re: Nested dictionaries

2019-07-02 Thread Derek
I am not sure I understand what you mean by " write the models to work with 
the serializers".  A model is there primarily for data storage and its 
possible to store JSON in a field of such a model.  Any "business logic" 
for the model is just Python and can carry out, for example, processing 
operations on the JSON data.

For more on JSON operations and JSON fields with databases, have a look at:

http://www.lexev.org/en/2015/trying-json-combo-django-and-postgresql/
https://www.laurencegellert.com/2018/09/django-tricks-for-processing-and-storing-json/

for some useful examples.

P.S. If you are working with current versions of Python and Django, you 
should not yet be in the position to need any shim.


On Sunday, 30 June 2019 03:47:38 UTC+2, David Elphee wrote:
>
> Hello,
> I am new at django and in over my head I think.  I am trying to create a 
> kind of shim that will accept JSON from a webhook POST, work with the data 
> using Python, and then POST some new JSON to another API.  I have 
> successfully worked through tutorials that have "flat" data, and I have 
> looked at the documentation on serializing nested data, but I don't see how 
> to write the models to work with the serializers.  Does anyone know of a 
> tutorial that demonstrates working with nested dictionaries?
> Thank you,
> Dave E.
>

-- 
You received this message because you are subscribed to the Google Groups 
"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/90e5786d-e674-44cd-ab47-3107232abdcd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: OTP Verification

2019-07-02 Thread Jani Tiainen
Hi.

I wrote short blog post how to do simple OTP.

http://blog.jani.tiainen.cc/django/2019/02/19/django-otp-simple-way.html

HTH.

ti 2. heinäk. 2019 klo 4.33 ravikumar dingari 
kirjoitti:

> Actually generated OTP but , Don't know how to verify, can any one help
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To 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%2BvYKMTHoaHP3WL7V%2B_iT%2B6ssVPfm3jq7z5o-5nnwXZZWYMYyg%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/CAHn91ofcP865cwPNQnL10zUa-XN2%3D-_n9-YdkGpxMstr_%2BHP2g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.