-
Replied To a Post in django inserting data to database from views.py file
I don't know how but the problem fixed after rebooting system. -
Replied To a Post in django inserting data to database from views.py file
models.py: from django.db import models class Publisher(models.Model): name = models.CharField(max_length=30) city = models.CharField(max_length=60) views.py: from django.http import HttpResponse import pymysql from books.models import Publisher def send(request): p = Publisher(name='Apress', city='Berkeley') … -
Edited django inserting data to database from views.py file
Hello. I want to insert data into django db from a function in the **views.py** file. I'm using **linux**, **python 3.4**, **django 1.8.2**, **PyMySQL** -
Created django inserting data to database from views.py file
Hello. I want to insert data into django db from a function in the **views.py** file. I'm using **linux**, **python 3.4**, **django 1.8.2**, **PyMySQL** -
Began Watching django inserting data to database from views.py file
Hello. I want to insert data into django db from a function in the **views.py** file. I'm using **linux**, **python 3.4**, **django 1.8.2**, **PyMySQL** -
Marked Solved Status for django "python manage.py validate" prints error "unknown command"
Hello. With running this command: `python manage.py validate` I faced with this error: `Unknown command: 'validate'` What should I do now? For more explanations: - Linux - Virtualenv - Python … -
Replied To a Post in django "python manage.py validate" prints error "unknown command"
I found the answer myself: `pip install Django==1.8.2` **Django==1.9.2** Does not support some commands. -
Created django "python manage.py validate" prints error "unknown command"
Hello. With running this command: `python manage.py validate` I faced with this error: `Unknown command: 'validate'` What should I do now? For more explanations: - Linux - Virtualenv - Python … -
Began Watching django "python manage.py validate" prints error "unknown command"
Hello. With running this command: `python manage.py validate` I faced with this error: `Unknown command: 'validate'` What should I do now? For more explanations: - Linux - Virtualenv - Python … -
Created How to config mysql with django and phpmyadmin?
Hello. How can I config django (python framework) with mysql? How can i use phpmyadmin to manage my database while i'm coding in django? Thank you. -
Began Watching How to config mysql with django and phpmyadmin?
Hello. How can I config django (python framework) with mysql? How can i use phpmyadmin to manage my database while i'm coding in django? Thank you. -
Created how to get SRC of img tag
Hello. This is my code: from bs4 import BeautifulSoup import urllib2 url = urllib2.urlopen('http://www.website_address.com') soup = BeautifulSoup(url) images = soup.find_all('img') Now how can I get the "src" of img tags? -
Began Watching how to get SRC of img tag
Hello. This is my code: from bs4 import BeautifulSoup import urllib2 url = urllib2.urlopen('http://www.website_address.com') soup = BeautifulSoup(url) images = soup.find_all('img') Now how can I get the "src" of img tags? -
Created How to sent the output into a txt file (with giving the destination path)
Hi. I'm creating a web crawler, I want to send the output into a txt file, how can I do it? And I also want to give a path to … -
Began Watching How to sent the output into a txt file (with giving the destination path)
Hi. I'm creating a web crawler, I want to send the output into a txt file, how can I do it? And I also want to give a path to … -
Created How to print text in UTF_8 (letters are reversed)
Hello. There is a text in my Python script that is in Persian language and the letters are from left to right, but in Persian language letters should be written … -
Began Watching How to print text in UTF_8 (letters are reversed)
Hello. There is a text in my Python script that is in Persian language and the letters are from left to right, but in Persian language letters should be written … -
Marked Solved Status for looking for a good fun DDOS script in python
Hello everybody. I'm looking for a good cool and fun DDOS script in python. Any suggestion? How can I create a good fun DDOS script using URLLIB?! -
Replied To a Post in looking for a good fun DDOS script in python
You are right I'm sorry for the question. Of course I didn't ask it to do an illegal action. I was going to test the security of my frind's server … -
Replied To a Post in looking for a good fun DDOS script in python
Why 2 members gave me 2 negative points?! What was the problem of my question? -
Replied To a Post in looking for a good fun DDOS script in python
Yes I mean a DDOS attack. Well, I mean a successful attack, just this! -
Created looking for a good fun DDOS script in python
Hello everybody. I'm looking for a good cool and fun DDOS script in python. Any suggestion? How can I create a good fun DDOS script using URLLIB?! -
Began Watching looking for a good fun DDOS script in python
Hello everybody. I'm looking for a good cool and fun DDOS script in python. Any suggestion? How can I create a good fun DDOS script using URLLIB?! -
Replied To a Post in a problem with getting the value of the selected option of drop-down menu
Would you please help me more clear? I don't know what to do exactly yet. I don't want to use many font style just less than 8! -
Replied To a Post in a problem with getting the value of the selected option of drop-down menu
Well, there is a problem, this is my code for now: <html> <head> <style> #main-font { width: 300px; height: 120px; background-color: white; opacity: 0.2; border-radius: 20px; box-shadow: 0px 0px 10px … -
Edited a problem with getting the value of the selected option of drop-down menu
Hello. Is there any other way for not using the submit button? <?php $user_choice = $_POST['font_styles']; if ($user_choice == "font_style_1"){ $font = 'firstfont'; }elseif ($user_choice == "font_style_2"){ $font = 'secondfont'; … -
Created a problem with getting the value of the selected option of drop-down menu
Hello. Is there any other way for not using the submit button? <?php $user_choice = $_POST['font_styles']; if ($user_choice == "font_style_1"){ $font = 'firstfont'; }elseif ($user_choice == "font_style_2"){ $font = 'secondfont'; … -
Began Watching a problem with getting the value of the selected option of drop-down menu
Hello. Is there any other way for not using the submit button? <?php $user_choice = $_POST['font_styles']; if ($user_choice == "font_style_1"){ $font = 'firstfont'; }elseif ($user_choice == "font_style_2"){ $font = 'secondfont'; … -
Created creating long drop-down menu of location (cities)
Hi. I want to create a drop-down menu for user's location (choosing cities) in the form. I know how to create it, but as I want a long list of … -
Began Watching creating long drop-down menu of location (cities)
Hi. I want to create a drop-down menu for user's location (choosing cities) in the form. I know how to create it, but as I want a long list of … -
Created (') sign will be replaced with (\') when the text is sent to db and echo
Hi. There is a textarea in my page. I type a text in the textare and then in the script there is: $text = nl2br(htmlentities($_POST['text'])); Now what is the problem? … -
Began Watching (') sign will be replaced with (\') when the text is sent to db and echo
Hi. There is a textarea in my page. I type a text in the textare and then in the script there is: $text = nl2br(htmlentities($_POST['text'])); Now what is the problem? … -
Replied To a Post in can you suggest for a new cool, fun or useful project in php?!!
Good. Any more suggestion?! -
Replied To a Post in getting css codes of a web page with php
Thank you @diafol, it works now. And thank you @lorenzoDAlipio for the link. And thank you all friends. But I still can't get the css tags from a web page? … -
Created can you suggest for a new cool, fun or useful project in php?!!
Hi. I'm thinking about a new project in php.... any idea of a cool and fun or useful and efficient project?! -
Began Watching can you suggest for a new cool, fun or useful project in php?!!
Hi. I'm thinking about a new project in php.... any idea of a cool and fun or useful and efficient project?! -
Replied To a Post in getting css codes of a web page with php
It dosen't work. <?php echo file_get_html('https://www.daniweb.com/'); ?> -
Replied To a Post in getting css codes of a web page with php
Who knows why `file_get_html()` doesn't work for me, any idea? @lorenzoDAlipio, i have downloaded php html DOM parser API zip folder, what should i do know with it? Is there … -
Replied To a Post in how to get all html tags and texts of a web page in php
@TexWiller, `file_get_html()` didn't work for me because of the `html` word in it and had to replace it with the word `contents` to get a result. and also with: foreach($html->find('img') … -
Replied To a Post in getting css codes of a web page with php
Can you give me an example please if it possible? -
Edited getting css codes of a web page with php
Hi. With using `file_get_contents()` I can get all html tags and text of a web page. But is there any way to get that web page's **css codes** too? -
Created getting css codes of a web page with php
Hi. With using `file_get_contents()` I can get all html tags and text of a web page. But is there any way to get that web page's **css codes** too? -
Began Watching getting css codes of a web page with php
Hi. With using `file_get_contents()` I can get all html tags and text of a web page. But is there any way to get that web page's **css codes** too? -
Marked Solved Status for how to get all html tags and texts of a web page in php
Hello. How can i get the html tags and texts of a web page in php? -
Replied To a Post in how to get all html tags and texts of a web page in php
Thank you @diafol. -
Marked Solved Status for can't save the file in linux localhost after editing
Hello. When i open a file in my linux localhost with the command "gedit file.php" and then put a part of code in it, then i can't save the file. … -
Replied To a Post in can't save the file in linux localhost after editing
I found the solution myself. Thank you. -
Replied To a Post in can't save the file in linux localhost after editing
Waht do you mean by the file is probably not mine?! I typed that and the result: `-rw-r--r-- 1 root root` -
Replied To a Post in how to get all html tags and texts of a web page in php
I found an example myself: $url = “http://www.howtogeek.com”; $str = file_get_contents($url); -
Created can't save the file in linux localhost after editing
Hello. When i open a file in my linux localhost with the command "gedit file.php" and then put a part of code in it, then i can't save the file. …
The End.