Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 20:07
    nemesisdesign closed #105
  • 20:07

    nemesisdesign on master

    [change] Improved configuration… [docs] Added how to push update… (compare)

  • 20:00

    nemesisdesign on master

    [docs] Added "How to configure … (compare)

  • 19:58

    nemesisdesign on master

    [docs] Added "How to configure … (compare)

  • 19:56
    nemesisdesign closed #255
  • 19:56

    nemesisdesign on master

    [docs] Added "How to configure … (compare)

  • 19:54

    nemesisdesign on master

    [docs] Added "How to configure … (compare)

  • 17:10
    TravisBuddy commented #154
  • 16:54
    niteshsinha17 synchronize #154
  • 16:51
    niteshsinha17 opened #154
  • 15:22
    atb00ker transferred #190
  • 15:22
    niteshsinha17 opened #153
  • 13:18
    niteshsinha17 opened #190
  • 13:08
    pandafy commented #307
  • 11:41
    coveralls commented #152
  • 11:33
    TravisBuddy commented #189
  • 11:17
    atb00ker synchronize #152
  • 11:08
    atb00ker opened #189
  • 11:05
    atb00ker synchronize #152
Federico Capoano
@nemesisdesign
@NoumbissiValere please see https://github.com/openwisp/django-loci/pull/75#pullrequestreview-515959347
The fix should not take a lot of time.
Federico Capoano
@nemesisdesign

@NoumbissiValere please see https://github.com/openwisp/django-loci/pull/75#pullrequestreview-515959347
The fix should not take a lot of time.

Merged! :clap: :tada:

@Purhan Merged! :+1: :+1: :clap: openwisp/django-loci#73
purhan
@Purhan
Thank you very much :smile: Now I'm just one PR away from completing this hacktoberfest.
Ajay Tripathi
@atb00ker
Great @Purhan !
Have you made the last PR? :-)
purhan
@Purhan

Have you made the last PR? :-)

Yes, openwisp/django-loci#76

Ajay Tripathi
@atb00ker
Ajay Tripathi
@atb00ker

Have you made the last PR? :-)

Yes, openwisp/django-loci#76

@Purhan added a comment! :-)

purhan
@Purhan
Thank you, I just responded to that :thumbsup:
Nitesh Sinha
@niteshsinha17
Is this issue relevant? openwisp/openwisp-users#190
Gagan Deep
@pandafy

Is this issue relevant? openwisp/openwisp-users#190

Thansk for reporting @niteshsinha17. It looks to me that this issue arises from right navigation pane(menu) which is implemented in openwisp-utils. Can you please test whether the bug is reproducible in openwisp-utils. If so, it will be best to move it there and create a patch for it in openwisp-utils.

rstokes81
@rstokes81
Hey all, This may be better suited for the mailing list but thought I would give it a shot here first. I'm trying to get OpenWISP-RADIUS setup with no experience in working with Django before and little to no experience with REST,SQL,RADIUS, Docker or Python. Needless to say yesterday was a fun albeit long day. At this point I can hit mysite.tld/admin and configure what I assume are built-in django settings as well as OpenWISP-RADIUS settings, I can also send requests to the freeradius server and it intern sends makes a request to the django server. At this point the response is a 404 or at least would be if debugging was disabled in django. currently it just tells me it tried admin/,accounts/,api/v1/, and radiusbatch/csv but nothing matched. I'm hoping I have missed something simple that can be replied to here, but if not I understand. Thanks in advance your time. I was not even aware of OpenWISP until last Friday and it looks truly amazing.
Nitesh Sinha
@niteshsinha17

Is this issue relevant? openwisp/openwisp-users#190

Thansk for reporting @niteshsinha17. It looks to me that this issue arises from right navigation pane(menu) which is implemented in openwisp-utils. Can you please test whether the bug is reproducible in openwisp-utils. If so, it will be best to move it there and create a patch for it in openwisp-utils.

Yes, it's occurring there too.

Gagan Deep
@pandafy

Yes, it's occurring there too.

Thanks for confirming. I don't have permission to transfer this issue to openwisp-utils repository.

@nemesisdesign @atb00ker will you please transfer openwisp/openwisp-users#190 to openwisp-utils when you get time?

@niteshsinha17 you can start working on a fix in openwisp-utils if you want to. :smile:

Nitesh Sinha
@niteshsinha17
@pandafy Sure, I will love to solve this issue as opensource is the best way to learn things.
but you were saying to create a patch. Do I need to do it or they will transfer this issue.
Gagan Deep
@pandafy

but you were saying to create a patch. Do I need to do it or they will transfer this issue.

You can go ahead and investigate what is causing this bug in the first place. If you do find the problem and a possible fix, create a PR for it. You need not worry about transferring the issue.

