Anonymous
holy ... I had already done it the right way, but it was not showing up because I forgot to add answers
Brian
Hi guys.. I want to create a script to copy some columns from a table to a new table(same database). Anyone know of an example I can look at or point me to a tutorial to get an idea of what to do?
Anonymous
the old table is a model in Django?
Joni
[...../my_django_site] One of your dependencies may have a security vulnerability.] First time I am getting the above message on my GitHub account.. seems like by just updating my django all would be fine.. but why am I getting this...what happened? Did this happen to you too?
Joni
Known moderate severity security vulnerability detected in django >= 2.0.0, < 2.0.2 defined in Pipfile.Pipfile update suggested: django ~> 2.0.2.Always verify the validity and compatibility of suggestions with your codebase.
Joni
Thanks, what is wrong with this Django version then? Hope microsoft is not trashing github
Mirco
Thanks, what is wrong with this Django version then? Hope microsoft is not trashing github
There was a vulnerability about AuthenticationForm inside django contrib auth , resolved with newer versions
Joni
Oh okok real issue then. Thank you..just new at django
Raghav
Anyone plzz guide me
Raghav
I am doing alumni student interaction we application
Raghav
Web application
Raghav
Here user will register their details and can post any suggestions or images
Mirco
what's the matter ? RAg
Raghav
What i have to do to allow users to see the posts of others
Mirco
list all of posts in your model instead of filtering by logged user
Anonymous
How can someone implement master card payment into Django project
Mirco
How can someone implement master card payment into Django project
https://github.com/mirumee/django-payments/blob/master/README.md But spend time by googling before asking here, there are lots of info
Anonymous
Correct
you could iterate the info of that model and save it in another model or in a table directly
Jimmies San
MS added a lot of features to github. for example for very very big repos
Ayush
Is there any way we can look at access logs on admin panel
N S
I cannot start gunicorn service for my django project can anyone tell me what might be the reason
ʚɞÇherry Łoveʚɞ
please ask directly, stop meta questioning.
Anonymous
It's still independent github till 2019
Jimmies San
MS haven't even got the control
yes i know: but that mean "they don't ruin things: they empower them :D "
Anonymous
Ahh
Raghav
http://dpaste.com/37DQ503
Raghav
Please anyone check the error
inchidi
Please anyone check the error
isn't it pretty obvious
Raghav
Way to resolve😕
Михаил
Good afternoon, tell me please how to translate datetime.timedelta to int?
arunkrishnan
Way to resolve😕
The issue is version compatibility, check external apps you are using and its compatibility with Django 1.7
Ronald
Random question. It's probably not very Pythonic or academically accurate, but what's the longest single function script you've ever written? I'm writing an ajax call script with a whole bunch of conditions. Well over 120 lines now. 😂
Anonymous
* single function *
Anonymous
* 120 *
Anonymous
You should create abstractions
Mr. Rude
But then split up into 3 functions
Mr. Rude
1 recursive
Mr. Rude
It came down to like 100+ in total
Mr. Rude
Mr. Rude
Then eventually I figured I could do all of it in like 10 lines
Mr. Rude
So
Mr. Rude
Me when I did that
Mr. Rude
Was related to pandas
Ronald
I think I end up with long lines when I’m figuring out concepts and stuff… but already looking at my code, I see a lot of ways I can shorten it.
Raghav
Anyone having django 2 by example book?
Rajjix
Anyone having django 2 by example book?
google has many should try it sometime www.google.com
Rajjix
Or the docs which again are the best docs i’ve seen among all python libraries i’ve used
Raghav
Rajjix
Tango with django is not premium, although I haven’t read idk how good it is but it’s popular
Rajjix
but for me personally a good path to learn django is do the tutorial app in the docs step by step and try to understand what they are explaining instead of just copying the code
Rajjix
Then pick any stupid idea for a website and start doing it, assuming you are somehow good with python and understand it’s data-structures and workflow, and start executing it step by step, and when you face problems solving certain things like forms not displaying what they should or idk many other errors then you can ask for help here concerning these problems, i’m sure no one is going to teach u how to use django more than your practice and failures and errors which you learn upon
Raghav
Thanks u brother👍👍
Rajjix
Good luck 👍🍀
Rajjix
New to Django? here is some resources to start Official docs tutorial Django Girls simpleisbetterthancomplex.com Mozilla Developer Network #videos thenewboston sentdex #books Django by Example Tango with Django Two Scoops of Django DJango ORM Cookbook
Mr. Rude
List out everything
Mr. Rude
And then just be lazy
Mr. Rude
😂
Guilherme
Hi everyone.
Renita
Hey there guys. I'm Renita. I was working on Django to built a event management app. Im able to add entries to the website but I'm not able to delete It is showing path error. I would have posted the screenshot of error but I'm restricted till 11th October to post anything in the group apart from contact and location I guess.
Guilherme
I started with Django short time ago. And I need some help. How do I keep an specific Python script (prices.py) while some view can ask for informations that are "created" by this test? Is there any documentation about it? I have this prices.py generating a list of prices and I want my Django view, when submmited, to get those prices instead of running the script inside of it, just receive those informations that will be running independently of it's view been called or not. I appreciate all the help/answers. Thank you very much!
Guilherme
you are abusing test then. you should use fixtures for that, not test
Sorry @Inchidi. I problably did a mistake. This "test" name I used is just a figurative name, I am not meaning any kind of Test it self. I will rename it, thank you!
Renita
https://dpaste.de/Doaw#L3
Guilherme
then where the prices data stored? file or database(Model)?
It is a dict. I do not want it to be stored, just to be up to date with values came from a Scrapy script.