Tagged Questions
0
votes
0answers
10 views
Extra Tabs in IMAP HTML Text
I'm using Python and imaplib to obtain emails from a IMAP server (supports all kinds of IMAP servers - GMail, etc.).
My problem is: Using the IMAP BODY[INDEX] command to fetch a specific body part, ...
0
votes
1answer
24 views
django template inheritance not working everywhere
I have a blog app and something is really bogging me. I have a base.html template that I extend in every template of my views and that works perfectly, just one of the views, which is the one that ...
0
votes
2answers
43 views
Display Python output in HTML
What is the simplest way to display the Python ystockquote (http://goldb.org/ystockquote.html) module output in HTML? I am creating an HTML dashboard which will be run locally on my computer and want ...
0
votes
1answer
34 views
Refresh a local web page using Python
I'm using Python to gather some information, construct a very simple html page, save it locally and display the page in my browser using webbrowser.open('file:///c:/testfile.html'). I check for new ...
1
vote
1answer
21 views
how to extract complete text in paragraph tag using beautifulsoup
I need to extract complete text except <p><a href><rel> etc from the following html code.
<p>Many of the features that made the Samsung Galaxy S4 one of the most anticipated ...
0
votes
1answer
26 views
Converting existing css/html page into Django
I have a jQuery/CSS/html webpage. I wanted to add some backend with Python/Django.
I put that page (index.html) + all dependent css and js files into the templates folder (inside the Django project ...
1
vote
2answers
39 views
how to add an image in a django blog post
I'm working on a blog with django and one of the last things I'm trying to figure out is how to post an image on my blog. I can already post some text very nicely through my admin panel and what I ...
1
vote
2answers
39 views
How to find first instance of HTML comment starting with <!— ? (Python)
Is there a simple way of finding the first instance of HTML comment starting with <!--?
I've been doing it as such:
for line in open('some.html'):
if line[:4] == "<!--":
print line
...
0
votes
2answers
44 views
How to design user id for a website?
I am working on a toy website and I have implemented an upvote button, with an onclick attribute like this:
Dajaxice.debater.upvote(
upvote_js,//Don't worry about this, it's just dealing with ...
0
votes
1answer
46 views
Using bootstrap and django
I am trying to get bootstrap working in my django project and followed the tutorial here
but it did not work. When i visit the my local project in the browser it just shows a blank page with 4 blue ...
0
votes
1answer
32 views
append new criteria to actual search url during paging
I am having hard times to append a new criteria to the existing url
say, i have this url after search-submit:
/found_items/?state=bla&score=bla
and in the result page, i have a paginator, i ...
0
votes
2answers
38 views
Evaluate javascript on a local html file (without browser)
This is part of a project I am working on for work.
I want to automate a Sharepoint site, specifically to pull data out of a database that I and my coworkers only have front-end access to.
I FINALLY ...
-2
votes
0answers
54 views
Editing a school's online course selection layout and design [closed]
My buddy and I just finished our first year CS university program and we decided to work on a project for the summer. We are trying to edit our school's online information system and we are focusing ...
0
votes
1answer
27 views
Python: Parsing HTML elements based on absolute XPath
I'm working on a project where I have to parse 20 different HTML pages based on URLs and I would like to get some information from all of them. Pages have different structure and the required ...
0
votes
1answer
20 views
django reusing html block for different for loop in the same template
I have three conditions to a given object, 1. to start, 2. started, and 3. finished.
I filter the objects in view itself and send three variables to the template -
tostart_objects, started_objects, ...