I am a beginner coder and I want to be a web developer but I'm in a bit of a financial crunch, so is it possible for me to learn enough within 4 months and get a developer job? Any company is fine.
/r/Python
https://redd.it/107bo4p
/r/Python
https://redd.it/107bo4p
reddit
I am a beginner coder and I want to be a web developer but I'm in...
Posted in r/Python by u/Educational_Dark2464 • 1 point and 0 comments
chafa.py - Terminal graphics with Python
Hello r/Python! I'm here to introduce you to a project I've been working on called chafa.py [source](https://github.com/GuardKenzie/chafa.py). These are Python bindings for the amazing terminal image visualizer [Chafa](https://github.com/hpjansson/chafa).
## What does it do?
Well, Take for example, this [image of a snake](https://raw.githubusercontent.com/GuardKenzie/chafa.py/main/examples/snake.jpg). With a few lines of Python, it is rendered to:
https://preview.redd.it/2av1zu75q0ba1.png?width=400&format=png&auto=webp&s=b9a9563ac30602e7d0b12a2313de0685cbf681cb
It takes image data and converts it to graphics formats (kitty/sixels) or ANSI/Unicode characters suitable for display in your favorite terminal emulator.
in reality, the first few lines of the image is just the following characters:
▂▂▃▃▀▅▁▃▀▅▆▆▆▁▃▃▀▘╴▝▖▃▃▀▆▆▆━▂▃▀▅━▀▂▂┷▆▆▅
▃▀▀▁▃▅▔▔▅▂▀▅▆▃▃▂▂▁▁▁▋▂▁╶━▂▃▀▀━━─━┷▀▅▆▔▔▔
▃▅▆▔▂▂▀▀▀▀▀▀▂▂▀▅▔▔▃▆▃╷▝▔▆▀▁▅▆▔━▀▅▆▔▅▆━▂▂
▀▃▀▃▀▃▅▀▅▃▃▀▊▔▌▊▖╵┕▃▅▆▖▖▅╸▘━━━━━━━━▅▅▅▅▅
along with some terminal escape sequences to set the background and foreground colors. This image was rendered with the few lines of code I have included at the end of this post.
## Where can you get it?
Check out the [installation](https://chafapy.mage.black/usage/installation.html) page in the docs for full, up-to-date instructions. Basically, this is what's up:
**Chafa.py depends on**
* [Chafa](https://hpjansson.org/chafa/download/)
* [MagickWand](https://imagemagick.org/index.php) if you want to use the included Loader class to load images.
* Python 3.5 or newer
Chafa.py is available on PyPi and can be installed with
pip install chafa.py
## How do you use it?
Check out the docs at [chafapy.mage.black](https://chafapy.mage.black). They include [more
/r/Python
https://redd.it/107e2j9
Hello r/Python! I'm here to introduce you to a project I've been working on called chafa.py [source](https://github.com/GuardKenzie/chafa.py). These are Python bindings for the amazing terminal image visualizer [Chafa](https://github.com/hpjansson/chafa).
## What does it do?
Well, Take for example, this [image of a snake](https://raw.githubusercontent.com/GuardKenzie/chafa.py/main/examples/snake.jpg). With a few lines of Python, it is rendered to:
https://preview.redd.it/2av1zu75q0ba1.png?width=400&format=png&auto=webp&s=b9a9563ac30602e7d0b12a2313de0685cbf681cb
It takes image data and converts it to graphics formats (kitty/sixels) or ANSI/Unicode characters suitable for display in your favorite terminal emulator.
in reality, the first few lines of the image is just the following characters:
▂▂▃▃▀▅▁▃▀▅▆▆▆▁▃▃▀▘╴▝▖▃▃▀▆▆▆━▂▃▀▅━▀▂▂┷▆▆▅
▃▀▀▁▃▅▔▔▅▂▀▅▆▃▃▂▂▁▁▁▋▂▁╶━▂▃▀▀━━─━┷▀▅▆▔▔▔
▃▅▆▔▂▂▀▀▀▀▀▀▂▂▀▅▔▔▃▆▃╷▝▔▆▀▁▅▆▔━▀▅▆▔▅▆━▂▂
▀▃▀▃▀▃▅▀▅▃▃▀▊▔▌▊▖╵┕▃▅▆▖▖▅╸▘━━━━━━━━▅▅▅▅▅
along with some terminal escape sequences to set the background and foreground colors. This image was rendered with the few lines of code I have included at the end of this post.
## Where can you get it?
Check out the [installation](https://chafapy.mage.black/usage/installation.html) page in the docs for full, up-to-date instructions. Basically, this is what's up:
**Chafa.py depends on**
* [Chafa](https://hpjansson.org/chafa/download/)
* [MagickWand](https://imagemagick.org/index.php) if you want to use the included Loader class to load images.
* Python 3.5 or newer
Chafa.py is available on PyPi and can be installed with
pip install chafa.py
## How do you use it?
Check out the docs at [chafapy.mage.black](https://chafapy.mage.black). They include [more
/r/Python
https://redd.it/107e2j9
GitHub
GitHub - GuardKenzie/chafa.py: Python bindings for Chafa. Visualize images with text in python.
Python bindings for Chafa. Visualize images with text in python. - GuardKenzie/chafa.py
I have trouble reading the csv file.
I'm currently learning how to use Jupyter Notebook. I use Jupyterlite for practicing since i had trouble installing jupyter on my PC.
I wanted to try out the pandas.read_csv command but it has trouble finding the path to the csv file. I had uploaded it on /data but it didn't work.
I used the pwd command to see where the notebook was installed. (I don't know if the server installs them on the pc , couldn't find any information about that)
Does anyone know how to find the path so i can go back to practicing ?
​
https://preview.redd.it/ufpchtpttzaa1.jpg?width=1704&format=pjpg&auto=webp&s=23c5eba4a9cc52541701ab5e854ccda5228ae688
/r/JupyterNotebooks
https://redd.it/107awrk
I'm currently learning how to use Jupyter Notebook. I use Jupyterlite for practicing since i had trouble installing jupyter on my PC.
I wanted to try out the pandas.read_csv command but it has trouble finding the path to the csv file. I had uploaded it on /data but it didn't work.
I used the pwd command to see where the notebook was installed. (I don't know if the server installs them on the pc , couldn't find any information about that)
Does anyone know how to find the path so i can go back to practicing ?
​
https://preview.redd.it/ufpchtpttzaa1.jpg?width=1704&format=pjpg&auto=webp&s=23c5eba4a9cc52541701ab5e854ccda5228ae688
/r/JupyterNotebooks
https://redd.it/107awrk
Handling External API Calls
I am developing a feature that takes a text input, and uses it to make a request to an external API. The API then can take between 10-15 seconds to return a response. Currently, as a proof-of-concept, I am doing this in views.py. For arguments sake, lets assume I am expecting 20 people at a minimum to be triggering this view at the same time. I am fairly certain this is not a scalable option. Any suggestions on how I should be handling something like this? Thanks.
/r/django
https://redd.it/107i6ni
I am developing a feature that takes a text input, and uses it to make a request to an external API. The API then can take between 10-15 seconds to return a response. Currently, as a proof-of-concept, I am doing this in views.py. For arguments sake, lets assume I am expecting 20 people at a minimum to be triggering this view at the same time. I am fairly certain this is not a scalable option. Any suggestions on how I should be handling something like this? Thanks.
/r/django
https://redd.it/107i6ni
reddit
Handling External API Calls
I am developing a feature that takes a text input, and uses it to make a request to an external API. The API then can take between 10-15 seconds...
Tuesday Daily Thread: Advanced questions
Have some burning questions on advanced Python topics? Use this thread to ask more advanced questions related to Python.
If your question is a beginner question we hold a beginner Daily Thread tomorrow (Wednesday) where you can ask any question! We may remove questions here and ask you to resubmit tomorrow.
This thread may be fairly low volume in replies, if you don't receive a response we recommend looking at r/LearnPython or joining the Python Discord server at https://discord.gg/python where you stand a better chance of receiving a response.
/r/Python
https://redd.it/107ukq7
Have some burning questions on advanced Python topics? Use this thread to ask more advanced questions related to Python.
If your question is a beginner question we hold a beginner Daily Thread tomorrow (Wednesday) where you can ask any question! We may remove questions here and ask you to resubmit tomorrow.
This thread may be fairly low volume in replies, if you don't receive a response we recommend looking at r/LearnPython or joining the Python Discord server at https://discord.gg/python where you stand a better chance of receiving a response.
/r/Python
https://redd.it/107ukq7
Discord
Join the Python Discord Server!
We're a large community focused around the Python programming language. We believe that anyone can learn to code. | 412982 members
Is it possible to have a field that is based on another field (and updates with that field as well)?
I worded the title terribly. So I'll try to explain it better here.
We update our `MarketListing`'s every 5 minutes. We also keep track of how many of these items each user has in the `UserInventoryItem` model. I would like to add a field to the `UserInventoryItem` model along the lines of:
class UserInventoryItem(auto_prefetch.Model):
user_inventory = models.ForeignKey(UserInventory, on_delete=models.CASCADE)
player = models.ForeignKey(PlayerProfile, on_delete=models.CASCADE)
quantity = models.IntegerField(default=1)
card_total_value = **should be player.marketlisting.best_buy_value * quantity**
1. Is this possible?
2. Is there a way to have `card_total_value` update whenever `player.marketlisting.best_buy_value` updates?
We're currently using a SerializerMethodField() for this, but we'd like to be able to sort by this field.
Here are the relevant models if that is helpful/relevant:
class PlayerProfile(auto_prefetch.Model):
card_id = models.CharField(max_length=120, unique=True, primary_key=True)
game = models.CharField(max_length=120, null=True)
class MarketListing(auto_prefetch.Model):
item = models.CharField(max_length=120, unique=True, primary_key=True)
player_profile = auto_prefetch.OneToOneField(
/r/django
https://redd.it/107xmqq
I worded the title terribly. So I'll try to explain it better here.
We update our `MarketListing`'s every 5 minutes. We also keep track of how many of these items each user has in the `UserInventoryItem` model. I would like to add a field to the `UserInventoryItem` model along the lines of:
class UserInventoryItem(auto_prefetch.Model):
user_inventory = models.ForeignKey(UserInventory, on_delete=models.CASCADE)
player = models.ForeignKey(PlayerProfile, on_delete=models.CASCADE)
quantity = models.IntegerField(default=1)
card_total_value = **should be player.marketlisting.best_buy_value * quantity**
1. Is this possible?
2. Is there a way to have `card_total_value` update whenever `player.marketlisting.best_buy_value` updates?
We're currently using a SerializerMethodField() for this, but we'd like to be able to sort by this field.
Here are the relevant models if that is helpful/relevant:
class PlayerProfile(auto_prefetch.Model):
card_id = models.CharField(max_length=120, unique=True, primary_key=True)
game = models.CharField(max_length=120, null=True)
class MarketListing(auto_prefetch.Model):
item = models.CharField(max_length=120, unique=True, primary_key=True)
player_profile = auto_prefetch.OneToOneField(
/r/django
https://redd.it/107xmqq
reddit
Is it possible to have a field that is based on another field (and...
I worded the title terribly. So I'll try to explain it better here. We update our `MarketListing`'s every 5 minutes. We also keep track of how...
How We implemented Audit in our SaaS Django Platform
https://blog.adonissimo.com/how-we-implemented-audit-in-our-saas-django-platform
/r/django
https://redd.it/107vl92
https://blog.adonissimo.com/how-we-implemented-audit-in-our-saas-django-platform
/r/django
https://redd.it/107vl92
adonis simo's notes
How to do auditing in Django project and track models changes history.
How we used django-easy-audit and django-simple-history to track changes on our models and add auditing features to our platform.
Looking for contributors for my open source project stdepaul.org, a websites that helps people who are struggling find social services in their area
Site: https://stdepaul.org
GitHub: https://github.com/stdepaul/stdepaul
At the moment we need more data. I’m looking for contributors that can either add data manually or programmatically. So far there is only data for TX, CA, and PA, added programmatically (from state 211 sites). If you’re interested, please let me know! Contributors that get data from at least one state 211 site (a script to get the data via selenium takes 1-3 hours to make) will be added to the about page. Significant contributors may become cofounders when we want to incorporate. Please message me if interested. Thanks
/r/django
https://redd.it/107kb6e
Site: https://stdepaul.org
GitHub: https://github.com/stdepaul/stdepaul
At the moment we need more data. I’m looking for contributors that can either add data manually or programmatically. So far there is only data for TX, CA, and PA, added programmatically (from state 211 sites). If you’re interested, please let me know! Contributors that get data from at least one state 211 site (a script to get the data via selenium takes 1-3 hours to make) will be added to the about page. Significant contributors may become cofounders when we want to incorporate. Please message me if interested. Thanks
/r/django
https://redd.it/107kb6e
Looking for Django recommendations about frontend layer
Hello,
I'm a ReactJS/React Native developper, and for the company where I work today I have to create a new Django project (all the rest of the team is acquainted with Django).
My collegues are mostly backend developpers, and they don't have any experience with react frameworks.
So I'm looking for recommandations about implementing the frontend layer and keeping the Django views philosophy.
I think I will use Bootstrap Javascript and maybe JQuery if necessary. I don't know if there are any "more modern" approachs (but still keeping the views.py files).
So if you have some recommandations, i'm interested.
/r/django
https://redd.it/107hwu8
Hello,
I'm a ReactJS/React Native developper, and for the company where I work today I have to create a new Django project (all the rest of the team is acquainted with Django).
My collegues are mostly backend developpers, and they don't have any experience with react frameworks.
So I'm looking for recommandations about implementing the frontend layer and keeping the Django views philosophy.
I think I will use Bootstrap Javascript and maybe JQuery if necessary. I don't know if there are any "more modern" approachs (but still keeping the views.py files).
So if you have some recommandations, i'm interested.
/r/django
https://redd.it/107hwu8
reddit
Looking for Django recommendations about frontend layer
Hello, I'm a ReactJS/React Native developper, and for the company where I work today I have to create a new Django project (all the rest of the...
Many To Many delete relational model if no references exists
Hey guys,
I have this two models:
class X(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
max_impressions = models.PositiveIntegerField()
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
class Y(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
type = models.CharField(max_length=256)
content = models.TextField()
x = models.ManyToManyField("x.X", related_name='creatives')
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
I am trying to figure out how can I make sure record Y will be deleted if it has no references to X records, but I don't wont it to happen the other way around.
So, if I delete all X records that related to Y, than delete Y
but if I delete al Y records that relates to X than **don't delete** X.
Currently whenever I
/r/django
https://redd.it/107phq0
Hey guys,
I have this two models:
class X(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
max_impressions = models.PositiveIntegerField()
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
class Y(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
type = models.CharField(max_length=256)
content = models.TextField()
x = models.ManyToManyField("x.X", related_name='creatives')
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
I am trying to figure out how can I make sure record Y will be deleted if it has no references to X records, but I don't wont it to happen the other way around.
So, if I delete all X records that related to Y, than delete Y
but if I delete al Y records that relates to X than **don't delete** X.
Currently whenever I
/r/django
https://redd.it/107phq0
reddit
Many To Many delete relational model if no references exists
Hey guys, I have this two models: class X(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4,...
Django CBV: How come my child method is not overriding my parent method?
I'm pretty new when it comes to python classes / django CBVs. I'm trying to have a method (print\_test) from my child class override my parent class, but I can't get it to work. What am I doing wrong?
Below is my parent:
@method_decorator(login_required, name='dispatch')
class Base(View):
print("can you see the parent?")
def post(self, request):
def filter_test(self):
filter_dates, time_period_selection, data_type, loan_type, overflow, slug = filter_test(self)
def print_test(self):
return print("printing from parent")
print_test(self)
def rest_of_it(self):
data, mimetype = rest_of_it(self)
return HttpResponse(data, mimetype)
This is my child:
@method_decorator(login_required, name='dispatch')
# @fold
class RefactorQualityAjax(Base):
# pass
print('can you see the child?')
/r/django
https://redd.it/107nu22
I'm pretty new when it comes to python classes / django CBVs. I'm trying to have a method (print\_test) from my child class override my parent class, but I can't get it to work. What am I doing wrong?
Below is my parent:
@method_decorator(login_required, name='dispatch')
class Base(View):
print("can you see the parent?")
def post(self, request):
def filter_test(self):
filter_dates, time_period_selection, data_type, loan_type, overflow, slug = filter_test(self)
def print_test(self):
return print("printing from parent")
print_test(self)
def rest_of_it(self):
data, mimetype = rest_of_it(self)
return HttpResponse(data, mimetype)
This is my child:
@method_decorator(login_required, name='dispatch')
# @fold
class RefactorQualityAjax(Base):
# pass
print('can you see the child?')
/r/django
https://redd.it/107nu22
reddit
Django CBV: How come my child method is not overriding my parent...
Posted in r/django by u/Commercial-Slip1635 • 0 points and 6 comments
Python Tutorial: Simulate the Powerball Lottery Using Python (Corey Schafer is back!)
https://www.youtube.com/watch?v=HZ8uXq5VG2w
/r/Python
https://redd.it/107rksp
https://www.youtube.com/watch?v=HZ8uXq5VG2w
/r/Python
https://redd.it/107rksp
YouTube
Python Tutorial: Simulate the Powerball Lottery Using Python
In this Python Programming video, we will be learning how to simulate the Powerball lottery using Python. I have seen several lottery simulations online, but not many of them go in-depth to calculate all of the possible combinations. Here, we will create…
R Class-Continuous Conditional Generative Nerual Radiance Field
Paper: https://arxiv.org/abs/2301.00950
Project Page: https://tom919654.github.io/C3G\_NeRF/ (Videos included)
Code: https://github.com/tom919654/C3G-NeRF
​
Abstract:
The 3D-aware image synthesis focuses on conserving spatial consistency besides generating high-resolution images with fine details. Recently,Neural Radiance Field (NeRF) has been introduced for synthesizing novel views with low computational cost and superior performance. While several works investigate a generative NeRF and show remarkable achievement, they cannot handle conditional and continuous feature manipulation in the generation procedure. In this work, we introduce a novel model, called ClassContinuous Conditional Generative NeRF (C^(3)GNeRF), which can synthesize conditionally manipulated photorealistic 3D-consistent images by projecting conditional features to the generator and the discriminator. The proposed C^(3)GNeRF is evaluated with three image datasets, AFHQ, CelebA, and Cars. As a result, our model shows strong 3D-consistency with fine details and
smooth interpolation in conditional feature manipulation. For instance, C^(3)G-NeRF exhibits a Frechet Inception Distance (FID) of 7.64 in 3D- aware face image synthesis with a 128^(2) resolution. Additionally, we provide FIDs of generated 3D-aware images of each class of the datasets as it is possible to synthesize class-conditional images with C^(3)G-NeRF.
​
Results:
https://preview.redd.it/9y8b316dx4ba1.png?width=1750&format=png&auto=webp&s=8470793ff3974932058e1bd196ba7a857375f22f
​
https://preview.redd.it/0icxw8blx4ba1.png?width=1595&format=png&auto=webp&s=4a7c7226d7a9c5a2b28492aca8157c7037b4a647
https://reddit.com/link/107z8z1/video/ka6cqf1gx4ba1/player
​
https://reddit.com/link/107z8z1/video/2lm0bamix4ba1/player
/r/MachineLearning
https://redd.it/107z8z1
Paper: https://arxiv.org/abs/2301.00950
Project Page: https://tom919654.github.io/C3G\_NeRF/ (Videos included)
Code: https://github.com/tom919654/C3G-NeRF
​
Abstract:
The 3D-aware image synthesis focuses on conserving spatial consistency besides generating high-resolution images with fine details. Recently,Neural Radiance Field (NeRF) has been introduced for synthesizing novel views with low computational cost and superior performance. While several works investigate a generative NeRF and show remarkable achievement, they cannot handle conditional and continuous feature manipulation in the generation procedure. In this work, we introduce a novel model, called ClassContinuous Conditional Generative NeRF (C^(3)GNeRF), which can synthesize conditionally manipulated photorealistic 3D-consistent images by projecting conditional features to the generator and the discriminator. The proposed C^(3)GNeRF is evaluated with three image datasets, AFHQ, CelebA, and Cars. As a result, our model shows strong 3D-consistency with fine details and
smooth interpolation in conditional feature manipulation. For instance, C^(3)G-NeRF exhibits a Frechet Inception Distance (FID) of 7.64 in 3D- aware face image synthesis with a 128^(2) resolution. Additionally, we provide FIDs of generated 3D-aware images of each class of the datasets as it is possible to synthesize class-conditional images with C^(3)G-NeRF.
​
Results:
https://preview.redd.it/9y8b316dx4ba1.png?width=1750&format=png&auto=webp&s=8470793ff3974932058e1bd196ba7a857375f22f
​
https://preview.redd.it/0icxw8blx4ba1.png?width=1595&format=png&auto=webp&s=4a7c7226d7a9c5a2b28492aca8157c7037b4a647
https://reddit.com/link/107z8z1/video/ka6cqf1gx4ba1/player
​
https://reddit.com/link/107z8z1/video/2lm0bamix4ba1/player
/r/MachineLearning
https://redd.it/107z8z1
GitHub
GitHub - tom919654/C3G-NeRF
Contribute to tom919654/C3G-NeRF development by creating an account on GitHub.
Starlite development updates January ’23
Hello there fellow Pythonistas, do you have a moment to talk about the web framework of choice, Starlite?
In case you're wondering what the heck a Starlite is, here's a quick elevator pitch: Starlite is an ASGI web framework focused on building highly performant APIs quickly and with ease by providing many tools out of the box such as a stellar OpenAPI integration, ORM integration with SQLAlchemy, Piccolo and Tortoise ORM, type safety using rigorous typing, excellent Pydantic support, and many mechanism for customization.
## So what's new?
The first thing I want to highlight was a much requested feature: Starlite now includes a CLI, allowing to quickly run and inspect Starlite applications, featuring a smart autodiscovery that's not restricted by naming conventions.
The CLI is something we are planning to expand on, u/Goldziher for example is currently working on an TypeScript generator that can generate typing files directly from a Starlite app, using the OpenAPI schema!
In other news, Starlite has succumbed to carcinization; Our query string parsing is now done by a dedicated Rust library. Why? Performance.
As you can see, in this benchmark Starlite handily beats even blakchseep, a notoriously fast ASGI framework written in Cython
If you're coming from Flask and are
/r/Python
https://redd.it/108aq5b
Hello there fellow Pythonistas, do you have a moment to talk about the web framework of choice, Starlite?
In case you're wondering what the heck a Starlite is, here's a quick elevator pitch: Starlite is an ASGI web framework focused on building highly performant APIs quickly and with ease by providing many tools out of the box such as a stellar OpenAPI integration, ORM integration with SQLAlchemy, Piccolo and Tortoise ORM, type safety using rigorous typing, excellent Pydantic support, and many mechanism for customization.
## So what's new?
The first thing I want to highlight was a much requested feature: Starlite now includes a CLI, allowing to quickly run and inspect Starlite applications, featuring a smart autodiscovery that's not restricted by naming conventions.
The CLI is something we are planning to expand on, u/Goldziher for example is currently working on an TypeScript generator that can generate typing files directly from a Starlite app, using the OpenAPI schema!
In other news, Starlite has succumbed to carcinization; Our query string parsing is now done by a dedicated Rust library. Why? Performance.
As you can see, in this benchmark Starlite handily beats even blakchseep, a notoriously fast ASGI framework written in Cython
If you're coming from Flask and are
/r/Python
https://redd.it/108aq5b
GitHub
GitHub - litestar-org/litestar: Light, flexible and extensible ASGI framework | Built to scale
Light, flexible and extensible ASGI framework | Built to scale - litestar-org/litestar
What Django admin theme do you use ?
We happily use Django in our company and the plan is that our Key Account Managers will be responsible to manage their customer accounts.
But the feedback I get a lot is that Django admin is scary.
It looks complex with its small button and old school look.
So I want to theme it to make it less scary.
I really like Jolie as a theme, but looking at their website, it looks dead to me. They are asking for 200$ for a beta licence, alongside a button to get notified when it gets live. And I think it's been like this for a year.
So what have you guys implemented to make Django admin less scary for non tech administrators ?
Thanks a lot.
/r/django
https://redd.it/108d79r
We happily use Django in our company and the plan is that our Key Account Managers will be responsible to manage their customer accounts.
But the feedback I get a lot is that Django admin is scary.
It looks complex with its small button and old school look.
So I want to theme it to make it less scary.
I really like Jolie as a theme, but looking at their website, it looks dead to me. They are asking for 200$ for a beta licence, alongside a button to get notified when it gets live. And I think it's been like this for a year.
So what have you guys implemented to make Django admin less scary for non tech administrators ?
Thanks a lot.
/r/django
https://redd.it/108d79r
reddit
What Django admin theme do you use ?
We happily use Django in our company and the plan is that our Key Account Managers will be responsible to manage their customer accounts. But...
Django authentication works locally but not in PaaS cloud server
I have deployed a Django/Django Rest Framework application to Render and it works well except for the authentication process. I am using PostgreSQL for the database.
​
Authentication is based on Django sessions, and it works in my local server but not in Render, where it returns a 500 server error when trying to log in with some user credentials.
All the other database interactions and APIs work in Render, including registering users in the database. I guess there is some server configuration problem.
​
Any idea about how to solve this?
/r/django
https://redd.it/108lhru
I have deployed a Django/Django Rest Framework application to Render and it works well except for the authentication process. I am using PostgreSQL for the database.
​
Authentication is based on Django sessions, and it works in my local server but not in Render, where it returns a 500 server error when trying to log in with some user credentials.
All the other database interactions and APIs work in Render, including registering users in the database. I guess there is some server configuration problem.
​
Any idea about how to solve this?
/r/django
https://redd.it/108lhru
reddit
Django authentication works locally but not in PaaS cloud server
I have deployed a Django/Django Rest Framework application to Render and it works well except for the authentication process. I am using...
spam prevention in contact form issues
I cant use django re captcha. Is not working the import from captcha.fields
Simple-captcha didnt do the vallidations.
I'm thinking i should make a custom Anti spam for My contact form. Something like a simple math question in jpg.
But i would like to have Something more professional.
There ls another library or anyone allready have My problem and could solve it?
Thanks
/r/django
https://redd.it/108cxov
I cant use django re captcha. Is not working the import from captcha.fields
Simple-captcha didnt do the vallidations.
I'm thinking i should make a custom Anti spam for My contact form. Something like a simple math question in jpg.
But i would like to have Something more professional.
There ls another library or anyone allready have My problem and could solve it?
Thanks
/r/django
https://redd.it/108cxov
reddit
spam prevention in contact form issues
I cant use django re captcha. Is not working the import from captcha.fields Simple-captcha didnt do the vallidations. I'm thinking i should make...
Best practise to save timezone
So, I'm workin on a project based on USA, and they only need UTC -5 timezone.
which one is the best practise to save time in a DB:
Save it as UTC-5
Save it as UTC-0 and make a conversion when displaying on frontend
/r/django
https://redd.it/108agj9
So, I'm workin on a project based on USA, and they only need UTC -5 timezone.
which one is the best practise to save time in a DB:
Save it as UTC-5
Save it as UTC-0 and make a conversion when displaying on frontend
/r/django
https://redd.it/108agj9
reddit
Best practise to save timezone
So, I'm workin on a project based on USA, and they only need UTC -5 timezone. which one is the best practise to save time in a DB: * Save...
Problem with "unique" values
I'm currently working on my project and it has some values as *unique* and these values are being handled in an overwritten *get\_queryset* function and it is as follows:
```
def get_queryset(self):
data = self.request.data
categories = {
"carpet" : Flow.carpet,
"furniture" : Flow.furniture,
"eyewear" : Flow.eyewear,
"home" : Flow.home,
"shoe" : Flow.shoe,
"beauty" : Flow.beauty,
"accessories" : Flow.accessories,
"video" : Flow.video
}
if data['usdz_file']:
project = Project.objects.create(name = data['name'], poster = data['poster'], glb_file =
/r/django
https://redd.it/108mifu
I'm currently working on my project and it has some values as *unique* and these values are being handled in an overwritten *get\_queryset* function and it is as follows:
```
def get_queryset(self):
data = self.request.data
categories = {
"carpet" : Flow.carpet,
"furniture" : Flow.furniture,
"eyewear" : Flow.eyewear,
"home" : Flow.home,
"shoe" : Flow.shoe,
"beauty" : Flow.beauty,
"accessories" : Flow.accessories,
"video" : Flow.video
}
if data['usdz_file']:
project = Project.objects.create(name = data['name'], poster = data['poster'], glb_file =
/r/django
https://redd.it/108mifu
reddit
Problem with "unique" values
I'm currently working on my project and it has some values as *unique* and these values are being handled in an overwritten *get\_queryset*...