Re: How to reset is_active field of auth_user

2020-08-24 Thread Mike Dewhirst
On Mon, Aug 24, 2020, 5:46 PM Kamakshi Aggarwal wrote: >   > Now if user leaves the company how should I set "is_active" field to > False. > There are two ways to do it. One is to write a view which lets someone in HR turn it off. The other is to use Django Admin with the correct privileges and d

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

2020-08-24 Thread RANGA BHARATH JINKA
Hi, I think it is not able to find the file. Please check whether it is the correct location of the files. Add a static root in settings file like STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') STATIC_URL = '/static/' STATICFILES_DIRS = [ os.path.join(BASE_DIR, 'static') ] MEDIA_U

Re: Stream Webcam and with Button Capture Image

2020-08-24 Thread RANGA BHARATH JINKA
Hi, Try this. This may be useful for you. https://github.com/kevinam99/capturing-images-from-webcam-using-opencv-python All the best On Tue, Aug 25, 2020 at 2:03 AM Samara Muñoz wrote: > Hi Ketul, I was wondering if you have had any luck. I was seeing a video > and they use FileSystemStorag

Re: How to reset is_active field of auth_user

2020-08-24 Thread Amresh Giri
This setting can be configured from the Identity Provider account like Okta, onelogin, etc when you create an app on it. On Tue, Aug 25, 2020, 10:48 AM Kamakshi Aggarwal wrote: > Can you explain it more to me? Its not clear. > > On Mon, 24 Aug 2020, 8:04 pm Amresh Giri, wrote: > >> I think this

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

2020-08-24 Thread RANGA BHARATH JINKA
Hi, Check this. It may be useful for you. https://stackoverflow.com/questions/46386011/real-time-audio-signal-processing-using-python All the best On Tue, Aug 25, 2020 at 4:13 AM Rowan V wrote: > Hi all, > > I’m interested in building out an app with the following functionality. I > woul

Re: load static in css file

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

Re: How to reset is_active field of auth_user

2020-08-24 Thread Kamakshi Aggarwal
Can you explain it more to me? Its not clear. On Mon, 24 Aug 2020, 8:04 pm Amresh Giri, wrote: > I think this setting can be handled from your IDP side in the application. > > On Mon, Aug 24, 2020, 5:46 PM Kamakshi Aggarwal > wrote: > >> Hi, >> >> We are using django application in our company.

Re: load static in css file

2020-08-24 Thread MAMADOU KANTE
I did load static at the top of the file {% load static %}. Also I linked the CSS file named style.css. Part of the css file was working perfectly. I only had issues with the background image. On Mon, Aug 24, 2020 at 4:02 PM sapna Choudhary wrote: > create a directory named 'static' in the curre

Real-time audio processing with django-based app?

2020-08-24 Thread Rowan V
Hi all, I’m interested in building out an app with the following functionality. I would like to: 1) obtain audio data from a variety of users via a browser 2) undertake some analysis of the signal data in real time 3) Then create a composite stream of audio data based on transformations of the o

Re: Stream Webcam and with Button Capture Image

2020-08-24 Thread Samara Muñoz
Hi Ketul, I was wondering if you have had any luck. I was seeing a video and they use FileSystemStorage(). Do you think it has something to do with it? Regards, thanks for your time. Samara On Mon, Aug 17, 2020 at 4:32 PM Ketul Suthar wrote: > I will let you know. I am also working on same con

Re: load static in css file

2020-08-24 Thread sapna Choudhary
create a directory named 'static' in the current directory. This directory is used to store images/css files, you can load static in template using {%load static%} this code block and link under image tag like this {% static 'app_name/img.jpg' %} On Mon, Aug 24, 2020 at 6:16 PM 'Akash Sinha' via

Python Django Tutorial for absolute beginners

2020-08-24 Thread Balaji Shetty
Dear Participants 🌷*I am sharing you a video to learn Python Django with development of project and app. You can download source code of this video also from github link* https://www.youtube.com/watch?v=EY-XY2HDo_c 🌷 *Sourcecode* https://github.com/balaji-shetty/Django-Sample-Proj-With-CO

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

2020-08-24 Thread Haris Ahmad
Have you added whitenoise to the settings.py On Mon, 24 Aug 2020, 9:27 PM Amresh Giri, wrote: > Is is supposed to be "statics" ? > > On Mon, Aug 24, 2020, 9:49 PM alka reetesh > wrote: > >> I have used python manage.py collectstatic, which gave >> error--FileNotFoundError: [WinError 3] The syst

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

2020-08-24 Thread Amresh Giri
Is is supposed to be "statics" ? On Mon, Aug 24, 2020, 9:49 PM alka reetesh wrote: > I have used python manage.py collectstatic, which gave > error--FileNotFoundError: [WinError 3] The system cannot find the path > specified: 'C:\dmform\myproject\statics' > > -- > You received this message becau

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

2020-08-24 Thread Shivansh Sen
Try replace \ with \\ Shivansh Sen India On Mon, Aug 24, 2020, 21:49 alka reetesh wrote: > I have used python manage.py collectstatic, which gave > error--FileNotFoundError: [WinError 3] The system cannot find the path > specified: 'C:\dmform\myproject\statics' > > -- > You received this messag

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