Nitesh Sinha
@niteshsinha17
okay
Ajay Tripathi
@atb00ker

Hey all, This may be better suited for the mailing list but thought I would give it a shot here first. I'm trying to get OpenWISP-RADIUS setup with no experience in working with Django before and little to no experience with REST,SQL,RADIUS, Docker or Python. Needless to say yesterday was a fun albeit long day. At this point I can hit mysite.tld/admin and configure what I assume are built-in django settings as well as OpenWISP-RADIUS settings, I can also send requests to the freeradius server and it intern sends makes a request to the django server. At this point the response is a 404 or at least would be if debugging was disabled in django. currently it just tells me it tried admin/,accounts/,api/v1/, and radiusbatch/csv but nothing matched. I'm hoping I have missed something simple that can be replied to here, but if not I understand. Thanks in advance your time. I was not even aware of OpenWISP until last Friday and it looks truly amazing.

@rstokes81 I assume you are trying to hit the API, the API is documented at http://<your-domain>/api/v1/docs/.
If that doesn't help, which API endpoint are you trying?

@pandafy Done! :smile:
rstokes81
@rstokes81
@atb00ker yes that is what I'm trying to hit, but http://<your-domain>/api/v1/docs/ returns a 404 in fact http://<your-domain>/admin is the only thing that returns anything at all as far as I can tell.
Ajay Tripathi
@atb00ker
Can you please show the screenshot of http://<your-domain>/api/v1 ?
I am interested to see the available urls. :-)
rstokes81
@rstokes81
image.png
Ajay Tripathi
@atb00ker
Ah, sorry, http://<your-domain>/api/v1/ <- Ending / is important! :sweat_smile:
rstokes81
@rstokes81
image.png
Ajay Tripathi
@atb00ker
I see, are you using docker-openwisp?
Or have you installed directly from openwisp-radius repository?
rstokes81
@rstokes81
Openwisp-radius was installed via pip from inside python:3.8-alpine
Ajay Tripathi
@atb00ker
Okay, I see the released version might not have the docs, it was added recently. Let me check.
Nah, that's not it.
That commit was merged before the release.
Ajay Tripathi
@atb00ker

I think I've found it.
Your app must be missing drf_yasg in installed apps. Right?

I think installing drf_yasg is missing in our docs. I'll need to fix it.

I'll double check this later in the week. :-)
rstokes81
@rstokes81
probably blindly followed the guide to get this far. Let me add it it.
Ajay Tripathi
@atb00ker
:+1:
Please let me know if it works out. :smile:
Gagan Deep
@pandafy
drf_ysgg is installed in openwisp-utils[rest]. @rstokes81 you will just need to add it in INSTALLED_APPS in settings.py of your project.
rstokes81
@rstokes81
I have added drf_yasg to the installed_apps section. I also added drf-yasg to my requirements file and rebuilt the container. This did not seem to resolve the issue though. Do I need to update the urls.py as well as settings.py?
image.png
Gagan Deep
@pandafy

Do I need to update the urls.py as well as settings.py?

Yes, you will need to add that too. Sorry, I missed that one. Please follow the instructions here: https://github.com/openwisp/openwisp-utils#openwisp_api_docs

You will need to add following in urlurls.py(preferably the root one).
urlpatterns += [
    url(r'^api/v1/', include('openwisp_utils.api.urls')),
]
rstokes81
@rstokes81
image.png
NameError: name 'url' is not defined
Should I be importing something first?
Gagan Deep
@pandafy
urlpatterns = [
    path('admin/', admin.site.urls),
    path('api/v1/', include('openwisp_utils.api.urls')),
    path('accounts/', include('openwisp_users.accounts.urls')),
    path('', include('openwisp_radius.urls', namespace='radius'))
]
Replace urlspatterns with this and it should work.
rstokes81
@rstokes81
ImportError: Could not import 'drf_yasg.generators.OpenAPISchemaGenerator' for API setting 'DEFAULT_GENERATOR_CLASS'.
ImportError: cannot import name 'URLPattern' from 'rest_framework.
Gagan Deep
@pandafy
@rstokes81 I tested with the test project in the code repository and it worked. I have no idea what is causing this error.
rstokes81
@rstokes81
@pandafy I was pulling the wrong versions of some modules as far as I can tell. after copying the requirements.txt from openwhisp-radius it was able to get my image to start up with the urlpatterns you specified. I still get a 404 when i try to hit https://radius.technologylab.com/api/v1/ though.
Gagan Deep
@pandafy
If you want to open the documentation, you will need to hit /api/v1/docs/
rstokes81
@rstokes81
thanks, but it just gives me a 404 https://radius.technologylab.com/api/v1/docs/
Federico Capoano
@nemesisdesign