workspace
stringclasses 1
value | channel
stringclasses 1
value | sentences
stringlengths 1
3.93k
| ts
stringlengths 26
26
| user
stringlengths 2
11
| sentence_id
stringlengths 44
53
| timestamp
float64 1.5B
1.56B
| __index_level_0__
int64 0
106k
|
---|---|---|---|---|---|---|---|
pythondev
|
help
|
CFLAGS are for individual c compiler invocations
|
2017-08-25T05:50:11.000415
|
Leigh
|
pythondev_help_Leigh_2017-08-25T05:50:11.000415
| 1,503,640,211.000415 | 91,003 |
pythondev
|
help
|
yes, of course
|
2017-08-25T05:50:23.000201
|
Suellen
|
pythondev_help_Suellen_2017-08-25T05:50:23.000201
| 1,503,640,223.000201 | 91,004 |
pythondev
|
help
|
I wonder if it's possible to pass MAKEOPTS this way
|
2017-08-25T05:50:36.000198
|
Suellen
|
pythondev_help_Suellen_2017-08-25T05:50:36.000198
| 1,503,640,236.000198 | 91,005 |
pythondev
|
help
|
setuptools seems not to use makefile at all
|
2017-08-25T05:50:58.000106
|
Leigh
|
pythondev_help_Leigh_2017-08-25T05:50:58.000106
| 1,503,640,258.000106 | 91,006 |
pythondev
|
help
|
there's a `--global-option` and `--install-option` for pip, but these options are passed to `setup.py` and it must deal with those -- again not standard
|
2017-08-25T05:50:59.000267
|
Suellen
|
pythondev_help_Suellen_2017-08-25T05:50:59.000267
| 1,503,640,259.000267 | 91,007 |
pythondev
|
help
|
tried, but only some packages have their own specific options via that interface
|
2017-08-25T05:51:17.000201
|
Leigh
|
pythondev_help_Leigh_2017-08-25T05:51:17.000201
| 1,503,640,277.000201 | 91,008 |
pythondev
|
help
|
there seems to be no general way
|
2017-08-25T05:51:34.000102
|
Leigh
|
pythondev_help_Leigh_2017-08-25T05:51:34.000102
| 1,503,640,294.000102 | 91,009 |
pythondev
|
help
|
:disappointed:
|
2017-08-25T05:51:35.000394
|
Leigh
|
pythondev_help_Leigh_2017-08-25T05:51:35.000394
| 1,503,640,295.000394 | 91,010 |
pythondev
|
help
|
yeah :disappointed:
|
2017-08-25T05:52:10.000202
|
Suellen
|
pythondev_help_Suellen_2017-08-25T05:52:10.000202
| 1,503,640,330.000202 | 91,011 |
pythondev
|
help
|
hm
|
2017-08-25T05:52:10.000266
|
Leigh
|
pythondev_help_Leigh_2017-08-25T05:52:10.000266
| 1,503,640,330.000266 | 91,012 |
pythondev
|
help
|
i think i should go for separate image builds (either using multi-staged or different images) to build wheels for alpine linux
|
2017-08-25T05:52:35.000029
|
Leigh
|
pythondev_help_Leigh_2017-08-25T05:52:35.000029
| 1,503,640,355.000029 | 91,013 |
pythondev
|
help
|
haha, you can override `make` to point to an alias `make -j4`
|
2017-08-25T05:52:40.000086
|
Suellen
|
pythondev_help_Suellen_2017-08-25T05:52:40.000086
| 1,503,640,360.000086 | 91,014 |
pythondev
|
help
|
but that's crazy
|
2017-08-25T05:52:44.000148
|
Suellen
|
pythondev_help_Suellen_2017-08-25T05:52:44.000148
| 1,503,640,364.000148 | 91,015 |
pythondev
|
help
|
but, I mean... if it works..
|
2017-08-25T05:52:59.000272
|
Suellen
|
pythondev_help_Suellen_2017-08-25T05:52:59.000272
| 1,503,640,379.000272 | 91,016 |
pythondev
|
help
|
<@Leigh> <https://github.com/mzdaniel/alpinewheels>
|
2017-08-25T05:58:27.000007
|
Meg
|
pythondev_help_Meg_2017-08-25T05:58:27.000007
| 1,503,640,707.000007 | 91,017 |
pythondev
|
help
|
its a little out of date, but perhaps you can use the context within to make progress?
|
2017-08-25T05:59:00.000055
|
Meg
|
pythondev_help_Meg_2017-08-25T05:59:00.000055
| 1,503,640,740.000055 | 91,018 |
pythondev
|
help
|
oh... thanks for the reference!
|
2017-08-25T06:00:28.000006
|
Leigh
|
pythondev_help_Leigh_2017-08-25T06:00:28.000006
| 1,503,640,828.000006 | 91,019 |
pythondev
|
help
|
<@Leigh> turns out `cython` doesn't use `make` at all
|
2017-08-25T06:07:49.000038
|
Suellen
|
pythondev_help_Suellen_2017-08-25T06:07:49.000038
| 1,503,641,269.000038 | 91,020 |
pythondev
|
help
|
Hello guys I heart robobrowser could be an awesome tool for sending forms to web pages, but while I've been looking through the documentation, I didn't find how the responses to these request
|
2017-08-25T06:09:23.000129
|
Hyman
|
pythondev_help_Hyman_2017-08-25T06:09:23.000129
| 1,503,641,363.000129 | 91,021 |
pythondev
|
help
|
Hey guys. A quick git question from a beginner.
I cloned my bitbucket repo to my 2nd machine, did some changes that I wasn't happy with. Now I wanna discard those changes and clone the master branch and work on that.
Can I just remove the whole project folder on my 2nd machine (django project, venv and git repo and all) and just clone the master repo, set up a new venv and start again? Or is it some other recommended way of doing it?
|
2017-08-25T06:36:13.000075
|
Gisela
|
pythondev_help_Gisela_2017-08-25T06:36:13.000075
| 1,503,642,973.000075 | 91,022 |
pythondev
|
help
|
(Oh yeah, I didn't push the changes, although they are committed to my local repo on my 2nd machine)
|
2017-08-25T06:37:11.000027
|
Gisela
|
pythondev_help_Gisela_2017-08-25T06:37:11.000027
| 1,503,643,031.000027 | 91,023 |
pythondev
|
help
|
`git reset --hard origin/master` is one way
|
2017-08-25T06:39:04.000253
|
Carri
|
pythondev_help_Carri_2017-08-25T06:39:04.000253
| 1,503,643,144.000253 | 91,024 |
pythondev
|
help
|
Thank you <@Carri> , Just what I was looking for.
|
2017-08-25T06:47:20.000213
|
Gisela
|
pythondev_help_Gisela_2017-08-25T06:47:20.000213
| 1,503,643,640.000213 | 91,025 |
pythondev
|
help
|
Cool, happy to help :thumbsup_all:
|
2017-08-25T06:47:38.000180
|
Carri
|
pythondev_help_Carri_2017-08-25T06:47:38.000180
| 1,503,643,658.00018 | 91,026 |
pythondev
|
help
|
just be careful with that command :smile:
|
2017-08-25T06:52:57.000001
|
Ciera
|
pythondev_help_Ciera_2017-08-25T06:52:57.000001
| 1,503,643,977.000001 | 91,027 |
pythondev
|
help
|
<https://cdn.meme.am/instances/250x250/60243358/be-vewy-vewy-careful.jpg>
|
2017-08-25T06:56:09.000174
|
Meg
|
pythondev_help_Meg_2017-08-25T06:56:09.000174
| 1,503,644,169.000174 | 91,028 |
pythondev
|
help
|
Hi guys anyone have experience with connecting Python with Elasticsearch?
|
2017-08-25T08:31:47.000117
|
Herta
|
pythondev_help_Herta_2017-08-25T08:31:47.000117
| 1,503,649,907.000117 | 91,029 |
pythondev
|
help
|
what problem are you having
|
2017-08-25T08:44:57.000220
|
Meg
|
pythondev_help_Meg_2017-08-25T08:44:57.000220
| 1,503,650,697.00022 | 91,030 |
pythondev
|
help
|
yeah I’ve done a decent bit with it
|
2017-08-25T09:05:22.000206
|
Junita
|
pythondev_help_Junita_2017-08-25T09:05:22.000206
| 1,503,651,922.000206 | 91,031 |
pythondev
|
help
|
same, just with solr
|
2017-08-25T09:22:24.000322
|
Meg
|
pythondev_help_Meg_2017-08-25T09:22:24.000322
| 1,503,652,944.000322 | 91,032 |
pythondev
|
help
|
but ES/Solr are pretty similar in use cases
|
2017-08-25T09:22:33.000272
|
Meg
|
pythondev_help_Meg_2017-08-25T09:22:33.000272
| 1,503,652,953.000272 | 91,033 |
pythondev
|
help
|
basically i want for example to query ES data index via Python/Jupyter. Is elasticsearch-py worth trying?
|
2017-08-25T09:50:42.000667
|
Herta
|
pythondev_help_Herta_2017-08-25T09:50:42.000667
| 1,503,654,642.000667 | 91,034 |
pythondev
|
help
|
<@Herta> you could actually try it instead of asking here if you should try it. I bet you'd spend a similar amount of time :slightly_smiling_face:
|
2017-08-25T09:53:31.000645
|
Collette
|
pythondev_help_Collette_2017-08-25T09:53:31.000645
| 1,503,654,811.000645 | 91,035 |
pythondev
|
help
|
<@Collette> i have already trying code in Jupyter, tried before posted question, but i probably got stuck with installing elasticsearch, i need hint about that
|
2017-08-25T09:56:00.000140
|
Herta
|
pythondev_help_Herta_2017-08-25T09:56:00.000140
| 1,503,654,960.00014 | 91,036 |
pythondev
|
help
|
`docker run -d -p 9200:9200 -p 9300:9300 elasticsearch:alpine`
|
2017-08-25T09:58:01.000536
|
Collette
|
pythondev_help_Collette_2017-08-25T09:58:01.000536
| 1,503,655,081.000536 | 91,037 |
pythondev
|
help
|
That
|
2017-08-25T09:58:41.000363
|
Collette
|
pythondev_help_Collette_2017-08-25T09:58:41.000363
| 1,503,655,121.000363 | 91,038 |
pythondev
|
help
|
Trying to figure out what's going on with this code with kivy.
This code works and displays as expected.
If, however, I change the Grid __init__ to use RVSingle for self.devices_list I get an exception, ScrollView accept only one widget.
Is there a better way to have one of the RecycleViews be multiselect and the other single select?
```
Builder.load_string('''
<MultiSelectableLabel>:
# Draw a background to indicate selection
canvas.before:
Color:
rgba: (.0, 0.9, .1, .3) if self.selected else (0, 0, 0, 1)
Rectangle:
pos: self.pos
size: self.size
<RV>:
viewclass: 'MultiSelectableLabel'
SelectableRecycleBoxLayout:
default_size: None, dp(56)
default_size_hint: 1, None
size_hint_y: None
height: self.minimum_height
orientation: 'vertical'
multiselect: True
touch_multiselect: True''')
Builder.load_string('''
<SingleSelectableLabel>:
# Draw a background to indicate selection
canvas.before:
Color:
rgba: (.0, 0.9, .1, .3) if self.selected else (0, 0, 0, 1)
Rectangle:
pos: self.pos
size: self.size
<RVSingle>:
viewclass: 'SingleSelectableLabel'
SelectableRecycleBoxLayout:
default_size: None, dp(56)
default_size_hint: 1, None
size_hint_y: None
height: self.minimum_height
orientation: 'vertical'
multiselect: False
touch_multiselect: False
''')
```
```
class RV(RecycleView):
def __init__(self, choices=({'text': ''},), **kwargs):
super().__init__(**kwargs)
self.data = choices
class RVSingle(RV):
def __init__(self, choices=({'text': ''},), **kwargs):
super().__init__(**kwargs)
self.data = choices
```
```
class Grid(GridLayout):
def __init__(self, *args, **kwargs):
super().__init__()
print(kwargs)
first_list = kwargs.pop('first_list', ({'text': ''}, ))
rv1_callback = kwargs.pop('rv1_callback', lambda x: [{'text': ''}, ])
second_list = kwargs.pop('second_list', ({'text': ''},))
rv2_callback = kwargs.pop('rv1_callback', lambda x: [{'text': ''}, ])
print(first_list)
self.cols = 3
self.devices_list = RV(choices=first_list)
self.checks_list = RV(choices=second_list)
self.creds = Credentials()
self.add_widget(self.devices_list)
self.add_widget(self.checks_list)
self.add_widget(self.creds)
```
|
2017-08-25T11:17:17.000258
|
Meghan
|
pythondev_help_Meghan_2017-08-25T11:17:17.000258
| 1,503,659,837.000258 | 91,039 |
pythondev
|
help
|
Actually, I got it working. The inheritance between RVSingle and RV caused the issue, I changed RVSingle to inherit from RecycleView instead.
|
2017-08-25T11:19:55.000364
|
Meghan
|
pythondev_help_Meghan_2017-08-25T11:19:55.000364
| 1,503,659,995.000364 | 91,040 |
pythondev
|
help
|
Hi All, new to python, have pulled the following out of a dict, wanting to extract the Resource value. Thought it was a list but echo'ing list[0] echo's the full line and list[1] is 'out of range':
|
2017-08-25T11:51:38.000347
|
Tonette
|
pythondev_help_Tonette_2017-08-25T11:51:38.000347
| 1,503,661,898.000347 | 91,041 |
pythondev
|
help
|
any ideas on the best way to do this would be greatly appreciated!
|
2017-08-25T11:52:31.000018
|
Tonette
|
pythondev_help_Tonette_2017-08-25T11:52:31.000018
| 1,503,661,951.000018 | 91,042 |
pythondev
|
help
|
a[0][‘Resource’]
|
2017-08-25T11:53:00.000309
|
Liberty
|
pythondev_help_Liberty_2017-08-25T11:53:00.000309
| 1,503,661,980.000309 | 91,043 |
pythondev
|
help
|
ahhhh :slightly_smiling_face:
|
2017-08-25T11:53:18.000121
|
Tonette
|
pythondev_help_Tonette_2017-08-25T11:53:18.000121
| 1,503,661,998.000121 | 91,044 |
pythondev
|
help
|
do you always have one element there?
|
2017-08-25T11:53:23.000453
|
Liberty
|
pythondev_help_Liberty_2017-08-25T11:53:23.000453
| 1,503,662,003.000453 | 91,045 |
pythondev
|
help
|
that works cheers! I currently only have one element there however i plan to append values
|
2017-08-25T11:54:30.000337
|
Tonette
|
pythondev_help_Tonette_2017-08-25T11:54:30.000337
| 1,503,662,070.000337 | 91,046 |
pythondev
|
help
|
so there will be multiple values in future
|
2017-08-25T11:54:46.000239
|
Tonette
|
pythondev_help_Tonette_2017-08-25T11:54:46.000239
| 1,503,662,086.000239 | 91,047 |
pythondev
|
help
|
then do iterations over it
|
2017-08-25T11:54:50.000610
|
Liberty
|
pythondev_help_Liberty_2017-08-25T11:54:50.000610
| 1,503,662,090.00061 | 91,048 |
pythondev
|
help
|
ok cool
|
2017-08-25T11:55:00.000679
|
Tonette
|
pythondev_help_Tonette_2017-08-25T11:55:00.000679
| 1,503,662,100.000679 | 91,049 |
pythondev
|
help
|
saved me a lot of time, have a good weekend! :smile:
|
2017-08-25T11:55:16.000518
|
Tonette
|
pythondev_help_Tonette_2017-08-25T11:55:16.000518
| 1,503,662,116.000518 | 91,050 |
pythondev
|
help
|
you too
|
2017-08-25T11:55:25.000481
|
Liberty
|
pythondev_help_Liberty_2017-08-25T11:55:25.000481
| 1,503,662,125.000481 | 91,051 |
pythondev
|
help
|
What would you guys say is the best way to distribute your Python code to other Windows machines (that don't have Python installed)? I just used `pyinstaller` and that worked great but the output was a little sloppy (a bunch of files, the .exe hidden in the dist folder). It's not bad but I'm wondering if there's a cleaner option for the end user? Thanks!
|
2017-08-25T12:35:51.000180
|
Dominick
|
pythondev_help_Dominick_2017-08-25T12:35:51.000180
| 1,503,664,551.00018 | 91,052 |
pythondev
|
help
|
`pyinstaller --onefile`
|
2017-08-25T12:41:07.000035
|
Suellen
|
pythondev_help_Suellen_2017-08-25T12:41:07.000035
| 1,503,664,867.000035 | 91,053 |
pythondev
|
help
|
or is it `--one-file`...
|
2017-08-25T12:41:11.000349
|
Suellen
|
pythondev_help_Suellen_2017-08-25T12:41:11.000349
| 1,503,664,871.000349 | 91,054 |
pythondev
|
help
|
anyways, it will be one single executable
|
2017-08-25T12:41:34.000276
|
Suellen
|
pythondev_help_Suellen_2017-08-25T12:41:34.000276
| 1,503,664,894.000276 | 91,055 |
pythondev
|
help
|
<@Dominick> how'd you invoke it? You can do `--onefile` and just share the one .exe
|
2017-08-25T12:41:39.000277
|
Beula
|
pythondev_help_Beula_2017-08-25T12:41:39.000277
| 1,503,664,899.000277 | 91,056 |
pythondev
|
help
|
<@Suellen> <@Beula> Ahhhh didn't know about that - I should probably read the documentation first...thanks guys
|
2017-08-25T12:43:26.000300
|
Dominick
|
pythondev_help_Dominick_2017-08-25T12:43:26.000300
| 1,503,665,006.0003 | 91,057 |
pythondev
|
help
|
Hey there, I'm looking to test some custom commands and wondering if there's a way to reload a command once I'm already inside shell? ie:
```
> python manage.py shell
> from django.core import management
> management.call_command('get_embeds')
> # make some changes to file
> # reload command
> management.call_command('get_embeds')
```
We're running on a vagrant VM so running something such as `python manage.py get_embeds` takes a bit of time to load each time I want to test the script.
thanks!
|
2017-08-25T14:02:54.000078
|
Irish
|
pythondev_help_Irish_2017-08-25T14:02:54.000078
| 1,503,669,774.000078 | 91,058 |
pythondev
|
help
|
IPython has `%autoreload N` magic
|
2017-08-25T14:04:35.000127
|
Suellen
|
pythondev_help_Suellen_2017-08-25T14:04:35.000127
| 1,503,669,875.000127 | 91,059 |
pythondev
|
help
|
<https://ipython.org/ipython-doc/3/config/extensions/autoreload.html>
|
2017-08-25T14:05:05.000126
|
Suellen
|
pythondev_help_Suellen_2017-08-25T14:05:05.000126
| 1,503,669,905.000126 | 91,060 |
pythondev
|
help
|
I highly recommend using IPython as a manage.py shell
|
2017-08-25T14:05:26.000435
|
Suellen
|
pythondev_help_Suellen_2017-08-25T14:05:26.000435
| 1,503,669,926.000435 | 91,061 |
pythondev
|
help
|
yeah i've been seeing a lot of reference to it
|
2017-08-25T14:07:51.000508
|
Irish
|
pythondev_help_Irish_2017-08-25T14:07:51.000508
| 1,503,670,071.000508 | 91,062 |
pythondev
|
help
|
don't think our VM has it but i'll look in to getting it added
|
2017-08-25T14:08:34.000071
|
Irish
|
pythondev_help_Irish_2017-08-25T14:08:34.000071
| 1,503,670,114.000071 | 91,063 |
pythondev
|
help
|
there's no good way to do it with vanilla? <@Suellen>
|
2017-08-25T14:08:41.000047
|
Irish
|
pythondev_help_Irish_2017-08-25T14:08:41.000047
| 1,503,670,121.000047 | 91,064 |
pythondev
|
help
|
```
>>> from importlib import reload
>>> import some_module
>>> some_module.x
5
>>> reload(some_module)
<module 'some_module' from '/home/leovp/some_module.py'>
>>> some_module.x
1337
>>>
```
|
2017-08-25T14:10:31.000329
|
Suellen
|
pythondev_help_Suellen_2017-08-25T14:10:31.000329
| 1,503,670,231.000329 | 91,065 |
pythondev
|
help
|
k i saw that as well
|
2017-08-25T14:10:47.000343
|
Irish
|
pythondev_help_Irish_2017-08-25T14:10:47.000343
| 1,503,670,247.000343 | 91,066 |
pythondev
|
help
|
i tried to directly `import` my command but was getting an error
|
2017-08-25T14:11:02.000565
|
Irish
|
pythondev_help_Irish_2017-08-25T14:11:02.000565
| 1,503,670,262.000565 | 91,067 |
pythondev
|
help
|
ie `import get_embeds`
|
2017-08-25T14:11:09.000034
|
Irish
|
pythondev_help_Irish_2017-08-25T14:11:09.000034
| 1,503,670,269.000034 | 91,068 |
pythondev
|
help
|
be aware that reload may produce some weird side effect :slightly_smiling_face:
|
2017-08-25T14:15:52.000359
|
Ciera
|
pythondev_help_Ciera_2017-08-25T14:15:52.000359
| 1,503,670,552.000359 | 91,069 |
pythondev
|
help
|
is there a difference between:
`import mod` and
`from mod import *`?
|
2017-08-25T16:56:21.000050
|
Staci
|
pythondev_help_Staci_2017-08-25T16:56:21.000050
| 1,503,680,181.00005 | 91,070 |
pythondev
|
help
|
I was going to try to explain it, but I think this SO thread will do better than me:
|
2017-08-25T16:59:46.000280
|
Winnifred
|
pythondev_help_Winnifred_2017-08-25T16:59:46.000280
| 1,503,680,386.00028 | 91,071 |
pythondev
|
help
|
This thread is actually more helpful
|
2017-08-25T17:05:11.000387
|
Winnifred
|
pythondev_help_Winnifred_2017-08-25T17:05:11.000387
| 1,503,680,711.000387 | 91,072 |
pythondev
|
help
|
<https://stackoverflow.com/a/12270980/3046539>
|
2017-08-25T17:05:23.000197
|
Winnifred
|
pythondev_help_Winnifred_2017-08-25T17:05:23.000197
| 1,503,680,723.000197 | 91,073 |
pythondev
|
help
|
Perfect, that's exactly what I was looking for. Thanks <@Winnifred> , I tried googling it but google got confused with other import statements. so thanks!
|
2017-08-25T17:08:36.000242
|
Staci
|
pythondev_help_Staci_2017-08-25T17:08:36.000242
| 1,503,680,916.000242 | 91,074 |
pythondev
|
help
|
how do I install conda packages to conda_root
|
2017-08-25T17:16:51.000079
|
Chester
|
pythondev_help_Chester_2017-08-25T17:16:51.000079
| 1,503,681,411.000079 | 91,075 |
pythondev
|
help
|
I guess it comes down to the fact that the user doesn’t have permissions on /anaconda
|
2017-08-25T17:34:33.000097
|
Chester
|
pythondev_help_Chester_2017-08-25T17:34:33.000097
| 1,503,682,473.000097 | 91,076 |
pythondev
|
help
|
*ahem* ... Eclipse > IntelliJ
|
2017-08-25T18:21:45.000144
|
Bruno
|
pythondev_help_Bruno_2017-08-25T18:21:45.000144
| 1,503,685,305.000144 | 91,077 |
pythondev
|
help
|
<@Bruno> is right
|
2017-08-25T18:24:22.000088
|
Berry
|
pythondev_help_Berry_2017-08-25T18:24:22.000088
| 1,503,685,462.000088 | 91,078 |
pythondev
|
help
|
Hey I am using gunicorn to run my flask application, but I am beginning to have an error for some reason I am unsure about. The error is `Failed to find application: myapp.app` but I can see app file in the myapp dir and it was working until recently
|
2017-08-26T17:04:16.000014
|
Vita
|
pythondev_help_Vita_2017-08-26T17:04:16.000014
| 1,503,767,056.000014 | 91,079 |
pythondev
|
help
|
Oh I am also using docker so the issue isn't coming from something I have installed
|
2017-08-26T17:21:06.000026
|
Vita
|
pythondev_help_Vita_2017-08-26T17:21:06.000026
| 1,503,768,066.000026 | 91,080 |
pythondev
|
help
|
<@Vita> what's your commandline
|
2017-08-26T17:21:31.000004
|
Suellen
|
pythondev_help_Suellen_2017-08-26T17:21:31.000004
| 1,503,768,091.000004 | 91,081 |
pythondev
|
help
|
i.e. how do you launch gunicorn
|
2017-08-26T17:21:39.000083
|
Suellen
|
pythondev_help_Suellen_2017-08-26T17:21:39.000083
| 1,503,768,099.000083 | 91,082 |
pythondev
|
help
|
sec
|
2017-08-26T17:23:00.000066
|
Vita
|
pythondev_help_Vita_2017-08-26T17:23:00.000066
| 1,503,768,180.000066 | 91,083 |
pythondev
|
help
|
and you totally have `myapp/app.py` with `def create_app()` inside?
|
2017-08-26T17:25:19.000031
|
Suellen
|
pythondev_help_Suellen_2017-08-26T17:25:19.000031
| 1,503,768,319.000031 | 91,084 |
pythondev
|
help
|
yep! It was working last time I tried, but I finally fixed other errors and now it won't work (this has been going on for about a month)
|
2017-08-26T17:26:03.000073
|
Vita
|
pythondev_help_Vita_2017-08-26T17:26:03.000073
| 1,503,768,363.000073 | 91,085 |
pythondev
|
help
|
btw, I suggest a different approach, because strangely this method doesn't work for me
|
2017-08-26T17:26:15.000047
|
Suellen
|
pythondev_help_Suellen_2017-08-26T17:26:15.000047
| 1,503,768,375.000047 | 91,086 |
pythondev
|
help
|
what I did was:
1. created `wsgi.py` in project root
|
2017-08-26T17:26:38.000042
|
Suellen
|
pythondev_help_Suellen_2017-08-26T17:26:38.000042
| 1,503,768,398.000042 | 91,087 |
pythondev
|
help
|
```
from projectname.app import create_app
app = create_app() # pass something in, I dunno
if __name__ == '__main__':
app.run()
```
|
2017-08-26T17:27:06.000010
|
Suellen
|
pythondev_help_Suellen_2017-08-26T17:27:06.000010
| 1,503,768,426.00001 | 91,088 |
pythondev
|
help
|
and then `gunicorn wsgi:app` works alright
|
2017-08-26T17:27:35.000017
|
Suellen
|
pythondev_help_Suellen_2017-08-26T17:27:35.000017
| 1,503,768,455.000017 | 91,089 |
pythondev
|
help
|
hmmm let me try that to see if it works
|
2017-08-26T17:27:47.000055
|
Vita
|
pythondev_help_Vita_2017-08-26T17:27:47.000055
| 1,503,768,467.000055 | 91,090 |
pythondev
|
help
|
<@Suellen> sweet! That did it! I am getting another error now, but I should be able to fix it!
|
2017-08-26T17:33:04.000032
|
Vita
|
pythondev_help_Vita_2017-08-26T17:33:04.000032
| 1,503,768,784.000032 | 91,091 |
pythondev
|
help
|
<@Suellen> :taco:
|
2017-08-26T17:33:15.000006
|
Vita
|
pythondev_help_Vita_2017-08-26T17:33:15.000006
| 1,503,768,795.000006 | 91,092 |
pythondev
|
help
|
cool
|
2017-08-26T17:33:52.000074
|
Suellen
|
pythondev_help_Suellen_2017-08-26T17:33:52.000074
| 1,503,768,832.000074 | 91,093 |
pythondev
|
help
|
Hey all, strictly a docker question, why would my site be up and running but give me a 404 when i visit a page I know exists? Last time this happened I had the wrong server name which isn't the case anymore
|
2017-08-26T20:08:56.000034
|
Vita
|
pythondev_help_Vita_2017-08-26T20:08:56.000034
| 1,503,778,136.000034 | 91,094 |
pythondev
|
help
|
oh it is a flask app
|
2017-08-26T20:10:33.000011
|
Vita
|
pythondev_help_Vita_2017-08-26T20:10:33.000011
| 1,503,778,233.000011 | 91,095 |
pythondev
|
help
|
not docker related
|
2017-08-26T21:07:52.000016
|
Suellen
|
pythondev_help_Suellen_2017-08-26T21:07:52.000016
| 1,503,781,672.000016 | 91,096 |
pythondev
|
help
|
if your server works and you can connect to it -- docker already did its part
|
2017-08-26T21:08:21.000034
|
Suellen
|
pythondev_help_Suellen_2017-08-26T21:08:21.000034
| 1,503,781,701.000034 | 91,097 |
pythondev
|
help
|
<@Suellen> ok thanks
|
2017-08-27T07:11:31.000032
|
Vita
|
pythondev_help_Vita_2017-08-27T07:11:31.000032
| 1,503,817,891.000032 | 91,098 |
pythondev
|
help
|
did you find the culprit?
|
2017-08-27T07:15:03.000060
|
Suellen
|
pythondev_help_Suellen_2017-08-27T07:15:03.000060
| 1,503,818,103.00006 | 91,099 |
pythondev
|
help
|
Nope, still looking for the issue causer
|
2017-08-27T07:20:54.000029
|
Vita
|
pythondev_help_Vita_2017-08-27T07:20:54.000029
| 1,503,818,454.000029 | 91,100 |
pythondev
|
help
|
other pages are accessible?
|
2017-08-27T07:23:27.000026
|
Suellen
|
pythondev_help_Suellen_2017-08-27T07:23:27.000026
| 1,503,818,607.000026 | 91,101 |
pythondev
|
help
|
Nope, but I think I may have found the culprit...i am not importing my views into wsgi, gonna see if that fixes it
|
2017-08-27T07:25:02.000013
|
Vita
|
pythondev_help_Vita_2017-08-27T07:25:02.000013
| 1,503,818,702.000013 | 91,102 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.