Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #71908 > unrolled thread
| Started by | Aseem Bansal <asmbansal2@gmail.com> |
|---|---|
| First post | 2014-05-22 11:54 -0700 |
| Last post | 2014-05-23 22:07 -0700 |
| Articles | 9 — 5 participants |
Back to article view | Back to comp.lang.python
Advice for choosing correct architecture/tech for a hobby project Aseem Bansal <asmbansal2@gmail.com> - 2014-05-22 11:54 -0700
Re: Advice for choosing correct architecture/tech for a hobby project John Gordon <gordon@panix.com> - 2014-05-22 19:28 +0000
Re: Advice for choosing correct architecture/tech for a hobby project Ian Kelly <ian.g.kelly@gmail.com> - 2014-05-22 13:55 -0600
Re: Advice for choosing correct architecture/tech for a hobby project John Gordon <gordon@panix.com> - 2014-05-22 20:38 +0000
Re: Advice for choosing correct architecture/tech for a hobby project Mark H Harris <harrismh777@gmail.com> - 2014-05-22 14:49 -0500
Re: Advice for choosing correct architecture/tech for a hobby project Ian Kelly <ian.g.kelly@gmail.com> - 2014-05-23 01:07 -0600
Re: Advice for choosing correct architecture/tech for a hobby project Aseem Bansal <asmbansal2@gmail.com> - 2014-05-23 22:03 -0700
Re: Advice for choosing correct architecture/tech for a hobby project Ethan Furman <ethan@stoneleaf.us> - 2014-05-22 14:28 -0700
Re: Advice for choosing correct architecture/tech for a hobby project Aseem Bansal <asmbansal2@gmail.com> - 2014-05-23 22:07 -0700
| From | Aseem Bansal <asmbansal2@gmail.com> |
|---|---|
| Date | 2014-05-22 11:54 -0700 |
| Subject | Advice for choosing correct architecture/tech for a hobby project |
| Message-ID | <6a3c5b20-bce5-4c95-b27f-3840e9cc7df0@googlegroups.com> |
I am working on a hobby project - a Bookmarker https://github.com/anshbansal/Bookmarker. Basically bookmarks like in webbrowser stored in a app. The twist is storage by categories. I have spent some time on choosing the correct tech for making this project but it seems it would be better to take some advice on this after I went through this discussion on django forums https://groups.google.com/forum/#!topic/django-users/rSqSftkl5mg. I want to be able to add bookmarks to the app through browser. I want a front-end from which I am able to browse the bookmarks. The browsing front-end should have a search option(search for category) for filtering the bookmarks. As per these requirements that I have framed so far I thought that a web framework would be a good choice and so I chose Django. The reason being the capability to add bookmarks through browser can be done easily through JavaScript. But I hit a snag today that webbrowser's won't allow client to open hyperlinks with file protocol. I have both offline and online bookmarks so that was a problem for me. Now I am at my experience's ends. I have spent 15-20 days' spare time trying to decide the technology and now this snag. Can someone advice on this? Am I using correct technology?
[toc] | [next] | [standalone]
| From | John Gordon <gordon@panix.com> |
|---|---|
| Date | 2014-05-22 19:28 +0000 |
| Message-ID | <lllj5m$7rh$1@reader1.panix.com> |
| In reply to | #71908 |
In <6a3c5b20-bce5-4c95-b27f-3840e9cc7df0@googlegroups.com> Aseem Bansal <asmbansal2@gmail.com> writes: > But I hit a snag today that webbrowser's won't allow client to open > hyperlinks with file protocol. I have both offline and online bookmarks > so that was a problem for me. What do you mean by saying "webbrowser's won't allow client to open hyperlinks with file protocol"? Of course they do. My web browser works just fine with links such as this: <a href="file:///C:/Users/gordonj/Documents/foo.html">foo.html</a> -- John Gordon Imagine what it must be like for a real medical doctor to gordon@panix.com watch 'House', or a real serial killer to watch 'Dexter'.
[toc] | [prev] | [next] | [standalone]
| From | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| Date | 2014-05-22 13:55 -0600 |
| Message-ID | <mailman.10231.1400789042.18130.python-list@python.org> |
| In reply to | #71910 |
On Thu, May 22, 2014 at 1:28 PM, John Gordon <gordon@panix.com> wrote: > In <6a3c5b20-bce5-4c95-b27f-3840e9cc7df0@googlegroups.com> Aseem Bansal <asmbansal2@gmail.com> writes: > >> But I hit a snag today that webbrowser's won't allow client to open >> hyperlinks with file protocol. I have both offline and online bookmarks >> so that was a problem for me. > > What do you mean by saying "webbrowser's won't allow client to open > hyperlinks with file protocol"? Of course they do. > > My web browser works just fine with links such as this: > > <a href="file:///C:/Users/gordonj/Documents/foo.html">foo.html</a> It works if the document that contains the link is also opened from the local filesystem, but browsers will refuse to follow the link if it was served over http.
[toc] | [prev] | [next] | [standalone]
| From | John Gordon <gordon@panix.com> |
|---|---|
| Date | 2014-05-22 20:38 +0000 |
| Message-ID | <llln7k$dbt$1@reader1.panix.com> |
| In reply to | #71912 |
In <mailman.10231.1400789042.18130.python-list@python.org> Ian Kelly <ian.g.kelly@gmail.com> writes:
> > My web browser works just fine with links such as this:
> >
> > <a href="file:///C:/Users/gordonj/Documents/foo.html">foo.html</a>
> It works if the document that contains the link is also opened from
> the local filesystem, but browsers will refuse to follow the link if
> it was served over http.
Aha! I didn't know that. Now that I think about it, I suppose it makes
sense.
Perhaps the OP could write a separate application for handling local
files, something like:
<a href="process_local_bookmark.cgi?filename=/dir/foo.html">
--
John Gordon Imagine what it must be like for a real medical doctor to
gordon@panix.com watch 'House', or a real serial killer to watch 'Dexter'.
[toc] | [prev] | [next] | [standalone]
| From | Mark H Harris <harrismh777@gmail.com> |
|---|---|
| Date | 2014-05-22 14:49 -0500 |
| Message-ID | <lllkbu$8fv$1@speranza.aioe.org> |
| In reply to | #71908 |
On 5/22/14 1:54 PM, Aseem Bansal wrote:
> I am working on a hobby project - a Bookmarker{snip}
hi, no django is not really the correct tool-set. Django is for
server-side content management, but who knows, you might come up with a
great hack (I don't want to discourage you). But, a straight python
trimmed down app would probably be better... what led you to django?
It seems from your descriptions, which don't make sense by the way, that
you are attempting to create your own 'browser' within your app (web
api) and you want to use a standard browser (like firefox or chrome) to
'front-end' the apps bookmarks. So, your app needs to be able to read
your browser's bookmarks file.
Browsers most certainly can read http:// https:// file:// etc. (and many
more). Your api may not be able to read local file:// urls, but I'm
skeptical about that (most web api(s) have no trouble with file:// either).
Provide some more info, somebody will help.
marcus
[toc] | [prev] | [next] | [standalone]
| From | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| Date | 2014-05-23 01:07 -0600 |
| Message-ID | <mailman.10234.1400828925.18130.python-list@python.org> |
| In reply to | #71911 |
On Thu, May 22, 2014 at 1:49 PM, Mark H Harris <harrismh777@gmail.com> wrote:
> On 5/22/14 1:54 PM, Aseem Bansal wrote:
>>
>> I am working on a hobby project - a Bookmarker{snip}
>
>
> hi, no django is not really the correct tool-set. Django is for server-side
> content management
That's a common misconception. Django is a feature-rich web framework
aimed at developing database-driven web apps. It's a popular choice
for implementing content management systems but is not at all limited
to that scope. It should be fine for the sort of app that the OP is
writing, although a bit on the heavy side.
[toc] | [prev] | [next] | [standalone]
| From | Aseem Bansal <asmbansal2@gmail.com> |
|---|---|
| Date | 2014-05-23 22:03 -0700 |
| Message-ID | <c203ad5b-cade-4094-9475-d7bfa93e5923@googlegroups.com> |
| In reply to | #71911 |
The project is not a browser but a app for managing the bookmarks. Only managing by categories. A replacement for the bookmarks made in webbrowser. I wanted to make bookmarks easier to use. Hierarchical structure of bookmarks gives a lot of problems. I wanted to solve that for my use.
On Friday, May 23, 2014 1:19:22 AM UTC+5:30, Mark H. Harris wrote:
> On 5/22/14 1:54 PM, Aseem Bansal wrote:
>
> > I am working on a hobby project - a Bookmarker{snip}
>
>
>
> hi, no django is not really the correct tool-set. Django is for
>
> server-side content management, but who knows, you might come up with a
>
> great hack (I don't want to discourage you). But, a straight python
>
> trimmed down app would probably be better... what led you to django?
>
>
>
> It seems from your descriptions, which don't make sense by the way, that
>
> you are attempting to create your own 'browser' within your app (web
>
> api) and you want to use a standard browser (like firefox or chrome) to
>
> 'front-end' the apps bookmarks. So, your app needs to be able to read
>
> your browser's bookmarks file.
>
>
>
> Browsers most certainly can read http:// https:// file:// etc. (and many
>
> more). Your api may not be able to read local file:// urls, but I'm
>
> skeptical about that (most web api(s) have no trouble with file:// either).
>
>
>
> Provide some more info, somebody will help.
>
>
>
>
>
> marcus
[toc] | [prev] | [next] | [standalone]
| From | Ethan Furman <ethan@stoneleaf.us> |
|---|---|
| Date | 2014-05-22 14:28 -0700 |
| Message-ID | <mailman.10232.1400795500.18130.python-list@python.org> |
| In reply to | #71908 |
On 05/22/2014 11:54 AM, Aseem Bansal wrote: > > I am working on a hobby project - a Bookmarker https://github.com/anshbansal/Bookmarker. Take a look at delicio.us -- it seems to be a similar type of experience. -- ~Ethan~
[toc] | [prev] | [next] | [standalone]
| From | Aseem Bansal <asmbansal2@gmail.com> |
|---|---|
| Date | 2014-05-23 22:07 -0700 |
| Message-ID | <14da892a-7144-40b8-ac7d-1ba915d66550@googlegroups.com> |
| In reply to | #71914 |
I know that there are many online ways to do what I am trying to do but this was something I wanted to make. I have learnt Python myself and wanted to learn a way to make apps in Python. GUI development in Python has given a lot of headache while trying to find an appropriate framework with the addons(community, designer tool, documentation, open source etc.). The only nearly viable solution that I found was Kivy but the current project idea that I had was this bookmarker project which needed to have a way to add bookmarks easily through browser so I settled on the most popular web framework present. On Friday, May 23, 2014 2:58:51 AM UTC+5:30, Ethan Furman wrote: > On 05/22/2014 11:54 AM, Aseem Bansal wrote: > > > > > > I am working on a hobby project - a Bookmarker https://github.com/anshbansal/Bookmarker. > > > > Take a look at delicio.us -- it seems to be a similar type of experience. > > > > -- > > ~Ethan~
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web