Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Flask role-based authorization
Post: RE: Flask role-based authorization

Thanks a lot for all the info..
erdemath Web Scraping & Web Development 13 1,170 May-04-2024, 07:26 PM
    Thread: Flask role-based authorization
Post: RE: Flask role-based authorization

OK, and it is in the file users.db, which was defined by yourself
erdemath Web Scraping & Web Development 13 1,170 May-04-2024, 06:51 PM
    Thread: Flask role-based authorization
Post: RE: Flask role-based authorization

I see that you enter your name as ''username'' with some password. How does the script recognize you are the admin? Did you pre-define that specific username with its password somewhere in the script?
erdemath Web Scraping & Web Development 13 1,170 May-04-2024, 06:45 PM
    Thread: Flask role-based authorization
Post: RE: Flask role-based authorization

OK, it also finally worked for me. Thank you so much. Now, the next question. How would you define users with their activities? Some dictionary, or and html list of people with their usernames?
erdemath Web Scraping & Web Development 13 1,170 May-04-2024, 06:38 PM
    Thread: Flask role-based authorization
Post: RE: Flask role-based authorization

(May-03-2024, 07:08 PM)menator01 Wrote: Although I do not have a role system setup, here is a basic example that I was playing around with a while back. Hope it helps. I installed gunicorn in the ve...
erdemath Web Scraping & Web Development 13 1,170 May-04-2024, 06:18 PM
    Thread: Flask role-based authorization
Post: RE: Flask role-based authorization

(May-03-2024, 07:08 PM)menator01 Wrote: Although I do not have a role system setup, here is a basic example that I was playing around with a while back. Hope it helps. I installed gunicorn in the ve...
erdemath Web Scraping & Web Development 13 1,170 May-04-2024, 05:11 PM
    Thread: Flask role-based authorization
Post: Flask role-based authorization

I am working on a script about role-based authorization by using Flask. I am trying to run by gunicorn on Linux Ubuntu 18.02. However, every time I call the script, it does not proceed. Script, my pro...
erdemath Web Scraping & Web Development 13 1,170 May-03-2024, 12:39 PM
    Thread: Sequential Decision Making
Post: RE: Sequential Decision Making

Yes, this part creates the error. If you compile it on your interpreter, you must see the same error.
erdemath Data Science 2 1,215 Feb-10-2023, 06:30 AM
    Thread: Sequential Decision Making
Post: Sequential Decision Making

I am generating a sequential decision making model. I am using tensorflow.keras.sequantial. But any time I train my model, I have the following error Error:assert_input_compatibility str(tup...
erdemath Data Science 2 1,215 Feb-09-2023, 09:20 PM
    Thread: networkx package is not visible in singularity container image
Post: RE: networkx package is not visible in singularity...

We can use our container with the installation I described above. I can upgrade it later again with your instructions.
erdemath General Coding Help 11 2,459 Oct-14-2022, 11:56 AM
    Thread: networkx package is not visible in singularity container image
Post: RE: networkx package is not visible in singularity...

[*] First, here is the complete recipe for my .def file BootStrap: library From: ubuntu:20.04 %post export DEBIAN_FRONTEND=noninteractive apt-get -y update apt-get -y install build-essent...
erdemath General Coding Help 11 2,459 Oct-14-2022, 08:52 AM
    Thread: networkx package is not visible in singularity container image
Post: RE: networkx package is not visible in singularity...

Quote:From your 'container' (which I think is a virtual environment), can you access a command line (as in terminal, or 'cmd' in windows)? Yes! Also, yes container is a virtual environment. All were ...
erdemath General Coding Help 11 2,459 Oct-12-2022, 10:31 PM
    Thread: networkx package is not visible in singularity container image
Post: RE: networkx package is not visible in singularity...

This is how I performed the installation, and it did not work either. Installation in container for some python packages is not as in the actual linux environment. I was suggested to craft some contai...
erdemath General Coding Help 11 2,459 Oct-12-2022, 09:11 AM
    Thread: networkx package is not visible in singularity container image
Post: RE: networkx package is not visible in singularity...

Yes, this how I installed. But, I do not see it inside the container if I shell into the container as a user. I only see it if I shell into the container as the root. The main goal is to run python in...
erdemath General Coding Help 11 2,459 Oct-07-2022, 08:05 PM
    Thread: networkx package is not visible in singularity container image
Post: networkx package is not visible in singularity con...

I have singularity-ce version 3.10.2 on my ubuntu 20.04. I created my own Python library in a self built singularity container. I installed networkx package through pip in the library with no error. H...
erdemath General Coding Help 11 2,459 Oct-07-2022, 02:33 PM
    Thread: python installation/running inside singularity container
Post: RE: python installation/running inside singularity...

(Sep-20-2022, 09:44 PM)rob101 Wrote: Not that I know the first thing about singularity-ce, but what I can see (or what I think I can see) is that you're trying to run a bash command (apt-get -y upda...
erdemath General Coding Help 2 1,895 Sep-21-2022, 08:13 AM
    Thread: python installation/running inside singularity container
Post: python installation/running inside singularity con...

I have singularity-ce version 3.10.2 on ubuntu 20.02. I am trying to install python package. It always says; Error:Singularity> apt-get -y update bash: apt-get: command not foundHow can I resolve ...
erdemath General Coding Help 2 1,895 Sep-18-2022, 05:16 PM
    Thread: Python in Singularity Container on Ubuntu
Post: Python in Singularity Container on Ubuntu

I have ubuntu 20.04 and downloaded singularity 3.10.2. I created a container wherein I need to download, install, run my python codes. Here is the issue anytime I try to run my container; [inline] s...
erdemath General Coding Help 0 955 Aug-31-2022, 02:17 PM
    Thread: scatter3D different markers per data
Post: RE: scatter3D different markers per data

(May-27-2022, 03:38 PM)deanhystad Wrote: (May-27-2022, 09:03 AM)erdemath Wrote: data_A, data_B, data_C are numpy arrays belonging to the regions A,B and C.What are the dimensions of data_A, data_B...
erdemath Data Science 5 1,838 May-27-2022, 03:55 PM
    Thread: scatter3D different markers per data
Post: RE: scatter3D different markers per data

Sorry! I made a typo in the code. Here's the corrected lines, it must be clearer now what I do with the variable 'region'; data_all = np.vstack((data_A, data_B, data_C)) fig, ax = plt.subplots(figsiz...
erdemath Data Science 5 1,838 May-27-2022, 09:39 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020