2020-08-24 Thread alka reetesh
I have used python manage.py collectstatic, which gave error--FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\dmform\myproject\statics' -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this gr

Re: How to pass a set of objects in between two views?

2020-08-24 Thread Kunal Solanke
Two things come to my mind 1.Either create a questionlist model with for each user. 2.Bind questionlist to session. On Mon, Aug 24, 2020, 20:01 vipul shinde wrote: > from django.shortcuts import render, redirect > from .models import * > from .forms import UserForm > from django.contrib.auth.for

Re: Problem to see file or image uploaded in admin django

2020-08-24 Thread AMINE AZIZ
i found solution just i need to change media/ to /media/ :) Le lun. 24 août 2020 à 15:40, Ogunsanya Opeyemi a écrit : > Hi, do you have pillow installed in your library. and look for the image > in that path in your local directory. > > > On Mon, Aug 24, 2020 at 12:59 PM AMINE AZIZ wrote: >

Re: Problem to see file or image uploaded in admin django

2020-08-24 Thread Ogunsanya Opeyemi
Hi, do you have pillow installed in your library. and look for the image in that path in your local directory. On Mon, Aug 24, 2020 at 12:59 PM AMINE AZIZ wrote: > Problem to see file or image uploaded in admin django > > see image below > > my setting.py > > ---

Re: How to reset is_actibe field of auth_user

2020-08-24 Thread Amresh Giri
I think this setting can be handled from your IDP side in the application. On Mon, Aug 24, 2020, 5:46 PM Kamakshi Aggarwal wrote: > Hi, > > We are using django application in our company. We are using > RemoteUserAuthentication for that(single sign on). Only employees can sign > in. > Once empl

Re: How to pass a set of objects in between two views?

2020-08-24 Thread vipul shinde
from django.shortcuts import render, redirect from .models import * from .forms import UserForm from django.contrib.auth.forms import AuthenticationForm import random from django.contrib.auth import login, logout, authenticate # Create your views here. def home(request): return render(request,

Re: How to pass a set of objects in between two views?

2020-08-24 Thread hans alexander
Can you share the views.py that you wrote? Actually If the page for random set of questions is same for User NOT Logged In and User Logged In, the data you called from database will still showing up. On Mon, Aug 24, 2020 at 9:19 PM vipul shinde wrote: > > I'm building a quiz app in which I'm sto

How to pass a set of objects in between two views?

2020-08-24 Thread vipul shinde
I'm building a quiz app in which I'm storing questions in the database by creating a model class. I am retrieving a random question set for each user from the database and then rendering them on an HTML page. The problem is after logging a user in, a random set of questions appears but that random

Re: load static in css file

2020-08-24 Thread 'Akash Sinha' via Django users
Hi Create a folder inside ur project as static and keep ur images,css and js files into that folder then in your settings.py file define static path. U need to run python manage.py collect static command on terminal and then you have to link that css file in HTML Hint: check for Managing stati

How to reset is_actibe field of auth_user

2020-08-24 Thread Kamakshi Aggarwal
Hi, We are using django application in our company. We are using RemoteUserAuthentication for that(single sign on). Only employees can sign in. Once employee signs in,is_active filed is set to True by default in auth_user table. Now if user leaves the company how should I set "is_active" field t

Re: load static in css file

2020-08-24 Thread MAMADOU KANTE
Hi Everybody! I am trying to set a background image using the STYLE tag with django template as follows: But when I open the HTML page and inspect the page I receive an image with width zero. Can anyone help? When I use the same syntax on a regular HTML without django templates it works. On Mon,

Problem to see file or image uploaded in admin django

2020-08-24 Thread AMINE AZIZ
Problem to see file or image uploaded in admin django see image below my setting.py import os from django.utils.translation import gettext_lazy as _ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.p

Re: A question about running Channels and Django code under Celery

2020-08-24 Thread shahee...@gmail.com
Perhaps I should have known, but didn't: Celery 4.x does not support asyncio (celery#3883 , celery#3884 ). Luckily, this was explained over at channels_rabbitmq#25

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

2020-08-24 Thread RANGA BHARATH JINKA
Hi, Please check the location of the .whl file. Copy .whl file into your project root folder and install. All the best. On Mon, Aug 24, 2020 at 1:04 PM Makan Leboss wrote: > *my error code is:* " (myvenv) c:\djangoboys\dagakane>pip install > mysqlclient-1.4.6-cp38-cp38-win32.whl > WARNING:

Re: Sources for learning django

2020-08-24 Thread Setiawan Karnata
Dear All, Thank your for the info. Is there any specific Youtube channel/ebook pdf that explain/present how to make web application with Django using database PostgreSQL for beginner level? Thanks. Regards, Setiawan On Mon, Aug 24, 2020 at 4:06 AM 'Amitesh Sahay' via Django users < django-users@

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

2020-08-24 Thread Makan Leboss
*my error code is:* " (myvenv) c:\djangoboys\dagakane>pip install mysqlclient-1.4.6-cp38-cp38-win32.whl WARNING: Requirement 'mysqlclient-1.4.6-cp38-cp38-win32.whl' looks like a filename, but the file does not exist Processing .\mysqlclient-1.4.6-cp38-cp38-win32.whl ERROR: Could not install packa