The first project I'm taking seriously, on what level am I?
The goal is very simple: save all development-related things and organize everything into "collections" or just insert tags.
​
The first functional part is almost ready: you can add a github repository, the data gets saved in the database and I use Axios to get the star quantity and description updated.
At the moment, you can add a repository normally, I'm thinking of: option for tags, or else, create a named collection, eg: Django + Python: for all repositories over Django and Python, or something like Data Science: for all repositories related to data science, independent of language. Everything would be organized into collections, which would be basically a title of a book, and the repository, its chapters. This idea of collection in fact I intend to add in all funcionalides, because it gets more organized, on the other hand, someone may not like to feel compelled to create a collection for everything.
​
You can see how you're currently in this [video](https://vimeo.com/327502829), and some parts of the [code here](https://pastebin.com/axzUn7Z4), I have not yet put it in github, but when it's done I'll put it.
​
Stack Details:
css / scss: I mostly use to nest and use a BEM-like style, which is actually a basic attempt to
/r/djangolearning
https://redd.it/b7hr52
The goal is very simple: save all development-related things and organize everything into "collections" or just insert tags.
​
The first functional part is almost ready: you can add a github repository, the data gets saved in the database and I use Axios to get the star quantity and description updated.
At the moment, you can add a repository normally, I'm thinking of: option for tags, or else, create a named collection, eg: Django + Python: for all repositories over Django and Python, or something like Data Science: for all repositories related to data science, independent of language. Everything would be organized into collections, which would be basically a title of a book, and the repository, its chapters. This idea of collection in fact I intend to add in all funcionalides, because it gets more organized, on the other hand, someone may not like to feel compelled to create a collection for everything.
​
You can see how you're currently in this [video](https://vimeo.com/327502829), and some parts of the [code here](https://pastebin.com/axzUn7Z4), I have not yet put it in github, but when it's done I'll put it.
​
Stack Details:
css / scss: I mostly use to nest and use a BEM-like style, which is actually a basic attempt to
/r/djangolearning
https://redd.it/b7hr52
Vimeo
2019-03-30 20-48-37
This is "2019-03-30 20-48-37" by Marcos on Vimeo, the home for high quality videos and the people who love them.
Directing cronjobs via email/sms
I’m looking for some advice after failing to find any relevant info through Google.
I have a cron job running on AWS. It does its job in 2 steps.
Step 1: it scrapes data and processes it
Step 2: it posts the processed data on the internet
Ideally I’d like to get a text or email from the job in between step 1 and step 2 where it would show me the processed data before posting. Then I can respond with a yes or no if I want it to proceed.
My intuition is that there isn’t a great way to do this and I’ll probably have to come up with a hacky method. I hope I’m wrong though.
Any suggestions?
/r/Python
https://redd.it/b7i3tj
I’m looking for some advice after failing to find any relevant info through Google.
I have a cron job running on AWS. It does its job in 2 steps.
Step 1: it scrapes data and processes it
Step 2: it posts the processed data on the internet
Ideally I’d like to get a text or email from the job in between step 1 and step 2 where it would show me the processed data before posting. Then I can respond with a yes or no if I want it to proceed.
My intuition is that there isn’t a great way to do this and I’ll probably have to come up with a hacky method. I hope I’m wrong though.
Any suggestions?
/r/Python
https://redd.it/b7i3tj
reddit
r/Python - Directing cronjobs via email/sms
0 votes and 2 comments so far on Reddit
Flask not updating SCSS
I'm currently making a website that has a flask backend with a front end of SCSS, for a while Flask would update the SCSS with no issues but now it's not sending any updates to the front end. Can't release the code for it but the fixes I've tried are, hard reset of the browser cache (CTRL SHIFT R), checking on a different browser/computer, making sure that the app config has TEMPLATE\_AUTO\_RELOAD is set to True. Also tried using Flask-CSS extension but made no difference.
​
Can't figure this out, any ideas/help would be great. Thanks!
​
/r/flask
https://redd.it/b7gn5m
I'm currently making a website that has a flask backend with a front end of SCSS, for a while Flask would update the SCSS with no issues but now it's not sending any updates to the front end. Can't release the code for it but the fixes I've tried are, hard reset of the browser cache (CTRL SHIFT R), checking on a different browser/computer, making sure that the app config has TEMPLATE\_AUTO\_RELOAD is set to True. Also tried using Flask-CSS extension but made no difference.
​
Can't figure this out, any ideas/help would be great. Thanks!
​
/r/flask
https://redd.it/b7gn5m
reddit
r/flask - Flask not updating SCSS
3 votes and 3 comments so far on Reddit
I’m relearning how to code in python on my raspberry pi and don’t know what to code. Any fairly simple things that you would suggest to code to try and help me relearn how to code.
/r/Python
https://redd.it/b7kwvh
/r/Python
https://redd.it/b7kwvh
reddit
r/Python - I’m relearning how to code in python on my raspberry pi and don’t know what to code. Any fairly simple things that you…
0 votes and 2 comments so far on Reddit
Introduction To Python Programming
[https://www.youtube.com/watch?v=rpqPZreqaYo](https://www.youtube.com/watch?v=rpqPZreqaYo)
/r/Python
https://redd.it/b7l4tp
[https://www.youtube.com/watch?v=rpqPZreqaYo](https://www.youtube.com/watch?v=rpqPZreqaYo)
/r/Python
https://redd.it/b7l4tp
YouTube
Introduction To Python Programming
Social Network for Developers ☞ https://morioh.com Aiodex’s Referral Program will give you 20% -80% commission from their transaction fee for 7 years. The va...
pygame 1.9.5 released into the wilds
https://www.pygame.org/news/2019/3/1-9-5-released-into-the-wilds
/r/Python
https://redd.it/b7moqz
https://www.pygame.org/news/2019/3/1-9-5-released-into-the-wilds
/r/Python
https://redd.it/b7moqz
www.pygame.org
pygame 1.9.5 released into the wilds — 31 Mar, 2019
Our biggest release yet. Every single source file has been heavily modified and moved in this release.
[QUESTION] Which is better NodeJS or Flask?
I'm trying to build a RESTful API but I'm confused as to which framework to use? I'm comfortable with both JavaScript and Python. I'm looking at NodeJS(Express.js) and Flask as possible options right now. The API I'm building will be a small scale API in the beginning but I'm planning on scaling it to a larger platform in the future. Can someone please help me clear this confusion and suggest me the best framework to use. It's okay if the API you have in mind is not one of the two options that I'm talking about. THANKS IN ADVANCE!!!
/r/flask
https://redd.it/b7ln0p
I'm trying to build a RESTful API but I'm confused as to which framework to use? I'm comfortable with both JavaScript and Python. I'm looking at NodeJS(Express.js) and Flask as possible options right now. The API I'm building will be a small scale API in the beginning but I'm planning on scaling it to a larger platform in the future. Can someone please help me clear this confusion and suggest me the best framework to use. It's okay if the API you have in mind is not one of the two options that I'm talking about. THANKS IN ADVANCE!!!
/r/flask
https://redd.it/b7ln0p
reddit
r/flask - [QUESTION] Which is better NodeJS or Flask?
1 vote and 6 comments so far on Reddit
Python is shipping on the new TI-83 Premium CE calculators in France
https://blog.adafruit.com/2019/03/31/use-circuitpython-boards-on-the-ti-83-premium-ce-calculator-tiplanetnews-ticalculators-circuitpython-circuitpython/
/r/Python
https://redd.it/b7qs9h
https://blog.adafruit.com/2019/03/31/use-circuitpython-boards-on-the-ti-83-premium-ce-calculator-tiplanetnews-ticalculators-circuitpython-circuitpython/
/r/Python
https://redd.it/b7qs9h
Adafruit Industries - Makers, hackers, artists, designers and engineers!
Use CircuitPython boards on the TI-83 Premium CE calculator! @tiplanetnews @TICalculators @circuitpython #circuitpython
The new Texas Instruments TI-Python external module for the TI-83 Premium CE calculator runs CircuitPython and has an Atmel ATSAMD21E18 chip, some calculator hackers at TI Planet figured out how to…
how do i import javascript files?
hi guys,
i am making a website that will run in a close network, as a part of that i had to download all the bootstrap files into a local folder so it wont access the net.
for some reason, i can import my css files as i do :
<link rel="stylesheet" href="{url\_for ('static',filename='bootstrap.css')}" >
but doing the same for javascript wont work:
<script type="text/javascript" src="{url\_for ('static',filename='bootstrap.js')} "></script>
​
thank you!
/r/flask
https://redd.it/b7rhl7
hi guys,
i am making a website that will run in a close network, as a part of that i had to download all the bootstrap files into a local folder so it wont access the net.
for some reason, i can import my css files as i do :
<link rel="stylesheet" href="{url\_for ('static',filename='bootstrap.css')}" >
but doing the same for javascript wont work:
<script type="text/javascript" src="{url\_for ('static',filename='bootstrap.js')} "></script>
​
thank you!
/r/flask
https://redd.it/b7rhl7
reddit
r/flask - how do i import javascript files?
3 votes and 5 comments so far on Reddit
How to set up conditional Admin Inlines in Django 2.2
I have a model with three different related fields. There are also three inlines, one for each relation. I want to be able to display only ONE inline based on another property (`type`). So, if `type == 0`, show Inline #1 etc.
Here is the code that I am using (based on Django Docs: https://docs.djangoproject.com/en/2.2/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_inline_instances):
class Event(admin.ModelAdmin):
inlines = [ResultTrialsInline]
def get_inline_instances(self, request, obj=None):
if obj.type == 1:
return [ResultTrialsInline(self.model, self.admin_site)]
return []
However, I keep getting the following error when changing the type on an existing model:
['ManagementForm data is missing or has been tampered with']
Is there a wat to solve this?
/r/djangolearning
https://redd.it/b7m6mj
I have a model with three different related fields. There are also three inlines, one for each relation. I want to be able to display only ONE inline based on another property (`type`). So, if `type == 0`, show Inline #1 etc.
Here is the code that I am using (based on Django Docs: https://docs.djangoproject.com/en/2.2/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_inline_instances):
class Event(admin.ModelAdmin):
inlines = [ResultTrialsInline]
def get_inline_instances(self, request, obj=None):
if obj.type == 1:
return [ResultTrialsInline(self.model, self.admin_site)]
return []
However, I keep getting the following error when changing the type on an existing model:
['ManagementForm data is missing or has been tampered with']
Is there a wat to solve this?
/r/djangolearning
https://redd.it/b7m6mj
Django Project
The Django admin site | Django documentation
The web framework for perfectionists with deadlines.
I wrote a script to convert an RGB image to an excel spreadsheet.
Github repo with explanation: [https://github.com/takacs/pixel\_spreadsheet](https://github.com/takacs/pixel_spreadsheet)
/r/Python
https://redd.it/b7t6jq
Github repo with explanation: [https://github.com/takacs/pixel\_spreadsheet](https://github.com/takacs/pixel_spreadsheet)
/r/Python
https://redd.it/b7t6jq
Simulating traffic for a django site?
I have a site that is struggling to handle its peak traffic, which peaks on specific days due to the event-based nature of the site. As I work on scaling it, I'd like to be able to simulate the traffic to make sure things don't break down before the next event, which is a really important one.
How can I do this? Write a web scraping script and launch 5000 instances against my site? I'm not sure what the best/common practices here are, so any advice or suggestions are appreciated!
/r/django
https://redd.it/b7r7ud
I have a site that is struggling to handle its peak traffic, which peaks on specific days due to the event-based nature of the site. As I work on scaling it, I'd like to be able to simulate the traffic to make sure things don't break down before the next event, which is a really important one.
How can I do this? Write a web scraping script and launch 5000 instances against my site? I'm not sure what the best/common practices here are, so any advice or suggestions are appreciated!
/r/django
https://redd.it/b7r7ud
reddit
r/django - Simulating traffic for a django site?
22 votes and 16 comments so far on Reddit
End-to-end python script to generate mosaic posters made from scenes extracted from movies. https://github.com/SouravSharan/photomosaic
/r/Python
https://redd.it/b7ye9z
/r/Python
https://redd.it/b7ye9z
ACRONYM: a python code to aid astronomers in producing contrived acronyms
https://github.com/bacook17/acronym
/r/Python
https://redd.it/b7zhfo
https://github.com/bacook17/acronym
/r/Python
https://redd.it/b7zhfo
GitHub
GitHub - bacook17/acronym: ACRONYM (Acronym CReatiON for You and Me)
ACRONYM (Acronym CReatiON for You and Me). Contribute to bacook17/acronym development by creating an account on GitHub.
Rust like return library for python (return the last expression without `return` keyword).
https://github.com/abstractequalsmagic/rustyreturn
/r/Python
https://redd.it/b82vyz
https://github.com/abstractequalsmagic/rustyreturn
/r/Python
https://redd.it/b82vyz
GitHub
isidentical/rustyreturn
RLR (rust-like-return) for python functions. Contribute to isidentical/rustyreturn development by creating an account on GitHub.