Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Accessing other tables in template
Post: RE: Accessing other tables in template

Is this not possible?
iFunKtion Web Scraping & Web Development 1 1,927 Jun-13-2019, 03:27 PM
    Thread: Accessing other tables in template
Post: Accessing other tables in template

Hi there, I'm really stuck. I have a site for tracking projects and while accessing the project model is simple enough, I can't figure out how to access a second table (Update) in the template. Here ...
iFunKtion Web Scraping & Web Development 1 1,927 Jun-11-2019, 04:53 PM
    Thread: Django Two blocks of dynamic content on one page
Post: RE: Django Two blocks of dynamic content on one pa...

Can anyone help with this or is it just too much of a mess?
iFunKtion Web Scraping & Web Development 5 4,399 Feb-20-2019, 07:35 PM
    Thread: Django Two blocks of dynamic content on one page
Post: RE: Django Two blocks of dynamic content on one pa...

Apologies, I've been going out of my mind with this as I am unable to find any information on something that is just a standard practice in websites now. I am using Django and I am still very much stu...
iFunKtion Web Scraping & Web Development 5 4,399 Feb-19-2019, 05:26 PM
    Thread: Django Two blocks of dynamic content on one page
Post: Django Two blocks of dynamic content on one page

Can anyone explain how this is done, I can get one block of dynamic content but can't get a second block to show. Whilst I have two views, I was of the opinion that it's one view per page. Basically, ...
iFunKtion Web Scraping & Web Development 5 4,399 Feb-15-2019, 04:13 PM
    Thread: Displaying list of lists in template
Post: RE: Displaying list of lists in template

Hi thank you, that's perfect. I can see now what I was missing, which was the 'link_set', and having done a bit of research, I can see that the '_set' is a reverse lookup class variable, that in my in...
iFunKtion Web Scraping & Web Development 2 3,690 Feb-14-2019, 12:06 PM
    Thread: Displaying list of lists in template
Post: Displaying list of lists in template

Hi, I'm trying to create a list of url links in categories on a site at work, they use about 80 web based tools for content discovery and other things. I have built the site using django and currentl...
iFunKtion Web Scraping & Web Development 2 3,690 Feb-13-2019, 05:46 PM
    Thread: Flask redirect(request.url) returns None
Post: Flask redirect(request.url) returns None

Hi, Currently building a small web interface and getting a little confused here: import os from flask import Flask, flash, request, redirect from flask import url_for, render_template, send_from_dir...
iFunKtion Web Scraping & Web Development 1 10,463 Nov-26-2018, 01:35 PM
    Thread: Python 3 break statement
Post: RE: Python 3 break statement

In your code, you have nested an if statement within an else statement, if, elif, else would make your break statement work: if alfa in bad_symbols:     print("\nAlphanumeric values only") elif name_u...
iFunKtion General Coding Help 5 4,165 Nov-21-2017, 07:31 PM
    Thread: matching question
Post: RE: matching question

A slightly simpler way would be to just use the one for loop, as you only need to iterate through one list and check if each iteration is in the other list: participants = ('bob', 'bill', 'casey') pai...
iFunKtion General Coding Help 11 6,919 Nov-21-2017, 07:01 PM
    Thread: Pulling any information from a dictionary with a user input
Post: RE: Pulling any information from a dictionary with...

hi, Like Larz60+ suggested, move onto python3 or 3.6 and learn that. As for your question, if it is just an exercise in working with dictionaries, heiner55 has everything you need to access some of y...
iFunKtion Web Scraping & Web Development 19 8,758 Nov-21-2017, 06:38 PM
    Thread: function exercise
Post: RE: function exercise

sparkz_alot is correct, I would like to just add, that the question is slightly tricking you by using "imc" for the function name and a variable name. basically, the first line is correct, the functi...
iFunKtion General Coding Help 3 3,043 Nov-17-2017, 11:53 AM
    Thread: readline() and readlines()
Post: RE: readline() and readlines()

Hi there, it seems that the readline/readlines conundrum is actually cleared up in this thread, so I would like to clarify why you were getting a letter at a time, perhaps for my own clarification, wh...
iFunKtion General Coding Help 9 30,067 Nov-17-2017, 11:33 AM
    Thread: Starting to learn python on a Mac
Post: RE: Starting to learn python on a Mac

If you are learning python on mac osx, I strongly suggest that you just bite the bullet and use Anaconda, you can get either python 2.7 or python 3, but I would strongly suggest python 3. The main re...
iFunKtion General Coding Help 8 8,144 Nov-17-2017, 11:09 AM
    Thread: How to pass value from method to function
Post: RE: How to pass value from method to function

So the problem I am having, and now i have followed what everyone is saying, is that it is passing None to the function, so after testing, I get on all but the empty list test in my test suite Unbound...
iFunKtion General Coding Help 11 8,779 May-23-2017, 05:06 PM
    Thread: How to pass value from method to function
Post: RE: How to pass value from method to function

I'm really confused now, I get sent the list, I only had that first line in to generate what is supposed to be an unknown to me. Excuse me, I am really shaky on this. I thought, that when you do: my_f...
iFunKtion General Coding Help 11 8,779 May-23-2017, 03:13 PM
    Thread: How to pass value from method to function
Post: RE: How to pass value from method to function

Ok, I've editted it, I was aware of the xrange, and also the single method function. I have been trying to solve this one problem of how I get this value into my function for four days now, what I wro...
iFunKtion General Coding Help 11 8,779 May-23-2017, 02:35 PM
    Thread: How to pass value from method to function
Post: RE: How to pass value from method to function

I didn't, I really tried to clarify my issue, the class is not to be altered, I am expected to interact with the class. Yes you are correct about the python 3 and python 2, I forgot to edit it in thi...
iFunKtion General Coding Help 11 8,779 May-23-2017, 02:03 PM
    Thread: How to pass value from method to function
Post: RE: How to pass value from method to function

Correct in a way, It's a test that I have done, and I am now trying to find out how to do the bit I failed at. If it helps to show that I am not trying to cheat, I can post the algorithm, I have coded...
iFunKtion General Coding Help 11 8,779 May-23-2017, 01:30 PM
    Thread: How to pass value from method to function
Post: How to pass value from method to function

Hi there, I have been tasked with writing a function that returns the length of an unknown list. I have successfully done the algorithm for it, and it works, I just can't work out how to pass the va...
iFunKtion General Coding Help 11 8,779 May-23-2017, 01:03 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020